fix: 折扣金额修复

This commit is contained in:
张松 2024-11-21 16:18:03 +08:00
parent 6bc9a2aaa6
commit 1fc38f75ba
1 changed files with 0 additions and 4 deletions

View File

@ -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()));
}