|
|
@@ -178,10 +178,11 @@ public class OrderScheduler {
|
|
|
shopList.add(shopId);
|
|
|
}
|
|
|
}
|
|
|
+ log.info("所属运营商店铺:"+shopList);
|
|
|
// 查询所有 待取餐/派送中 状态的订单
|
|
|
QueryWrapper<TbOrder> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("status", 3);
|
|
|
- queryWrapper.notIn(shopList.size()>0,"shop_id",shopList);
|
|
|
+ queryWrapper.notIn(ObjectUtils.isNotEmpty(shopList)&&shopList.size()>0,"shop_id",shopList);
|
|
|
List<TbOrder> orders = orderService.list(queryWrapper);
|
|
|
for (TbOrder order : orders) {
|
|
|
try {
|