领料模块优化

This commit is contained in:
sxu 2024-11-19 14:00:58 +08:00
parent c7b3e2f7f8
commit f724533071
1 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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 (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}
</select>