|
|
@@ -299,13 +299,13 @@ public class ShopMessageServiceImpl extends ServiceImpl<ShopMessageDao, GoodsSho
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 如果修改店铺下线,需要判断当前订单有无未完成订单,如有则不允许下线
|
|
|
- if (Integer.valueOf(Constant.YES).equals(goodsShop.getPutawayFlag())) {
|
|
|
- int num = appOrderDao.countUnFinishByShopId(goodsShop.getShopId());
|
|
|
- if (num > 0) {
|
|
|
- return Result.error("当前店铺存在未完成订单,请完成所有订单后再修改店铺状态");
|
|
|
- }
|
|
|
- }
|
|
|
+ // 如果修改为店铺下线状态,需要判断当前店铺有无未完成订单,如有则不允许下线
|
|
|
+ // if (Integer.valueOf(Constant.YES).equals(goodsShop.getPutawayFlag())) {
|
|
|
+ // int num = appOrderDao.countUnFinishByShopId(goodsShop.getShopId());
|
|
|
+ // if (num > 0) {
|
|
|
+ // return Result.error("当前店铺存在未完成订单,请完成所有订单后再修改店铺状态");
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
baseMapper.updateById(goodsShop);
|
|
|
return Result.success();
|