This commit is contained in:
linfso 2025-04-01 07:39:12 +08:00
parent af07178e6c
commit 0654dcdab6
3 changed files with 19 additions and 13 deletions

View File

@ -98,7 +98,7 @@ public class EmisWaybillAttachmentController extends EmisBaseController
List<EmisWaybillAttachment> list=null; List<EmisWaybillAttachment> list=null;
if(!StringUtils.isEmpty(billCode)){ if(!StringUtils.isEmpty(billCode)){
EmisWaybillAttachment emisWaybillAttachment = new EmisWaybillAttachment(); EmisWaybillAttachment emisWaybillAttachment = new EmisWaybillAttachment();
emisWaybillAttachment.setBillCode(billCode); emisWaybillAttachment.setBillCode(WaybillHelper.formatQueryValue(billCode));
String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(","); String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(",");
if(billCodeSortList.length>1){ if(billCodeSortList.length>1){
emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList)); emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList));

View File

@ -283,13 +283,15 @@
<if test="orderSn != null and orderSn != ''"> <if test="orderSn != null and orderSn != ''">
and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') ) and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') )
</if> </if>
<if test="billCode != null and billCode != ''"> <if test="billCode != null and billCode != '' and params.billCodeSortList == null">
<!-- and ( FIND_IN_SET(`bill_code`,#{billCode}) or FIND_IN_SET(`main_bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) --> and `bill_code`=#{billCode}
</if>
<if test="params.billCodeSortList != null and params.billCodeSortList.size > 1 ">
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>
</if> </if>
<if test="scanType != null and scanType != ''"> and scan_type=#{scanType}</if> <if test="scanType != null and scanType != ''"> and scan_type=#{scanType}</if>
<if test="preOrNextStation != null and preOrNextStation != ''"> and pre_or_next_station like concat('%', #{preOrNextStation}, '%')</if> <if test="preOrNextStation != null and preOrNextStation != ''"> and pre_or_next_station like concat('%', #{preOrNextStation}, '%')</if>

View File

@ -28,16 +28,20 @@
del_flag='0' del_flag='0'
<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 != ''"> <!--
and bill_code in and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")"> -->
#{item}
</foreach>
<!-- <if test="billCode != null and billCode != '' and params.billCodeSortList == null">
and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) and `bill_code`=#{billCode}
-->
</if> </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="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>
<if test="fileUrl != null and fileUrl != ''"> and file_url like concat('%', #{fileUrl}, '%')</if> <if test="fileUrl != null and fileUrl != ''"> and file_url like concat('%', #{fileUrl}, '%')</if>