mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update 甘肃平台Service
This commit is contained in:
@@ -160,9 +160,10 @@ public class GanSuPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto) {
|
||||
int pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
|
||||
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
||||
dto.setThirdPlatformType(thirdPlatformType);
|
||||
|
||||
PageUtils.startPage(pageNo, pageSize);
|
||||
List<ThirdPartyStationInfoVO> stationInfos = pileStationInfoService.getStationInfosByThirdParty(dto);
|
||||
List<ThirdPartyStationInfoVO> stationInfos = pileStationInfoService.selectStationInfosByThirdParty(dto);
|
||||
if (CollectionUtils.isEmpty(stationInfos)) {
|
||||
// 未查到数据
|
||||
return null;
|
||||
@@ -189,6 +190,17 @@ public class GanSuPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
// todo .serviceFee()
|
||||
|
||||
.build();
|
||||
JSONObject electricityFee = new JSONObject();
|
||||
JSONObject serviceFee = new JSONObject();
|
||||
// 查询计费模板
|
||||
List<BillingPriceVO> priceList = pileBillingTemplateService.queryBillingPrice(stationId);
|
||||
for (BillingPriceVO billingPriceVO : priceList) {
|
||||
electricityFee.put(billingPriceVO.getStartTime() + ":00" + "-" + billingPriceVO.getEndTime() + ":00", billingPriceVO.getElectricityPrice());
|
||||
serviceFee.put(billingPriceVO.getStartTime() + ":00" + "-" + billingPriceVO.getEndTime() + ":00", billingPriceVO.getServicePrice());
|
||||
}
|
||||
stationInfo.setElectricityFee(electricityFee.toJSONString());
|
||||
stationInfo.setServiceFee(serviceFee.toJSONString());
|
||||
|
||||
// busineHours
|
||||
String busineHours = getBusineHours();
|
||||
stationInfo.setBusineHours(busineHours);
|
||||
|
||||
Reference in New Issue
Block a user