This commit is contained in:
YAS\29473
2025-09-12 14:12:44 +08:00
parent 75e26ae8ea
commit 8ff40b19e2

View File

@@ -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<JCTEquipmentInfo> getPileListForLianLian(String stationId) {
List<EquipmentInfo> pileListForLianLian = pileBasicInfoService.getPileListForLianLian(stationId);
if (pileListForLianLian == null || pileListForLianLian.isEmpty()) {
return Collections.emptyList();
}
List<JCTEquipmentInfo> jctEquipmentInfos = new ArrayList<>();
for (EquipmentInfo equipmentInfo : pileListForLianLian) {
JCTEquipmentInfo jctEquipmentInfo = new JCTEquipmentInfo();
BeanUtils.copyProperties(equipmentInfo, jctEquipmentInfo);
jctEquipmentInfos.add(jctEquipmentInfo);
}
return jctEquipmentInfos;
}
@Override
public List<JCTStationInfoVO> selectStationList(String thirdPlatformType) {
List<StationInfoVO> stationInfoVOS = thirdPartyStationRelationMapper.selectStationList(thirdPlatformType);
if (stationInfoVOS == null || stationInfoVOS.isEmpty()) {
return Collections.emptyList();
}
List<JCTStationInfoVO> jctStationInfoVOS = new ArrayList<>();
for (StationInfoVO stationInfoVO : stationInfoVOS) {
JCTStationInfoVO jctStationInfoVO = new JCTStationInfoVO();
BeanUtils.copyProperties(stationInfoVO, jctStationInfoVO);
jctStationInfoVOS.add(jctStationInfoVO);
}
return jctStationInfoVOS;
}
@Override
public List<JCTOrderTempVO> selectByStationId(String stationId) {
List<OrderTempVO> tempVOS = orderDetailMapper.selectByStationId(stationId);
if (tempVOS == null || tempVOS.isEmpty()) {
return Collections.emptyList();
}
List<JCTOrderTempVO> jctOrderTempVOS = new ArrayList<>();
for (OrderTempVO tempVO : tempVOS) {
JCTOrderTempVO jctOrderTempVO = new JCTOrderTempVO();
BeanUtils.copyProperties(tempVO, jctOrderTempVO);
jctOrderTempVOS.add(jctOrderTempVO);
}
return jctOrderTempVOS;
}
@Override
public List<JCTPileInfoVO> queryPileDetailList(List<String> stationIdList) {
List<PileInfoVO> pileInfoVOS = pileBasicInfoService.queryPileDetailList(stationIdList);
if (pileInfoVOS == null || pileInfoVOS.isEmpty()) {
return Collections.emptyList();
}
List<JCTPileInfoVO> 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);
}
}