Преглед изворни кода

添加电签检测任务时只添加已审批的数据

lvy пре 1 дан
родитељ
комит
619c69ffd3

+ 2 - 2
blade-service/blade-business/src/main/java/org/springblade/business/mapper/InformationQueryMapper.xml

@@ -1012,12 +1012,12 @@
     <update id="addCheckPdfInfoByNodeId" >
         update u_information_query a set a.chek_status=1
         where a.is_deleted = 0 and a.classify=#{classify} and a.wbs_id
-        in( select b.p_key_id from m_wbs_tree_contract b where b.is_deleted = 0 and b.ancestors_p_id like CONCAT(CONCAT('%', #{ids}), '%') and b.is_deleted = 0) and a.status in(1,2)
+        in( select b.p_key_id from m_wbs_tree_contract b where b.is_deleted = 0 and b.ancestors_p_id like CONCAT(CONCAT('%', #{ids}), '%') and b.is_deleted = 0) and a.status = 2
     </update>
 
     <update id="addCheckPdfInfoByIds">
         update u_information_query set chek_status=1
-        where is_deleted = 0 and classify=#{classify} and id in
+        where status = 2 and is_deleted = 0 and classify=#{classify} and id in
         <foreach collection="ids" item="id" open="(" separator="," close=")">
             #{id}
         </foreach>