mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
bugfix
This commit is contained in:
@@ -171,7 +171,7 @@ public class XDTController extends BaseController {
|
||||
Map<String, String> map = xdtService.queryEquipBusinessPolicy(queryStartChargeDTO);
|
||||
logger.info("新电途平台查询业务策略信息 result:{}", JSONObject.toJSONString(map));
|
||||
|
||||
return CommonResult.success(0, "查询业务策略信息!", map.get("Data"), map.get("Sig"));
|
||||
return CommonResult.success(0, "查询业务策略信息成功!", map.get("Data"), map.get("Sig"));
|
||||
} catch (Exception e) {
|
||||
logger.info("新电途平台查询业务策略信息 error:", e);
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -13,7 +13,7 @@ public enum ThirdPartyOperatorIdEnum {
|
||||
ZHONG_DIAN_LIAN_PLATFORM("2", "14405899X"),
|
||||
JIANG_SU_PLATFORM("3", "726079387"),
|
||||
YONG_CHENG_BO_CHE("4", "330205020"),
|
||||
|
||||
XIN_DIAN_TU("6", "MA25CNM38"),
|
||||
;
|
||||
private String type;
|
||||
|
||||
|
||||
@@ -57,4 +57,8 @@ public class QueryStartChargeDTO {
|
||||
*/
|
||||
@JsonProperty(value = "AccountBalance")
|
||||
private BigDecimal accountBalance;
|
||||
|
||||
|
||||
// ----------------- 新电途平台接口拓展字段------------------
|
||||
private BigDecimal chargingAmt;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.jsowell.thirdparty.xindiantu.service.impl;
|
||||
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyOperatorIdEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.dto.QueryEquipChargeStatusDTO;
|
||||
import com.jsowell.pile.dto.QueryEquipmentDTO;
|
||||
@@ -106,6 +108,7 @@ public class XDTServiceImpl implements XDTService {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, String> queryStartCharge(QueryStartChargeDTO dto) {
|
||||
dto.setAccountBalance(dto.getChargingAmt());
|
||||
return zdlService.queryStartCharge(dto);
|
||||
}
|
||||
|
||||
|
||||
@@ -384,7 +384,7 @@ public class ZDLServiceImpl implements ZDLService {
|
||||
for (BillingPriceVO billingPriceVO : billingPriceVOList) {
|
||||
// 将时段开始时间、电费、服务费信息进行封装
|
||||
policyInfo = new EquipBusinessPolicyVO.PolicyInfo();
|
||||
policyInfo.setStartTime(billingPriceVO.getStartTime());
|
||||
policyInfo.setStartTime(billingPriceVO.getStartTime() + ":00");
|
||||
policyInfo.setElecPrice(new BigDecimal(billingPriceVO.getElectricityPrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
|
||||
policyInfo.setServicePrice(new BigDecimal(billingPriceVO.getServicePrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user