From 0654dcdab6a5eaa478b4e9e338875f65f6398c3f Mon Sep 17 00:00:00 2001 From: linfso Date: Tue, 1 Apr 2025 07:39:12 +0800 Subject: [PATCH] md --- .../emis/EmisWaybillAttachmentController.java | 2 +- .../mapper/EmisTmsScanRecordMapper.xml | 10 ++++++---- .../mapper/EmisWaybillAttachmentMapper.xml | 20 +++++++++++-------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java index da077b6c8..9ba4e5c5b 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java @@ -98,7 +98,7 @@ public class EmisWaybillAttachmentController extends EmisBaseController List list=null; if(!StringUtils.isEmpty(billCode)){ EmisWaybillAttachment emisWaybillAttachment = new EmisWaybillAttachment(); - emisWaybillAttachment.setBillCode(billCode); + emisWaybillAttachment.setBillCode(WaybillHelper.formatQueryValue(billCode)); String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(","); if(billCodeSortList.length>1){ emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList)); diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index db9c468df..4735ff3f6 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -283,13 +283,15 @@ and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') ) - - + + and `bill_code`=#{billCode} + + and bill_code in - + #{item} - + and scan_type=#{scanType} and pre_or_next_station like concat('%', #{preOrNextStation}, '%') diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml index 60e9dc07e..4b1f3df41 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml @@ -28,16 +28,20 @@ del_flag='0' and id = #{id} and waybill_id = #{waybillId} - - and bill_code in - - #{item} - + - + + and `bill_code`=#{billCode} + + and bill_code in + + #{item} + + + and FIND_IN_SET(attach_type,#{attachType}) and file_name like concat('%', #{fileName}, '%') and file_url like concat('%', #{fileUrl}, '%')