领料模块优化
This commit is contained in:
parent
c7b3e2f7f8
commit
f724533071
|
|
@ -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}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue