This commit is contained in:
linfso 2024-06-21 21:34:04 +08:00
parent 01a21cf332
commit b71aff1dad

View File

@ -313,13 +313,13 @@
from emis_tms_scan_record a
<where>
del_flag='0'
<if test="billCode != null and billCode != ''"> and ( FIND_IN_SET(`bill_code`,#{billCode}) or FIND_IN_SET(`main_bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) </if>
<if test="billCode != null and billCode != ''">
and ( FIND_IN_SET(`bill_code`,#{billCode}) )
</if>
<if test="blSubBill != null and blSubBill == 1 ">
and bl_sub_bill='1'
</if>
<if test="blSubBill != null and blSubBill == 0 ">
and bl_sub_bill='0'
or FIND_IN_SET(`main_bill_code`,#{billCode})
</if>
</where>
ORDER BY
<if test="params.orderSnSortList != null and params.orderSnSortList.size >0 ">