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