mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 推送小程序停止充电接口金额改为实付金额
This commit is contained in:
@@ -38,6 +38,11 @@ public class SendMessageVO {
|
||||
*/
|
||||
private String orderAmount;
|
||||
|
||||
/**
|
||||
* 折扣金额
|
||||
*/
|
||||
private String discountAmount;
|
||||
|
||||
/**
|
||||
* 结算金额
|
||||
*/
|
||||
|
||||
@@ -29,6 +29,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.ParseException;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
@@ -255,7 +256,10 @@ public class WxAppletRemoteService {
|
||||
AppletTemplateMessageSendDTO.StopChargingMessage stopChargingMessage = new AppletTemplateMessageSendDTO.StopChargingMessage();
|
||||
msgInfo.setStopChargingMessage(stopChargingMessage);
|
||||
|
||||
stopChargingMessage.setChargingAmount(sendMessageVO.getSettleAmount()); // 订单金额 2024.03.05改为 结算金额
|
||||
BigDecimal orderAmount = new BigDecimal(sendMessageVO.getOrderAmount());
|
||||
BigDecimal discountAmount = new BigDecimal(sendMessageVO.getDiscountAmount());
|
||||
|
||||
stopChargingMessage.setChargingAmount(String.valueOf(orderAmount.subtract(discountAmount))); // 订单金额 2024.03.05改为 实付金额
|
||||
stopChargingMessage.setEndReason(sendMessageVO.getStopReason()); // 结束原因
|
||||
stopChargingMessage.setOrderCode(sendMessageVO.getOrderCode()); // 订单号
|
||||
stopChargingMessage.setChargingDegree(sendMessageVO.getChargingDegree()); // 充电度数
|
||||
|
||||
Reference in New Issue
Block a user