diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml index f83562ac..1583991e 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml @@ -1223,6 +1223,9 @@ #{aid} + + and bai.unit_id = #{info.unitId} + and bai.agreement_code like concat('%',#{info.agreementCode},'%') @@ -1353,7 +1356,9 @@ and mt.jiju_type in (1,2) - + + and bai.unit_id = #{info.unitId} + and tt.create_time between #{info.startTime} and #{info.endTime} @@ -1530,8 +1535,7 @@ bp.actual_end_date as actualEndDate FROM bm_agreement_info bai - LEFT JOIN slt_agreement_apply saa - ON bai.agreement_id = saa.agreement_id AND saa.settlement_type = #{settlementType} + LEFT JOIN slt_agreement_apply saa ON bai.agreement_id = saa.agreement_id AND saa.settlement_type = #{settlementType} LEFT JOIN slt_agreement_details sad ON saa.id = sad.apply_id AND sad.slt_type = '2' LEFT JOIN bm_project bp ON bp.pro_id = bai.project_id LEFT JOIN sys_dept sd ON sd.dept_id = bp.imp_unit @@ -1539,6 +1543,9 @@ left join ma_type mt on sad.type_id = mt.type_id left join ma_type mt1 on mt.parent_id = mt1.type_id + + and bai.unit_id = #{unitId} + and bai.company_id = #{companyId}