领料模块优化
This commit is contained in:
parent
c7b3e2f7f8
commit
f724533071
|
|
@ -65,7 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
FROM bm_agreement_info bai
|
FROM bm_agreement_info bai
|
||||||
LEFT JOIN bm_project bp ON bp.pro_id = bai.project_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 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}
|
where bai.status = '1' and bai.agreement_id = #{agreementId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue