fix: 折扣金额修复
This commit is contained in:
parent
6bc9a2aaa6
commit
1fc38f75ba
|
|
@ -2286,10 +2286,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
orderInfo.setPaidTime(DateUtil.current());
|
||||
orderInfo.setPayAmount(finalAmount);
|
||||
orderInfo.setStatus("closed");
|
||||
if (payDTO.getDiscount() != null) {
|
||||
orderInfo.setDiscountRatio(BigDecimal.valueOf(payDTO.getDiscount()));
|
||||
orderInfo.setDiscountAmount(orderInfo.getAmount().subtract(finalAmount));
|
||||
}
|
||||
if (StrUtil.isEmpty(orderInfo.getMemberId())) {
|
||||
orderInfo.setMemberId(Convert.toStr(payDTO.getVipUserId()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue