|
@@ -57,7 +57,7 @@
|
|
|
AND b.is_deleted = "N"
|
|
|
AND a.hospital_id = b.id
|
|
|
<if test="behospitalCode !=null and behospitalCode !=''">
|
|
|
- AND a.behospital_code LIKE CONCAT('%', #{behospitalCode}, '%')
|
|
|
+ AND UPPER(a.behospital_code) LIKE CONCAT('%', UPPER(trim(#{behospitalCode})), '%')
|
|
|
</if>
|
|
|
<if test="deptId != null and deptId !=''">
|
|
|
AND a.beh_dept_id = #{deptId}
|
|
@@ -66,7 +66,7 @@
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
<if test="name != null and name!= ''">
|
|
|
- AND a.name LIKE CONCAT('%', #{name}, '%')
|
|
|
+ AND UPPER(a.name) LIKE CONCAT('%', UPPER(trim(#{name})), '%')
|
|
|
</if>
|
|
|
<if test="leaveHosDateStart != null">
|
|
|
<![CDATA[ and a.leave_hospital_date >= #{leaveHosDateStart}]]>
|
|
@@ -137,10 +137,10 @@
|
|
|
AND d.cases_id= #{casesId}
|
|
|
</if>
|
|
|
<if test="entryCode!=null and entryCode!=''">
|
|
|
- AND d.code LIKE CONCAT('%',#{entryCode},'%')
|
|
|
+ AND UPPER(d.code) LIKE CONCAT('%', UPPER(trim(#{entryCode})), '%')
|
|
|
</if>
|
|
|
<if test="entryName!=null and entryName!=''">
|
|
|
- AND d.name LIKE CONCAT('%',#{entryName},'%')
|
|
|
+ AND UPPER(d.name) LIKE CONCAT('%', UPPER(trim(#{entryName})), '%')
|
|
|
</if>
|
|
|
|
|
|
) t1
|