mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update 添加platformType字段
This commit is contained in:
@@ -26,7 +26,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/changzhou")
|
||||
public class ChangZhouController extends ThirdPartyBaseController {
|
||||
private final String platformName = "新运常畅充";
|
||||
// private final String platformName = "新运常畅充";
|
||||
private final String platformName = ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.jsowell.api.thirdparty;
|
||||
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
|
||||
@@ -19,6 +20,11 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
@RequestMapping("/dianxing")
|
||||
public class DianXingPlatformController extends BaseController {
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.DIAN_XING_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.DIAN_XING_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("dianXingPlatformServiceImpl")
|
||||
private ThirdPartyPlatformService dianXingService;
|
||||
|
||||
@@ -28,7 +28,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/gansu")
|
||||
public class GanSuController extends ThirdPartyBaseController{
|
||||
private final String platformName = "甘肃省平台";
|
||||
// private final String platformName = "甘肃省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.GAN_SU_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.GAN_SU_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.jsowell.api.thirdparty;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
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.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
@@ -31,7 +30,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/guangxi")
|
||||
public class GuangXiPlatformController extends ThirdPartyBaseController {
|
||||
private final String platformName = "广西平台";
|
||||
// private final String platformName = "广西平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.GUANG_XI_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.GUANG_XI_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.jsowell.api.thirdparty;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.dto.QueryOperatorInfoDTO;
|
||||
@@ -26,7 +27,10 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/guizhou")
|
||||
public class GuiZhouPlatformController extends ThirdPartyBaseController {
|
||||
private final String platformName = "贵州省平台";
|
||||
// private final String platformName = "贵州省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("guiZhouPlatformServiceImpl")
|
||||
|
||||
@@ -28,7 +28,8 @@ import java.util.Map;
|
||||
@RequestMapping("/hainan")
|
||||
public class HaiNanPlatformController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "海南省平台";
|
||||
// private final String platformName = "海南省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.HAI_NAN_1_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.HAI_NAN_1_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/henan")
|
||||
public class HeNanPlatformController extends ThirdPartyBaseController{
|
||||
private final String platformName = "河南省平台";
|
||||
// private final String platformName = "河南省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.HE_NAN_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.HE_NAN_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ import java.util.Map;
|
||||
@Anonymous
|
||||
public class HuZhouController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "湖州市监管平台";
|
||||
// private final String platformName = "湖州市监管平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.HU_ZHOU_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.HU_ZHOU_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ import java.util.Map;
|
||||
@RequestMapping("/jilin")
|
||||
@Anonymous
|
||||
public class JiLinPlatformController extends ThirdPartyBaseController{
|
||||
private final String platformName = "吉林省平台";
|
||||
// private final String platformName = "吉林省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,10 @@ import java.util.Map;
|
||||
@RequestMapping("/LianLian")
|
||||
public class LianLianController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "联联平台";
|
||||
// private final String platformName = "联联平台";
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("lianLianPlatformServiceImpl")
|
||||
|
||||
@@ -30,7 +30,8 @@ import java.util.Map;
|
||||
@RequestMapping("/jiangsu")
|
||||
public class NRController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "江苏省平台";
|
||||
// private final String platformName = "江苏省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.JIANG_SU_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.JIANG_SU_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ import java.util.Map;
|
||||
@RequestMapping("/nxjt")
|
||||
public class NXJTController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "宁夏交投平台";
|
||||
// private final String platformName = "宁夏交投平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.NING_XIA_JIAO_TOU.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.NING_XIA_JIAO_TOU.getTypeCode();
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.jsowell.api.thirdparty;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.dto.QueryOperatorInfoDTO;
|
||||
@@ -24,7 +25,10 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/evcs")
|
||||
public class NeiMengGuController extends ThirdPartyBaseController {
|
||||
private final String platformName = "内蒙古平台";
|
||||
// private final String platformName = "内蒙古平台";
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.NEI_MENG_GU_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.NEI_MENG_GU_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("neiMengGuPlatformServiceImpl")
|
||||
|
||||
@@ -27,7 +27,8 @@ import java.util.Map;
|
||||
@RequestMapping("/ningxia")
|
||||
public class NingXiaController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "宁夏平台";
|
||||
// private final String platformName = "宁夏平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.NING_XIA_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.NING_XIA_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -1,32 +1,21 @@
|
||||
package com.jsowell.api.thirdparty;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.JWTUtils;
|
||||
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
|
||||
import com.jsowell.pile.dto.PushRealTimeInfoDTO;
|
||||
import com.jsowell.pile.dto.QueryStartChargeDTO;
|
||||
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||
import com.jsowell.pile.dto.ningxiajiaotou.NXJTQueryStationInfoDTO;
|
||||
import com.jsowell.pile.service.ThirdPartyPlatformConfigService;
|
||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||
import com.jsowell.thirdparty.lianlian.common.CommonResult;
|
||||
import com.jsowell.thirdparty.platform.dto.PushOrderDTO;
|
||||
import com.jsowell.thirdparty.platform.dto.QueryOrderDTO;
|
||||
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
|
||||
import com.jsowell.thirdparty.platform.util.Cryptos;
|
||||
import com.jsowell.thirdparty.platform.util.Encodes;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -41,7 +30,8 @@ import java.util.Map;
|
||||
@RequestMapping("/qinghai/evcs")
|
||||
public class QingHaiController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "青海省平台";
|
||||
// private final String platformName = "青海省平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.QING_HAI_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.QING_HAI_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.dto.*;
|
||||
import com.jsowell.pile.dto.QueryOperatorInfoDTO;
|
||||
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||
import com.jsowell.thirdparty.lianlian.common.CommonResult;
|
||||
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
|
||||
@@ -14,7 +15,6 @@ import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -24,9 +24,8 @@ import java.util.Map;
|
||||
@Anonymous
|
||||
@RequestMapping("/sichuan")
|
||||
public class SiChuanController extends ThirdPartyBaseController {
|
||||
private final String platformName = "四川省监管平台";
|
||||
|
||||
|
||||
// private final String platformName = "四川省监管平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.jsowell.api.thirdparty;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||
import com.jsowell.thirdparty.lianlian.common.CommonResult;
|
||||
@@ -28,7 +29,10 @@ import java.util.Map;
|
||||
@RequestMapping("/suzhou")
|
||||
public class SuZhouPlatformController extends ThirdPartyBaseController{
|
||||
|
||||
private final String platformName = "苏州市平台";
|
||||
// private final String platformName = "苏州市平台";
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.SU_ZHOU_PLATFORM.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.SU_ZHOU_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("suZhouPlatformServiceImpl")
|
||||
|
||||
@@ -25,9 +25,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/weiwangkuaidian")
|
||||
public class WeiWangKuaiDianController extends ThirdPartyBaseController {
|
||||
private final String platformName = "微网快电";
|
||||
|
||||
|
||||
// private final String platformName = "微网快电";
|
||||
private final String platformName = ThirdPlatformTypeEnum.WEI_WANG_XIN_DIAN.getTypeLabel();
|
||||
private final String platformType = ThirdPlatformTypeEnum.WEI_WANG_XIN_DIAN.getTypeCode();
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ import java.util.Map;
|
||||
@RequestMapping("/xindiantu")
|
||||
public class XDTController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "新电途平台";
|
||||
// private final String platformName = "新电途平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.XIN_DIAN_TU.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.XIN_DIAN_TU.getTypeCode();
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/xinyun")
|
||||
public class XinYunPlatformController extends ThirdPartyBaseController{
|
||||
private final String platformName = "新运平台";
|
||||
// private final String platformName = "新运平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.XIN_YUN_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.XIN_YUN_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ import java.util.Map;
|
||||
@RequestMapping("/ycbc")
|
||||
public class YCBCController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "甬城泊车平台";
|
||||
// private final String platformName = "甬城泊车平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode();
|
||||
|
||||
|
||||
@@ -23,9 +23,8 @@ import java.util.Map;
|
||||
@RequestMapping("/yunwei")
|
||||
public class YunWeiPlatformController extends ThirdPartyBaseController{
|
||||
|
||||
|
||||
private final String platformName = "运维平台";
|
||||
|
||||
// private final String platformName = "运维平台";
|
||||
private final String platformName = ThirdPlatformTypeEnum.YUN_WEI_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.YUN_WEI_PLATFORM.getTypeCode();
|
||||
|
||||
|
||||
@@ -30,7 +30,11 @@ import java.util.Map;
|
||||
@RequestMapping("/zdl")
|
||||
public class ZDLController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "宁波平台";
|
||||
// private final String platformName = "宁波平台";
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("zhongDianLianPlatformServiceImpl")
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.jsowell.api.thirdparty;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.pile.dto.QueryOperatorInfoDTO;
|
||||
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||
@@ -27,7 +28,11 @@ import java.util.Map;
|
||||
@RequestMapping("/zj")
|
||||
public class ZheJiangController extends ThirdPartyBaseController {
|
||||
|
||||
private final String platformName = "浙江省平台";
|
||||
// private final String platformName = "浙江省平台";
|
||||
|
||||
private final String platformName = ThirdPlatformTypeEnum.ZHE_JIANG_PLATFORM.getTypeLabel();
|
||||
|
||||
private final String platformType = ThirdPlatformTypeEnum.ZHE_JIANG_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
@Qualifier("zheJiangPlatformServiceImpl")
|
||||
|
||||
Reference in New Issue
Block a user