소스 검색

fix 修改招商引资填报单位模糊匹配

tjf 3 년 전
부모
커밋
61d3813ee8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruoyi-system/src/main/resources/mapper/system/project/BmProjectMapper.xml

+ 1 - 1
ruoyi-system/src/main/resources/mapper/system/project/BmProjectMapper.xml

@@ -62,7 +62,7 @@
             </if>
             <if test="industry != null  and industry != ''">and p.industry = #{industry}</if>
             <if test="projectStatus != null ">and p.project_status = #{projectStatus}</if>
-            <if test="deptName != null and deptName != ''">and d.dept_name = #{deptName}</if>
+            <if test="deptName != null and deptName != ''">and d.dept_name like concat('%', #{deptName}, '%')</if>
             <if test="totAmt != null ">and p.tot_amt = #{totAmt}</if>
             <if test="isDel != null ">and p.is_del = #{isDel}</if>
             <if test="beginTime != null ">and p.create_time &gt;= #{beginTime}</if>