Commit 99f1b8f2 authored by unset's avatar unset

修改支付信息

parent 1e42a074
......@@ -128,11 +128,14 @@ public class ConfirmOrderService {
confirmOrderInfoVo.setItemInfoVoList(itemInfoVoList);
}
confirmOrderInfoVo.setActAmount(confirmOrderInfoVo.getTotalAmount());
Dictionary dictionary = thirdFeign.findDictionaryByTypeAndCode(DictionaryKey.APP_ORDER, DictionaryKey.SEND_FEE);
if (dictionary != null && StringUtils.isNotBlank(dictionary.getDetail())) {
confirmOrderInfoVo.setFee(new BigDecimal(dictionary.getDetail()));
}
if (confirmOrderInfoVo.getFee() != null) {
confirmOrderInfoVo.setActAmount(confirmOrderInfoVo.getTotalAmount().add(confirmOrderInfoVo.getFee()));
}
return ObjectRestResponse.succ(confirmOrderInfoVo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment