fix: 店铺信息不校验state
This commit is contained in:
@@ -57,8 +57,7 @@ public class MpCashierCartServiceImpl extends ServiceImpl<TbCashierCartMapper, T
|
|||||||
@Override
|
@Override
|
||||||
public List<TbCashierCart> selectUnTableCart(String masterId, Integer shopId) {
|
public List<TbCashierCart> selectUnTableCart(String masterId, Integer shopId) {
|
||||||
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("店铺信息不存在");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user