This commit is contained in:
linfso 2025-03-31 11:32:54 +08:00
parent 6186f39767
commit 94e455b7de

View File

@ -29,11 +29,12 @@
<if test="id != null "> and id = #{id}</if> <if test="id != null "> and id = #{id}</if>
<if test="waybillId != null "> and waybill_id = #{waybillId}</if> <if test="waybillId != null "> and waybill_id = #{waybillId}</if>
<if test="billCode != null and billCode != ''"> <if test="billCode != null and billCode != ''">
and bill_code in <!-- and bill_code in
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")"> <foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
<!-- and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) --> -->
and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
</if> </if>
<if test="attachType != null and attachType != ''"> and FIND_IN_SET(attach_type,#{attachType})</if> <if test="attachType != null and attachType != ''"> and FIND_IN_SET(attach_type,#{attachType})</if>
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>