fix: 店铺信息不校验state

This commit is contained in:
张松
2024-12-13 11:21:08 +08:00
parent 16166055a4
commit 9bf4807965

View File

@@ -190,8 +190,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
*/ */
private ShopEatTypeInfoDTO getShopEatTypeInfoDTO(Object shopId, String eatModel, String tableId) { private ShopEatTypeInfoDTO getShopEatTypeInfoDTO(Object shopId, String eatModel, String tableId) {
TbShopInfo shopInfo = mpShopInfoMapper.selectOne(new LambdaQueryWrapper<TbShopInfo>() TbShopInfo shopInfo = mpShopInfoMapper.selectOne(new LambdaQueryWrapper<TbShopInfo>()
.eq(TbShopInfo::getId, shopId) .eq(TbShopInfo::getId, shopId));
.eq(TbShopInfo::getStatus, 1));
if (shopInfo == null) { if (shopInfo == null) {
throw new BadRequestException("店铺信息不存在"); throw new BadRequestException("店铺信息不存在");
} }