Browse Source

签章附件查询sql调整

user5 2 năm trước cách đây
mục cha
commit
d91e5ec75f

+ 3 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/cw/projectReport/mapper/xml/CwProjectReportMapper.xml

@@ -314,7 +314,9 @@
         where a.project_id = #{projectId} and a.del_flag = '0'
     </select>
     <select id="findFileList" resultType="com.jeeplus.test.oss.domain.WorkAttachment">
-        SELECT * FROM work_attachment WHERE del_flag = 0 AND attachment_id = #{id}
+        SELECT * FROM work_attachment a
+        left join cw_project_report_file b on a.id = b.report_file_id
+        WHERE a.del_flag = 0 AND a.attachment_id = #{id} and b.file_affiliation = 0
     </select>
     <select id="findIsExit" resultType="java.lang.Integer">
         SELECT