diff --git a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/GuiZhouPlatformController.java b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/GuiZhouPlatformController.java index 649f3805d..b3afda6ec 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/GuiZhouPlatformController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/GuiZhouPlatformController.java @@ -1,10 +1,11 @@ package com.jsowell.api.thirdparty; - import com.alibaba.fastjson2.JSON; import com.jsowell.common.annotation.Anonymous; +import com.jsowell.common.core.domain.AjaxResult; import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum; import com.jsowell.common.exception.BusinessException; +import com.jsowell.common.response.RestApiResponse; import com.jsowell.pile.dto.QueryOperatorInfoDTO; import com.jsowell.pile.dto.QueryStationInfoDTO; import com.jsowell.pile.thirdparty.CommonParamsDTO; @@ -12,12 +13,10 @@ import com.jsowell.thirdparty.lianlian.common.CommonResult; import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; +import java.util.List; import java.util.Map; /** @@ -33,6 +32,7 @@ public class GuiZhouPlatformController extends ThirdPartyBaseController { @Qualifier("guiZhouPlatformServiceImpl") private ThirdPartyPlatformService platformLogic; + /** * getToken */ @@ -150,4 +150,63 @@ public class GuiZhouPlatformController extends ThirdPartyBaseController { } return CommonResult.failed("查询充电站状态信息发生异常"); } -} + + /** + * 历史充电订单信息推送 + */ + @GetMapping("/v1/supervise_notification_charge_order_info_history/{orderCode}") + public RestApiResponse notificationChargeOrderInfoHistory(@PathVariable("orderCode") String orderCode) { + RestApiResponse response = null; + String result = null; + try { + result = platformLogic.notificationChargeOrderInfoHistory(orderCode); + response = new RestApiResponse<>(result); + } catch (Exception e) { + logger.error("贵州平台推送充电站历史充电订单信息 error", e); + return new RestApiResponse<>(e); + } + logger.info("贵州平台推送充电站历史充电订单信息 result:{}", result); + return response; + } + + /** + * 推送充换电站用能统计信息 + * @param stationId + * @return + */ + @GetMapping("/v1/supervise_notification_operation_stats_info/{stationId}") + public RestApiResponse notificationOperationStatsInfo(@PathVariable("stationId") String stationId) { + RestApiResponse response = null; + String result = null; + try { + result = platformLogic.notificationOperationStatsInfo(stationId); + response = new RestApiResponse<>(result); + } catch (Exception e) { + logger.error("贵州平台推送充换电站用能统计信息 error", e); + return new RestApiResponse<>(e); + } + logger.info("贵州平台推送充换电站用能统计信息 result:{}", result); + return response; + } + + /** + * 推送充换电站实时功率 + * @param stationIds + * @return + */ + @GetMapping("/v1/supervise_notification_realtime_power_info/{stationIds}") + public RestApiResponse notificationPowerInfo(@PathVariable("stationIds") List stationIds) { + RestApiResponse response = null; + String result = null; + try { + result = platformLogic.notificationPowerInfo(stationIds); + response = new RestApiResponse<>(result); + } catch (Exception e) { + logger.error("贵州平台推送充换电站用能统计信息 error", e); + return new RestApiResponse<>(e); + } + logger.info("贵州平台推送充换电站用能统计信息 result:{}", result); + return response; + } + +} \ No newline at end of file diff --git a/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java b/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java index 60936558a..3981a9934 100644 --- a/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java +++ b/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java @@ -95,6 +95,7 @@ public class Constants { public static final String OPERATORID_LIANLIAN = "MA1JLFUU8"; public static final String OPERATORID_JIANG_SU = "MA1X78KH5"; + public static final String OPERATORID_GUI_ZHOU = "MAC9K4RRX"; public static final String MANUFACTURER_NAME = "举视(江苏)新能源设备制造有限公司"; diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileStationInfo.java b/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileStationInfo.java index d286dc898..d1b877c88 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileStationInfo.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileStationInfo.java @@ -383,6 +383,11 @@ public class PileStationInfo extends BaseEntity { @Excel(name = "周边配套设施") private String supportingFacilities; + /** + * 站点额定总功率 + */ + @Excel(name = "站点额定总功率") + private BigDecimal ratedPower; /** * 删除标识(0-正常;1-删除) @@ -436,6 +441,7 @@ public class PileStationInfo extends BaseEntity { .append("delFlag", delFlag) .append("swapMatchCars", swapMatchCars) .append("generalApplicationType",generalApplicationType) + .append("ratedPower",ratedPower) .toString(); } } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/PileBasicInfoService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/PileBasicInfoService.java index 2720a625c..6c29d8242 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/PileBasicInfoService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/PileBasicInfoService.java @@ -110,7 +110,6 @@ public interface PileBasicInfoService { /** * 通过桩sn查询basic信息 * - * @param id 桩id * @return 结果集合 */ PileDetailVO selectPileDetailByPileSn(String pileSn); @@ -206,7 +205,6 @@ public interface PileBasicInfoService { /** * 获取充电桩列表 * 提供给联联平台 - * @param pileStationInfo * @return */ // List getPileList(PileStationInfo pileStationInfo); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/thirdparty/EquipmentInfo.java b/jsowell-pile/src/main/java/com/jsowell/pile/thirdparty/EquipmentInfo.java index f1dc59c3c..644e8199e 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/thirdparty/EquipmentInfo.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/thirdparty/EquipmentInfo.java @@ -81,7 +81,7 @@ public class EquipmentInfo { * 1:车辆充电设备 2:换电站内的电池箱 充电设备 */ @JSONField(name = "EquipmentClassification") - private Integer EquipmentClassification; + private Integer equipmentClassification; /** * 设备状态 Y diff --git a/jsowell-pile/src/main/resources/mapper/pile/OrderBasicInfoMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/OrderBasicInfoMapper.xml index e598b48fb..685ed4f2b 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/OrderBasicInfoMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/OrderBasicInfoMapper.xml @@ -2912,8 +2912,10 @@ JOIN pile_merchant_info t3 on t1.merchant_id = t3.id WHERE t1.station_id = #{stationId,jdbcType=VARCHAR} - AND t1.charge_start_time = ]]> DATE_SUB( CURDATE(), INTERVAL 1 DAY ) - AND t1.charge_start_time CURDATE() +-- AND t1.charge_start_time = ]]> DATE_SUB( CURDATE(), INTERVAL 1 DAY ) +-- AND t1.charge_start_time CURDATE() + AND t1.charge_start_time = ]]> '2024-07-08' + AND t1.charge_start_time '2024-8-19'