Browse Source

修改进行中订单sql查询问题

yejian 3 years ago
parent
commit
25190b6507

+ 0 - 1
imcs-admin-boot/imcs-business-biz/src/main/resources/mapper_business/base/operationManagementCenter/PlanMapper.xml

@@ -51,7 +51,6 @@
         imcs_z_zone d on d.id = b.zone_id
         LEFT JOIN ( SELECT t.plan_id, count(1) taskCount,  sum(CASE WHEN t. STATUS = '3' THEN 1 ELSE 0 END) wcCount FROM imcs_t_task t GROUP BY t.plan_id) w ON a.id = w.plan_id
         LEFT JOIN ( SELECT i.plan_id, sum(CASE WHEN i.is_end = '1' THEN 1 ELSE 0 END) completeCount,sum(CASE WHEN i.test_result = '0' THEN 1 ELSE 0 END) unqualifiedBomNum FROM imcs_t_workpiece i GROUP BY i.plan_id ) v ON a.id = v.plan_id
-        LEFT JOIN imcs_t_workpiece t on c.plan_id = t.plan_id
         where 1=1
         <if test="taskBatchNo != null and taskBatchNo != ''">
             and a.id in(select plan_id from imcs_t_task where task_batch_no = #{taskBatchNo})