Browse Source

科室列表模糊搜索bug调整

chengyao 4 years ago
parent
commit
a7b6fc4c25

+ 1 - 1
src/main/resources/mapper/BasDeptInfoMapper.xml

@@ -30,7 +30,7 @@
         AND t.station = '住院'
         AND t.hospital_id = #{hospitalId}
         <if test="inputStr !=null and inputStr != ''">
-            AND (UPPER(t.spell) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%') OR UPPER(t.dept_name) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%'));
+            AND (UPPER(t.spell) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%') OR UPPER(t.dept_name) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%'))
         </if>
         ORDER BY t.dept_name ASC
     </select>

+ 1 - 1
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -70,7 +70,7 @@
         AND t.hospital_id = h.hospital_id
         where t.is_deleted = 'N'
         <if test="diagnose != null and diagnose != ''">
-            AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
+            AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
         </if>
         <if test="deptId != null and deptId != ''">
             and t.beh_dept_id = #{deptId}