From 8ff40b19e2611947cd6ce29dac8c68340bc85902 Mon Sep 17 00:00:00 2001 From: "YAS\\29473" <2947326429@qq.com> Date: Fri, 12 Sep 2025 14:12:44 +0800 Subject: [PATCH] UPDATE --- .../com/jsowell/pile/rpc/WccServiceImpl.java | 82 ++++++++++++++++++- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java index 7f654db36..478f445a4 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java @@ -13,12 +13,14 @@ import com.jsowell.pile.domain.ykcCommond.StartChargingCommand; import com.jsowell.pile.dto.QueryOrderDTO; import com.jsowell.pile.dto.QueryStartChargeDTO; import com.jsowell.pile.dto.QueryStationInfoDTO; +import com.jsowell.pile.mapper.OrderDetailMapper; +import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper; import com.jsowell.pile.service.*; +import com.jsowell.pile.thirdparty.EquipmentInfo; import com.jsowell.pile.vo.ThirdPartySecretInfoVO; -import com.jsowell.pile.vo.base.ConnectorInfoVO; -import com.jsowell.pile.vo.base.MerchantInfoVO; -import com.jsowell.pile.vo.base.ThirdPartyStationInfoVO; +import com.jsowell.pile.vo.base.*; import com.jsowell.pile.vo.lianlian.AccumulativeInfoVO; +import com.jsowell.pile.vo.lianlian.OrderTempVO; import com.jsowell.pile.vo.uniapp.customer.BillingPriceVO; import com.jsowell.pile.vo.web.PileConnectorInfoVO; import com.jsowell.pile.vo.web.PileModelInfoVO; @@ -68,6 +70,12 @@ public class WccServiceImpl implements WccService { @Autowired private PileModelInfoService pileModelInfoService; + @Autowired + private ThirdPartyStationRelationMapper thirdPartyStationRelationMapper; + + @Autowired + private OrderDetailMapper orderDetailMapper; + /** * 测试接口 * @param name @@ -501,4 +509,72 @@ public class WccServiceImpl implements WccService { return orderBasicInfoService.tempGetOrderCodes(queryOrderDTO); } + @Override + public List getPileListForLianLian(String stationId) { + List pileListForLianLian = pileBasicInfoService.getPileListForLianLian(stationId); + if (pileListForLianLian == null || pileListForLianLian.isEmpty()) { + return Collections.emptyList(); + } + List jctEquipmentInfos = new ArrayList<>(); + for (EquipmentInfo equipmentInfo : pileListForLianLian) { + JCTEquipmentInfo jctEquipmentInfo = new JCTEquipmentInfo(); + BeanUtils.copyProperties(equipmentInfo, jctEquipmentInfo); + jctEquipmentInfos.add(jctEquipmentInfo); + } + return jctEquipmentInfos; + } + + @Override + public List selectStationList(String thirdPlatformType) { + List stationInfoVOS = thirdPartyStationRelationMapper.selectStationList(thirdPlatformType); + if (stationInfoVOS == null || stationInfoVOS.isEmpty()) { + return Collections.emptyList(); + } + List jctStationInfoVOS = new ArrayList<>(); + for (StationInfoVO stationInfoVO : stationInfoVOS) { + JCTStationInfoVO jctStationInfoVO = new JCTStationInfoVO(); + BeanUtils.copyProperties(stationInfoVO, jctStationInfoVO); + jctStationInfoVOS.add(jctStationInfoVO); + } + return jctStationInfoVOS; + } + + + @Override + public List selectByStationId(String stationId) { + List tempVOS = orderDetailMapper.selectByStationId(stationId); + if (tempVOS == null || tempVOS.isEmpty()) { + return Collections.emptyList(); + } + List jctOrderTempVOS = new ArrayList<>(); + for (OrderTempVO tempVO : tempVOS) { + JCTOrderTempVO jctOrderTempVO = new JCTOrderTempVO(); + BeanUtils.copyProperties(tempVO, jctOrderTempVO); + jctOrderTempVOS.add(jctOrderTempVO); + } + return jctOrderTempVOS; + } + + @Override + public List queryPileDetailList(List stationIdList) { + List pileInfoVOS = pileBasicInfoService.queryPileDetailList(stationIdList); + if (pileInfoVOS == null || pileInfoVOS.isEmpty()) { + return Collections.emptyList(); + } + List jctPileInfoVOS = new ArrayList<>(); + for (PileInfoVO pileInfoVO : pileInfoVOS) { + JCTPileInfoVO jctPileInfoVO = new JCTPileInfoVO(); + BeanUtils.copyProperties(pileInfoVO, jctPileInfoVO); + jctPileInfoVOS.add(jctPileInfoVO); + } + return jctPileInfoVOS; + } + + @Override + public int updateOrderDetail(JCTOrderDetail orderDetail) { + OrderDetail orderDetail1 = new OrderDetail(); + BeanUtils.copyProperties(orderDetail, orderDetail1); + return orderBasicInfoService.updateOrderDetail(orderDetail1); + } + }