加字段注释

This commit is contained in:
2024-03-06 13:33:46 +08:00
parent d870b7ec9e
commit e62a9a1f85
2 changed files with 6 additions and 2 deletions

View File

@@ -700,7 +700,9 @@ public class OrderService {
// return false;
// }
// 充电金额
String chargingAmount = dto.getChargingAmount();
// 充电度数
String chargingDegree = dto.getChargingDegree();
if (StringUtils.equals(chargingAmount, Constants.ZERO) || StringUtils.equals(chargingDegree, Constants.ZERO)) {
// 获取最后一次实时数据

View File

@@ -403,8 +403,10 @@ public abstract class AbstractProgramLogic implements InitializingBean {
orderDetail.setTotalElectricityAmount(totalElectricityAmount);
// 服务费总金额
orderDetail.setTotalServiceAmount(totalServiceAmount);
orderDetail.setTotalUsedElectricity(new BigDecimal(data.getTotalElectricity())); // 总用电量
orderDetail.setTotalOrderAmount(orderAmount); // 订单总金额
// 总用电量
orderDetail.setTotalUsedElectricity(new BigDecimal(data.getTotalElectricity()));
// 订单总金额
orderDetail.setTotalOrderAmount(orderAmount);
} catch (Exception e) {
logger.error("设置订单详情参数发生异常", e);
}