From 38a642610cc38262907a9c61d7db764c46ff53dd Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 11 May 2025 11:17:42 +0800 Subject: [PATCH] md --- .../mapper/EmisSettlePayRecordMapper.xml | 18 +++++++++++++----- .../mapper/EmisSpecialCalcWeightMapper.xml | 12 +++++------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml index 76240f698..d8a7a17d3 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml @@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and rec_type = #{recType} and pay_man like concat('%', #{payMan}, '%') and pay_man_code like concat('%', #{payManCode}, '%') - and settle_bill_no = #{settleBillNo} + and bl_audit = #{blAudit} and audit_date = #{auditDate} and audit_man_code = #{auditManCode} @@ -153,13 +153,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - and settle_bill_no in( - select bill_no from emis_settle_sub_bill b - where del_flag='0' - and ( FIND_IN_SET(b.`bill_code`,#{params.billCode}) or b.bill_code like concat('%', #{params.billCode}, '%') ) + and pay_id in( + select pay_id from emis_settle_pay_rel espr + where espr.del_flag='0' + and FIND_IN_SET(espr.`bill_code`,#{params.billCode}) ) + + and pay_id in( + select pay_id from emis_settle_pay_bill_rel espbr + where espbr.del_flag='0' + and FIND_IN_SET(espbr.settle_bill_no,#{settleBillNo}) + ) + + and settle_bill_no in( diff --git a/emis-biz/src/main/resources/mapper/EmisSpecialCalcWeightMapper.xml b/emis-biz/src/main/resources/mapper/EmisSpecialCalcWeightMapper.xml index 755515b30..e59b6c59e 100644 --- a/emis-biz/src/main/resources/mapper/EmisSpecialCalcWeightMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSpecialCalcWeightMapper.xml @@ -154,8 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where del_flag='0' and id!=#{id} and prod_code = #{prodCode} - and - ( + and ( ( begin_weight #{beginWeight} and #{beginWeight} end_weight ) or ( begin_weight #{endWeight} and #{endWeight} end_weight ) ) @@ -171,11 +170,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" \ No newline at end of file