1. 取消会员接口修改

This commit is contained in:
2024-10-31 14:23:07 +08:00
parent 479a286040
commit 1f412710e7

View File

@@ -97,6 +97,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
private final MpShopUnitMapper mpShopUnitMapper;
private final MpProductStockDetailMapper mpProductStockDetailMapper;
private final TbMemberPointsService memberPointsService;
private final TbShopCouponService shopCouponService;
/**
@@ -1112,10 +1113,11 @@ public class TbShopTableServiceImpl implements TbShopTableService {
tbShopTable = mpShopTableMapper.selectOne(new LambdaQueryWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, createOrderDTO.getTableId())
.in(TbShopTable::getStatus, "idle", "using"));
if (tbShopTable == null) {
throw new BadRequestException("台桌未开台或不存在");
}
}
if (tbShopTable == null) {
throw new BadRequestException("台桌未开台或不存在");
}
// 就餐模式信息
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(createOrderDTO.getShopId(), createOrderDTO.getTableId(), createOrderDTO.getUseType());
@@ -1782,7 +1784,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
return orderInfoMapper.update(null, new LambdaUpdateWrapper<TbOrderInfo>()
.eq(TbOrderInfo::getId, orderId)
.set(TbOrderInfo::getUserId, null)
.set(TbOrderInfo::getUserId, null));
.set(TbOrderInfo::getMemberId, null));
}
}
return true;