update 移除未使用service

This commit is contained in:
Guoqs
2025-09-12 15:34:40 +08:00
parent d44ca46a16
commit 617e9120e1
8 changed files with 2 additions and 36 deletions

View File

@@ -4,11 +4,10 @@ import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.jsowell.common.annotation.Anonymous; import com.jsowell.common.annotation.Anonymous;
import com.jsowell.common.core.controller.BaseController; import com.jsowell.common.core.controller.BaseController;
import com.jsowell.netty.service.camera.CameraBusinessService;
import com.jsowell.pile.dto.camera.CameraHeartBeatDTO; import com.jsowell.pile.dto.camera.CameraHeartBeatDTO;
import com.jsowell.pile.dto.camera.SendMsg2TopicDTO; import com.jsowell.pile.dto.camera.SendMsg2TopicDTO;
import com.jsowell.thirdparty.camera.common.CameraCommonResult;
import com.jsowell.service.CameraService; import com.jsowell.service.CameraService;
import com.jsowell.thirdparty.camera.common.CameraCommonResult;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
@@ -28,9 +27,6 @@ public class CameraController extends BaseController {
@Autowired @Autowired
private CameraService cameraService; private CameraService cameraService;
@Autowired
private CameraBusinessService cameraBusinessService;
/** /**
* 心跳 * 心跳
* @param dto * @param dto

View File

@@ -27,8 +27,6 @@ import java.util.Map;
@RequestMapping("/changzhou") @RequestMapping("/changzhou")
public class ChangZhouController extends ThirdPartyBaseController { public class ChangZhouController extends ThirdPartyBaseController {
private final String platformName = "新运常畅充"; private final String platformName = "新运常畅充";
private final String platformType = ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode(); private final String platformType = ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode();

View File

@@ -1,31 +1,23 @@
package com.jsowell.api.thirdparty; package com.jsowell.api.thirdparty;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.jsowell.common.annotation.Anonymous; import com.jsowell.common.annotation.Anonymous;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum; import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum; import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
import com.jsowell.common.exception.BusinessException; import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse; import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.JWTUtils;
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
import com.jsowell.pile.dto.QueryEquipChargeStatusDTO; import com.jsowell.pile.dto.QueryEquipChargeStatusDTO;
import com.jsowell.pile.dto.QueryEquipmentDTO; import com.jsowell.pile.dto.QueryEquipmentDTO;
import com.jsowell.pile.dto.QueryStartChargeDTO; import com.jsowell.pile.dto.QueryStartChargeDTO;
import com.jsowell.pile.dto.QueryStationInfoDTO; import com.jsowell.pile.dto.QueryStationInfoDTO;
import com.jsowell.pile.service.ThirdPartyPlatformConfigService;
import com.jsowell.pile.thirdparty.CommonParamsDTO; import com.jsowell.pile.thirdparty.CommonParamsDTO;
import com.jsowell.thirdparty.lianlian.common.CommonResult; import com.jsowell.thirdparty.lianlian.common.CommonResult;
import com.jsowell.thirdparty.platform.util.Cryptos;
import com.jsowell.thirdparty.platform.util.Encodes;
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.nio.charset.StandardCharsets;
import java.util.Map; import java.util.Map;
/** /**
@@ -35,9 +27,6 @@ import java.util.Map;
@RestController @RestController
@RequestMapping("/hainan") @RequestMapping("/hainan")
public class HaiNanPlatformController extends ThirdPartyBaseController { public class HaiNanPlatformController extends ThirdPartyBaseController {
// 使用海南平台处理逻辑
// @Autowired
// private AbsInterfaceWithPlatformLogic platformLogic = new HaiNanPlatformLogic();
private final String platformName = "海南省平台"; private final String platformName = "海南省平台";
@@ -47,9 +36,6 @@ public class HaiNanPlatformController extends ThirdPartyBaseController {
@Qualifier("haiNanPlatformServiceImpl") @Qualifier("haiNanPlatformServiceImpl")
private ThirdPartyPlatformService platformLogic; private ThirdPartyPlatformService platformLogic;
@Autowired
private ThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
/** /**
* 获取token接口 * 获取token接口
* http://localhost:8080/hainan/v1/query_token * http://localhost:8080/hainan/v1/query_token

View File

@@ -26,8 +26,6 @@ import java.util.Map;
@Anonymous @Anonymous
public class JiLinPlatformController extends ThirdPartyBaseController{ public class JiLinPlatformController extends ThirdPartyBaseController{
private final String platformName = "吉林省平台"; private final String platformName = "吉林省平台";
private final String platformType = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode(); private final String platformType = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode();

View File

@@ -38,9 +38,6 @@ public class NRController extends ThirdPartyBaseController {
@Qualifier("jiangSuPlatformServiceImpl") @Qualifier("jiangSuPlatformServiceImpl")
private ThirdPartyPlatformService platformLogic; private ThirdPartyPlatformService platformLogic;
// @Autowired
// private NRService nrService;
/** /**
* 查询充电站信息 * 查询充电站信息
* @param dto * @param dto

View File

@@ -22,7 +22,7 @@ import java.lang.reflect.Method;
import java.util.Map; import java.util.Map;
/** /**
* 内蒙古接口 * 基础Controller
*/ */
@Anonymous @Anonymous
@RestController @RestController

View File

@@ -10,7 +10,6 @@ import com.jsowell.pile.dto.*;
import com.jsowell.pile.thirdparty.CommonParamsDTO; import com.jsowell.pile.thirdparty.CommonParamsDTO;
import com.jsowell.thirdparty.lianlian.common.CommonResult; import com.jsowell.thirdparty.lianlian.common.CommonResult;
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
import com.jsowell.thirdparty.xindiantu.service.XDTService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@@ -38,9 +37,6 @@ public class XDTController extends ThirdPartyBaseController {
@Qualifier("xinDiantuPlatfromServiceImpl") @Qualifier("xinDiantuPlatfromServiceImpl")
private ThirdPartyPlatformService platformLogic; private ThirdPartyPlatformService platformLogic;
@Autowired
private XDTService xdtService;
/** /**
* 获取token接口 * 获取token接口
* http://localhost:8080/xindiantu/v1/query_token * http://localhost:8080/xindiantu/v1/query_token

View File

@@ -29,8 +29,6 @@ import java.util.Map;
@RestController @RestController
@RequestMapping("/zdl") @RequestMapping("/zdl")
public class ZDLController extends ThirdPartyBaseController { public class ZDLController extends ThirdPartyBaseController {
// @Autowired
// private ZDLService zdlService;
private final String platformName = "宁波平台"; private final String platformName = "宁波平台";
@@ -38,9 +36,6 @@ public class ZDLController extends ThirdPartyBaseController {
@Qualifier("zhongDianLianPlatformServiceImpl") @Qualifier("zhongDianLianPlatformServiceImpl")
private ThirdPartyPlatformService platformLogic; private ThirdPartyPlatformService platformLogic;
// @Autowired
// private LianLianService lianLianService;
/** /**
* 获取token接口 * 获取token接口
* http://localhost:8080/zdl/v1/query_token * http://localhost:8080/zdl/v1/query_token