会员余额支付缺陷修复

This commit is contained in:
谭凯凯
2024-10-29 15:16:34 +08:00
committed by Tankaikai
parent a11cb5eea5
commit 17cbff4228

View File

@@ -2,6 +2,7 @@
package cn.ysk.cashier.service.impl.shopimpl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.ObjectUtil;
@@ -55,7 +56,6 @@ import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.criteria.Order;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
@@ -1636,6 +1636,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfo.setDiscountRatio(BigDecimal.valueOf(payDTO.getDiscount()));
orderInfo.setDiscountAmount(orderInfo.getAmount().subtract(finalAmount));
}
orderInfo.setMemberId(Convert.toStr(payDTO.getVipUserId()));
orderInfoMapper.updateById(orderInfo);
//更新购物车状态