任务单添加工序问题修改

This commit is contained in:
z 2025-02-17 15:19:36 +08:00
parent 3990a0644a
commit d914119d59

View File

@ -19,7 +19,7 @@
select c.code,d.end_time project_end_time,d.name from pro_task_dispatch c,d.name,(SELECT b.*,c.name as name, COALESCE(SUM(a.amount), 0) AS total_amount select c.code,d.end_time project_end_time,d.name from pro_task_dispatch c,(SELECT b.*,c.name as name, COALESCE(SUM(a.amount), 0) AS total_amount
FROM pro_task_dispatch_detail b FROM pro_task_dispatch_detail b
LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id
LEFT JOIN base_procedure c ON b.procedure_id=c.id LEFT JOIN base_procedure c ON b.procedure_id=c.id
@ -28,7 +28,6 @@
HAVING COALESCE(SUM(a.amount), 0) < b.amount) d HAVING COALESCE(SUM(a.amount), 0) < b.amount) d
where d.dispatch_id =c.id and c.dispatch_type ='ASSEMBLE' where d.dispatch_id =c.id and c.dispatch_type ='ASSEMBLE'
</select> </select>
<select id="getzplist1" <select id="getzplist1"
parameterType="Long" parameterType="Long"
@ -38,7 +37,7 @@
select c.code,d.end_time project_end_time from pro_task_dispatch c,(SELECT b.*, COALESCE(SUM(a.amount), 0) AS total_amount select c.code,d.end_time project_end_time,d.creator from pro_task_dispatch c,(SELECT b.*, COALESCE(SUM(a.amount), 0) AS total_amount
FROM pro_task_dispatch_detail b FROM pro_task_dispatch_detail b
LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id
WHERE b.end_time &lt;= DATE_ADD(CURDATE(), INTERVAL 1 DAY) WHERE b.end_time &lt;= DATE_ADD(CURDATE(), INTERVAL 1 DAY)
@ -55,7 +54,7 @@
select c.code,d.end_time project_end_time from pro_task_dispatch c,d.name,(SELECT b.*, ,c.name as name,COALESCE(SUM(a.amount), 0) AS total_amount select c.code,d.end_time project_end_time,d.name from pro_task_dispatch c,(SELECT b.*,c.name as name,COALESCE(SUM(a.amount), 0) AS total_amount
FROM pro_task_dispatch_detail b FROM pro_task_dispatch_detail b
LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id LEFT JOIN pro_task_report a ON a.dispatch_detail_id = b.id
LEFT JOIN base_procedure c ON b.procedure_id=c.id LEFT JOIN base_procedure c ON b.procedure_id=c.id