Forráskód Böngészése

排产调度生产中零件统计问题修改

yejian 3 éve
szülő
commit
b607e31dea

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

@@ -217,7 +217,7 @@
             and z.org_id in (${orgIds})
         </if>
         union ALL
-        select 0 producePlan, 0 as delayPlan,COUNT(0) producePart,0 as badPart from imcs_t_workpiece w left join imcs_o_order o on w.order_id=o.id left join imcs_z_zone z ON o.zone_id = z.id where w.is_end = '0'
+        select 0 producePlan, 0 as delayPlan,COUNT(0) producePart,0 as badPart from imcs_t_workpiece w left join imcs_p_plan ipp on (w.plan_id=ipp.id and ipp.produce_status='2') left join imcs_o_order o on ipp.order_id=o.id left join imcs_z_zone z ON o.zone_id = z.id where w.is_end = '0' AND ipp.produce_status = '2'
         <if test="orgIds != null and orgIds != ''">
             and z.org_id in (${orgIds})
         </if>