From 729c484fdaccd2c7a726f1385bc7b3ea4a3fc8fe Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 5 Jun 2024 13:14:12 +0800 Subject: [PATCH] md --- .../src/main/resources/mapper/EmisTmsScanRecordMapper.xml | 5 +++-- emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml | 5 +++-- .../main/resources/mapper/EmisWaybillProblemInfoMapper.xml | 3 ++- .../src/main/resources/mapper/EmisWaybillTransferMapper.xml | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index 06ef363a6..59cd7fa3d 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -200,8 +200,9 @@ and id = #{id} - and FIND_IN_SET(`order_sn`,#{orderSn}) - and FIND_IN_SET(`bill_code`,#{billCode}) + and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') ) + and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) + and scan_type=#{scanType} and pre_or_next_station like concat('%', #{preOrNextStation}, '%') and pre_or_next_station_code=#{preOrNextStationCode} diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index b47aa2dbb..405e3cd32 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -282,9 +282,10 @@ del_flag='0' and id = #{id} - and FIND_IN_SET(`order_sn`,#{orderSn}) + and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') ) + and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) + and cust_order_id=#{custOrderId} - and FIND_IN_SET(`bill_code`,#{billCode}) and bill_code_sub like concat('%', #{billCodeSub}, '%') and order_status like concat('%', #{orderStatus}, '%') and waybill_status like concat('%', #{waybillStatus}, '%') diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml index 996874630..ebad9bd17 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml @@ -46,7 +46,8 @@ del_flag='0' and id = #{id} - and bill_code like concat('%', #{billCode}, '%') + and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) + and problem_type like concat('%', #{problemType}, '%') and problem_title like concat('%', #{problemTitle}, '%') and problem_cause like concat('%', #{problemCause}, '%') diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillTransferMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillTransferMapper.xml index f6ef3e010..8c8c67cd9 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillTransferMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillTransferMapper.xml @@ -39,7 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" del_flag='0' and id = #{id} - and bill_code like concat('%', #{billCode}, '%') + and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) + and transfer_bill_code like concat('%', #{transferBillCode}, '%') and transfer_date = #{transferDate} and transfer_express like concat('%', #{transferExpress}, '%')