修正订单费用详情计算
This commit is contained in:
parent
064f974397
commit
05d6e28496
@ -729,7 +729,7 @@ public class WxPayServiceImpl implements WxPayService {
|
|||||||
detailInfo.setDiscountAmount(detailInfo.getTotalAmount() - detailInfo.getActualAmount());
|
detailInfo.setDiscountAmount(detailInfo.getTotalAmount() - detailInfo.getActualAmount());
|
||||||
//查询订单, orderFeingClient.getOrderById(orderId)
|
//查询订单, orderFeingClient.getOrderById(orderId)
|
||||||
JsonResult<?> result = ordersFeignClient.getPaymentDetails(Long.valueOf(orderId));
|
JsonResult<?> result = ordersFeignClient.getPaymentDetails(Long.valueOf(orderId));
|
||||||
if (result.getCode() != 200) {
|
if (result.getCode() == 200) {
|
||||||
EbikePaymentDto paymentDto = JSON.parseObject(JSONObject.toJSONString(result.getData()), EbikePaymentDto.class);
|
EbikePaymentDto paymentDto = JSON.parseObject(JSONObject.toJSONString(result.getData()), EbikePaymentDto.class);
|
||||||
for (PayDetailDto detailDto : paymentDto.getDetail().getGoodsDetail()) {
|
for (PayDetailDto detailDto : paymentDto.getDetail().getGoodsDetail()) {
|
||||||
//1-骑行时长费 2-运营区调度费用 3-停车区调度费用 4-高峰时段出行费用 5-高峰日出行费用 6-起步费用
|
//1-骑行时长费 2-运营区调度费用 3-停车区调度费用 4-高峰时段出行费用 5-高峰日出行费用 6-起步费用
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user