diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisTmsSiteBatchController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisTmsSiteBatchController.java
index 44e1601b2..0e33c2614 100644
--- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisTmsSiteBatchController.java
+++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisTmsSiteBatchController.java
@@ -79,6 +79,10 @@ public class EmisTmsSiteBatchController extends EmisBaseController
emisTmsSiteBatch.setBatchNo(WaybillHelper.formatQueryValue(emisTmsSiteBatch.getBatchNo()));
}
+ if(!StringUtils.isEmpty(emisTmsSiteBatch.getCarNo())){
+ emisTmsSiteBatch.setCarNo(WaybillHelper.formatQueryValue(emisTmsSiteBatch.getCarNo()));
+ }
+
if(emisTmsSiteBatch.getParams().get("billCode")!=null){
String billCodeStr=emisTmsSiteBatch.getParams().get("billCode").toString();
billCodeStr=WaybillHelper.formatQueryValue(billCodeStr);
diff --git a/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchDtlMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchDtlMapper.xml
index e396d2c4f..8aa8367e0 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchDtlMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchDtlMapper.xml
@@ -83,6 +83,8 @@
#{status}
+ and exists (select 1 from emis_tms_site_batch batch where batch.batch_no =
+ emis_tms_site_batch_dtl.batch_no and batch.del_flag='0')
diff --git a/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchMapper.xml
index a1843bdbf..f5eee5f4c 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsSiteBatchMapper.xml
@@ -174,7 +174,7 @@
and etd = #{etd}
and eta = #{eta}
and pack_num = #{packNum}
- and car_no like concat('%', #{carNo}, '%')
+ and FIND_IN_SET(`car_no`,#{carNo})
and ship_no=#{shipNo}
and clearance_res_status= #{clearanceResStatus}
and declare_res_status=#{declareResStatus}
diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
index 03a2ba25b..c5eb0eee8 100644
--- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
@@ -3933,7 +3933,7 @@
and a.trans_line_type = #{lineCode}
--- and DATE_FORMAT(a.send_date, '%Y-%m-%d') = ]]> '2025-01-01'
+ and DATE_FORMAT(a.send_date, '%Y-%m-%d') = ]]> '2025-01-01'
-- and DATE_FORMAT(a.send_date, '%Y-%m-%d') DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 7 DAY),
-- '%Y-%m-%d')
and ((a.virtual_remark is null or a.virtual_remark = '' or a.virtual_remark = ' ')or a.receive_country !=