fix: 会员修改接口修改
This commit is contained in:
@@ -2109,6 +2109,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
|
||||
@Override
|
||||
public Object updateVip(UpdateVipDTO updateVipDTO) {
|
||||
Integer orderId = updateVipDTO.getOrderId();
|
||||
if (orderId == null) {
|
||||
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(updateVipDTO.getShopId(), updateVipDTO.getTableId());
|
||||
LambdaQueryWrapper<TbCashierCart> queryWrapper = new LambdaQueryWrapper<TbCashierCart>()
|
||||
.in(TbCashierCart::getStatus, "create", "return")
|
||||
@@ -2124,15 +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) {
|
||||
@@ -2149,8 +2149,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
.set(TbOrderInfo::getMemberId, null));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private void setCurrentOrderId(String tableId, Object shopId, String orderId) {
|
||||
|
||||
Reference in New Issue
Block a user