From f7245330713ad950c11cab685208fb63b03f2a73 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 19 Nov 2024 14:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E6=A8=A1=E5=9D=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/material/basic/BmAgreementInfoMapper.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml index 0c435dc4..3689a98f 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml @@ -63,9 +63,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bu.unit_id,bu.unit_name , bp.pro_id as projectId , bp.pro_name as projectName, plan_start_time,lease_day,auth_person,phone,bai.remark,bai.protocol,tta.task_id FROM bm_agreement_info bai - LEFT JOIN bm_project bp ON bp.pro_id = bai.project_id - LEFT JOIN bm_unit bu ON bu.unit_id = bai.unit_id - LEFT JOIN tm_task_agreement tta on bai.agreement_id = tta.agreement_id + LEFT JOIN bm_project bp ON bp.pro_id = bai.project_id + LEFT JOIN bm_unit bu ON bu.unit_id = bai.unit_id + LEFT JOIN (select MIN(task_id) as task_id,agreement_id from tm_task_agreement + where agreement_id = #{agreementId}) tta on bai.agreement_id = tta.agreement_id where bai.status = '1' and bai.agreement_id = #{agreementId}