|
|
@@ -151,8 +151,31 @@
|
|
|
<!-- 一览条件列 -->
|
|
|
<sql id="Condition_Response">
|
|
|
<where>
|
|
|
+ <if test="oWhName != null and oWhName != ''">
|
|
|
+ AND otmw.wh_name LIKE concat('%',my_ex.likequery(#{oWhName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="whName != null and whName != ''">
|
|
|
+ AND tmw.wh_name LIKE concat('%',my_ex.likequery(#{whName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="staffName != null and staffName != ''">
|
|
|
+ AND staff.staff_name LIKE concat('%',my_ex.likequery(#{staffName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="orgName != null and orgName != ''">
|
|
|
+ AND org.org_name LIKE concat('%',my_ex.likequery(#{orgName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="makeTimeStart != null and makeTimeEnd != null">
|
|
|
+ AND trf.make_time >= #{makeTimeStart}::timestamp with time zone
|
|
|
+ AND trf.make_time < #{makeTimeEnd}::timestamp with time zone + interval '1 day'
|
|
|
+ </if>
|
|
|
+ <if test="transferDateWStart != null and transferDateWEnd != null">
|
|
|
+ AND trf.transfer_date >= #{transferDateWStart}::timestamp with time zone
|
|
|
+ AND trf.transfer_date < #{transferDateWEnd}::timestamp with time zone + interval '1 day'
|
|
|
+ </if>
|
|
|
+ <if test="transferTypeList != null and transferTypeList.size()>0">
|
|
|
+ AND trf.transfer_type =any(#{transferTypeList,typeHandler=StringListTypeHandler})
|
|
|
+ </if>
|
|
|
<if test="transferNo != null and transferNo != ''">
|
|
|
- AND trf.transfer_no = LIKE concat('%',my_ex.likequery(#{transferNo}),'%')
|
|
|
+ AND trf.transfer_no LIKE concat('%',my_ex.likequery(#{transferNo}),'%')
|
|
|
</if>
|
|
|
<if test="transferDate != null">
|
|
|
AND trf.transfer_date = #{transferDate}
|
|
|
@@ -164,13 +187,13 @@
|
|
|
AND wh_id = #{whId}
|
|
|
</if>
|
|
|
<if test="oNonStdCode != null and oNonStdCode != ''">
|
|
|
- AND o_non_std_code = #{oNonStdCode}
|
|
|
+ AND o_non_std_code LIKE concat('%',my_ex.likequery(#{oNonStdCode}),'%')
|
|
|
</if>
|
|
|
<if test="nonStdCode != null and nonStdCode != ''">
|
|
|
- AND non_std_code = #{nonStdCode}
|
|
|
+ AND non_std_code LIKE concat('%',my_ex.likequery(#{nonStdCode}),'%')
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
- AND trf.remarks = #{remarks}
|
|
|
+ AND trf.remarks LIKE concat('%',my_ex.likequery(#{remarks}),'%')
|
|
|
</if>
|
|
|
<if test="cpId != null">
|
|
|
AND trf.cp_id = #{cpId}
|
|
|
@@ -184,6 +207,9 @@
|
|
|
<if test="staffIdList != null and staffIdList.size>0">
|
|
|
AND trf.staff_id = any(#{staffIdList, typeHandler=UuidListTypeHandler})
|
|
|
</if>
|
|
|
+ <if test="searchText !=null">
|
|
|
+ AND trf.transfer_no LIKE concat('%',my_ex.likequery(#{searchText}), '%')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|