Ver código fonte

one more filter for 2099

dengjia 3 meses atrás
pai
commit
9a9a0be75f

+ 6 - 2
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmTaskMapper.xml

@@ -1437,8 +1437,11 @@
   </select>
 
   <select id="listAvailableTaskForSupervision2" resultMap="wmTaskMap">
-    SELECT *
-    FROM wm_task t
+    SELECT * FROM
+    (SELECT wm_task.*, f2099.target_id f2099id FROM wm_task
+    LEFT JOIN ops_freeze_task f2099
+    ON f2099.target_id = wm_task.id
+    ) t
     RIGHT JOIN (SELECT DISTINCT h.target_id
                 FROM sys_chain_node_check_his h
                 WHERE h.node_id = 6
@@ -1446,6 +1449,7 @@
                 ) c ON c.target_id = t.id
     <where>
       t.task_status = '3'
+      AND t.f2099id is NULL
       <if test="pkgIds != null and pkgIds.size > 0">
         AND t.score_package_id IN
         <foreach collection="pkgIds" item="id" open="(" separator="," close=")">