浏览代码

feat:实时调度过滤查询bug

wangweiyu 4 年之前
父节点
当前提交
c30ccd16a3

+ 1 - 0
src/main/java/com/aoyang/tms/service/impl/CommonServiceImpl.java

@@ -215,6 +215,7 @@ public class CommonServiceImpl implements CommonService {
         User user = new User();
         user.setUserId(userId);
         Result<User> result = userFeignClient.find(user);
+        log.info("根据id查询用户信息 param:{}, result:{}", userId, JSON.toJSONString(result));
         if (verifyResult(result)) {
             return result.getData();
         }

+ 1 - 1
src/main/resources/mapper/TruckMapper.xml

@@ -146,7 +146,7 @@
     <select id="getUnExecutedOrderTruckCount" resultType="java.lang.Integer">
         SELECT count(1)
         FROM ( select id from truck left join tms_work_order wo on truck.truck_id = wo.truck_id and wo.order_status = 0
-        WHERE truck.org_id = #{orgId} and truck.tms_status = 0 and wo.id is not null
+        WHERE truck.org_id = #{orgId} and wo.id is not null
         group by truck.truck_id ) tbl
     </select>