fix: 选择会员修改
This commit is contained in:
@@ -2126,6 +2126,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
List<TbCashierCart> tbCashierCarts = cashierCartMapper.selectList(queryWrapper.isNotNull(TbCashierCart::getOrderId));
|
List<TbCashierCart> tbCashierCarts = cashierCartMapper.selectList(queryWrapper.isNotNull(TbCashierCart::getOrderId));
|
||||||
if (!tbCashierCarts.isEmpty()) {
|
if (!tbCashierCarts.isEmpty()) {
|
||||||
Integer orderId = updateVipDTO.getOrderId();
|
Integer orderId = updateVipDTO.getOrderId();
|
||||||
|
if (orderId == null) {
|
||||||
|
for (TbCashierCart item : tbCashierCarts) {
|
||||||
|
if (item.getOrderId() != null) {
|
||||||
|
orderId = item.getOrderId();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (updateVipDTO.getType() == 0) {
|
if (updateVipDTO.getType() == 0) {
|
||||||
TbShopUser shopUser = tbShopUserMapper.selectById(updateVipDTO.getVipUserId());
|
TbShopUser shopUser = tbShopUserMapper.selectById(updateVipDTO.getVipUserId());
|
||||||
if (shopUser == null) {
|
if (shopUser == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user