店铺管理-店铺配置:打印机设置相关接口
This commit is contained in:
@@ -106,7 +106,7 @@ public class ShopPrinterServiceImpl extends ServiceImpl<TbPrintMachineMapper, Tb
|
|||||||
if (StrUtil.isBlank(dto.getCategoryList())) {
|
if (StrUtil.isBlank(dto.getCategoryList())) {
|
||||||
throw new BadRequestException("分类打印选择部分打印时,必须勾选需要部分打印的菜品");
|
throw new BadRequestException("分类打印选择部分打印时,必须勾选需要部分打印的菜品");
|
||||||
}
|
}
|
||||||
if (JSONUtil.isTypeJSONArray(dto.getCategoryList())) {
|
if (!JSONUtil.isTypeJSONArray(dto.getCategoryList())) {
|
||||||
throw new BadRequestException("传递的部分打印菜品数据不合法");
|
throw new BadRequestException("传递的部分打印菜品数据不合法");
|
||||||
}
|
}
|
||||||
if (StrUtil.isBlank(dto.getCategoryIds())) {
|
if (StrUtil.isBlank(dto.getCategoryIds())) {
|
||||||
@@ -132,7 +132,7 @@ public class ShopPrinterServiceImpl extends ServiceImpl<TbPrintMachineMapper, Tb
|
|||||||
if (StrUtil.isBlank(dto.getCategoryList())) {
|
if (StrUtil.isBlank(dto.getCategoryList())) {
|
||||||
throw new BadRequestException("分类打印选择部分打印时,必须勾选需要部分打印的菜品");
|
throw new BadRequestException("分类打印选择部分打印时,必须勾选需要部分打印的菜品");
|
||||||
}
|
}
|
||||||
if (JSONUtil.isTypeJSONArray(dto.getCategoryList())) {
|
if (!JSONUtil.isTypeJSONArray(dto.getCategoryList())) {
|
||||||
throw new BadRequestException("传递的部分打印菜品数据不合法");
|
throw new BadRequestException("传递的部分打印菜品数据不合法");
|
||||||
}
|
}
|
||||||
if (StrUtil.isBlank(dto.getCategoryIds())) {
|
if (StrUtil.isBlank(dto.getCategoryIds())) {
|
||||||
@@ -157,4 +157,5 @@ public class ShopPrinterServiceImpl extends ServiceImpl<TbPrintMachineMapper, Tb
|
|||||||
baseMapper.update(null, new LambdaUpdateWrapper<TbPrintMachineEntity>()
|
baseMapper.update(null, new LambdaUpdateWrapper<TbPrintMachineEntity>()
|
||||||
.set(TbPrintMachineEntity::getStatus, status).eq(TbPrintMachineEntity::getId, id));
|
.set(TbPrintMachineEntity::getStatus, status).eq(TbPrintMachineEntity::getId, id));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user