|
|
@@ -322,11 +322,11 @@
|
|
|
<if test="cusName != null and cusName != ''">
|
|
|
AND tmc.cus_name LIKE concat('%',my_ex.likequery(#{cusName}),'%')
|
|
|
</if>
|
|
|
- <if test="orgIdList != null and orgIdList.size() > 0">
|
|
|
- AND t.org_id =any(#{orgIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="orgIds != null and orgIds.size() > 0">
|
|
|
+ AND t.org_id =any(#{orgIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
- <if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
- AND t.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="staffIds != null and staffIds.size() > 0">
|
|
|
+ AND t.staff_id =any(#{staffIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
<if test="outStatusList != null and outStatusList.size() > 0">
|
|
|
AND t.out_status =any(#{outStatusList, typeHandler=StringListTypeHandler})
|
|
|
@@ -809,15 +809,23 @@
|
|
|
<if test="supId != null and supId != ''">
|
|
|
AND tpo.sup_id = #{supId}::uuid
|
|
|
</if>
|
|
|
- <if test="orgIdList != null and orgIdList.size() > 0">
|
|
|
- AND tmo.org_id =any(#{orgIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="orgIds != null and orgIds.size() > 0">
|
|
|
+ AND tpo.org_id =any(#{orgIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
- <if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
- AND tms.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="staffIds != null and staffIds.size() > 0">
|
|
|
+ AND tpo.staff_id =any(#{staffIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
<if test="flgValidList != null and flgValidList.size()>0">
|
|
|
AND tpo.flg_valid =any(#{flgValidList, typeHandler=BooleanListTypeHandler})
|
|
|
</if>
|
|
|
+ <if test="searchText !=null and searchText != ''">
|
|
|
+ AND (
|
|
|
+ tpo.out_no LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tpo.cus_phone LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tpo.cus_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tpo.address_full LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
union all
|
|
|
SELECT
|
|
|
@@ -862,15 +870,23 @@
|
|
|
<if test="supId != null and supId != ''">
|
|
|
AND tpi.sup_id = #{supId}::uuid
|
|
|
</if>
|
|
|
- <if test="orgIdList != null and orgIdList.size() > 0">
|
|
|
- AND tmo.org_id =any(#{orgIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="orgIds != null and orgIds.size() > 0">
|
|
|
+ AND tpi.org_id =any(#{orgIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
- <if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
- AND tms.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="staffIds != null and staffIds.size() > 0">
|
|
|
+ AND tpi.staff_id =any(#{staffIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
<if test="flgValidList != null and flgValidList.size()>0">
|
|
|
AND tpi.flg_valid =any(#{flgValidList, typeHandler=BooleanListTypeHandler})
|
|
|
</if>
|
|
|
+ <if test="searchText !=null and searchText != ''">
|
|
|
+ AND (
|
|
|
+ tpi.into_no LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tmc.cus_phone LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tmc.cus_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ or tmc.address_full LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
) tt order by tt.op_update_time desc
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
@@ -924,11 +940,11 @@
|
|
|
<if test="supId != null and supId != ''">
|
|
|
AND tpo.sup_id = #{supId}::uuid
|
|
|
</if>
|
|
|
- <if test="orgIdList != null and orgIdList.size() > 0">
|
|
|
- AND tmo.org_id =any(#{orgIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="orgIds != null and orgIds.size() > 0">
|
|
|
+ AND tmo.org_id =any(#{orgIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
- <if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
- AND tms.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="staffIds != null and staffIds.size() > 0">
|
|
|
+ AND tms.staff_id =any(#{staffIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
<if test="flgValidList != null and flgValidList.size()>0">
|
|
|
AND tpo.flg_valid =any(#{flgValidList, typeHandler=BooleanListTypeHandler})
|
|
|
@@ -977,11 +993,11 @@
|
|
|
<if test="supId != null and supId != ''">
|
|
|
AND tpi.sup_id = #{supId}::uuid
|
|
|
</if>
|
|
|
- <if test="orgIdList != null and orgIdList.size() > 0">
|
|
|
- AND tmo.org_id =any(#{orgIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="orgIds != null and orgIds.size() > 0">
|
|
|
+ AND tmo.org_id =any(#{orgIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
- <if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
- AND tms.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
+ <if test="staffIds != null and staffIds.size() > 0">
|
|
|
+ AND tms.staff_id =any(#{staffIds, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
<if test="flgValidList != null and flgValidList.size()>0">
|
|
|
AND tpi.flg_valid =any(#{flgValidList, typeHandler=BooleanListTypeHandler})
|