This commit is contained in:
linfso 2025-04-01 09:14:00 +08:00
parent 5c78a388e9
commit 56a403da6a

View File

@ -476,17 +476,30 @@
from emis_tms_scan_record a
<where>
del_flag='0'
<if test="billCode != null and billCode != ''">
<if test="billCode != null and billCode != '' and params.billCodeSortList==null ">
bill_code=#{billCode}
</if>
<if test="params.billCodeSortList != null and params.billCodeSortList.size() > 1 ">
and bill_code in
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="blSubBill != null and blSubBill == 1 ">
and main_bill_code in
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
#{item}
</foreach>
<if test="billCode != null and billCode != '' and params.billCodeSortList==null ">
main_bill_code=#{billCode}
</if>
<if test="params.billCodeSortList != null and params.billCodeSortList.size() > 1 ">
and main_bill_code in
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</if>
</where>