fix: 店铺信息不校验state

This commit is contained in:
张松
2024-12-16 15:05:11 +08:00
parent 42b310b237
commit 25b56e437f

View File

@@ -57,8 +57,7 @@ public class MpCashierCartServiceImpl extends ServiceImpl<TbCashierCartMapper, T
@Override
public List<TbCashierCart> selectUnTableCart(String masterId, Integer shopId) {
TbShopInfo shopInfo = mpShopInfoMapper.selectOne(new LambdaQueryWrapper<TbShopInfo>()
.eq(TbShopInfo::getId, shopId)
.eq(TbShopInfo::getStatus, 1));
.eq(TbShopInfo::getId, shopId));
if (shopInfo == null) {
throw new BadRequestException("店铺信息不存在");
}