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