Prechádzať zdrojové kódy

档案查询只查询非基本文件,档案柜按档号搜索

qianxb 2 rokov pred
rodič
commit
dd6b454487

+ 2 - 2
blade-service/blade-archive/src/main/java/org/springblade/archive/mapper/ArchivesAutoMapper.xml

@@ -57,7 +57,7 @@
 
     <select id="approvalFile" resultType="org.springblade.archive.vo.ArchivesAutoVO$ApprovalFile">
         <if test="archiveId!=null">
-            select * from u_archive_file where archive_id = #{archiveId}
+            select * from u_archive_file where archive_id = #{archiveId} and is_element = 0
         </if>
     </select>
 
@@ -504,7 +504,7 @@
             and uaa.contract_id = #{vo.contractId}
         </if>
         <if test="vo.searchType == 1 and vo.queryValue != null and vo.queryValue != ''">
-            and uaa.name like concat('%',#{vo.queryValue},'%')
+            and uaa.name like concat('%',#{vo.queryValue},'%') or uaa.file_number like concat('%',#{vo.queryValue},'%')
         </if>
         <if test="vo.searchType == 2 and vo.queryValue != null and vo.queryValue != ''">
             and uaf.file_name like concat('%',#{vo.queryValue},'%')