fix: 选择会员修改

This commit is contained in:
2024-11-04 13:37:20 +08:00
parent b401f23ec4
commit 062a0cc2f4

View File

@@ -2126,6 +2126,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
List<TbCashierCart> tbCashierCarts = cashierCartMapper.selectList(queryWrapper.isNotNull(TbCashierCart::getOrderId));
if (!tbCashierCarts.isEmpty()) {
Integer orderId = updateVipDTO.getOrderId();
if (orderId == null) {
for (TbCashierCart item : tbCashierCarts) {
if (item.getOrderId() != null) {
orderId = item.getOrderId();
}
}
}
if (updateVipDTO.getType() == 0) {
TbShopUser shopUser = tbShopUserMapper.selectById(updateVipDTO.getVipUserId());
if (shopUser == null) {