大屏值统计未下发以外的工单

This commit is contained in:
18188916393
2022-08-05 10:26:51 +08:00
parent f0fbf69345
commit 04b1c0aacb

View File

@@ -61,6 +61,7 @@
where where
shiftorder.is_delete='0' shiftorder.is_delete='0'
and shiftorder.order_status<>'00'
OPTION 输入.worksection_type_scode <> "" OPTION 输入.worksection_type_scode <> ""
workprocedure.worksection_type_scode = 输入.worksection_type_scode workprocedure.worksection_type_scode = 输入.worksection_type_scode
ENDOPTION ENDOPTION
@@ -134,6 +135,7 @@ ENDIF
mps_bd_produceshiftorder shiftorder mps_bd_produceshiftorder shiftorder
where where
shiftorder.is_delete='0' shiftorder.is_delete='0'
and shiftorder.order_status<>'00'
OPTION 输入.produce_date <> "" OPTION 输入.produce_date <> ""
shiftorder.produce_date = 输入.produce_date shiftorder.produce_date = 输入.produce_date
ENDOPTION ENDOPTION
@@ -149,6 +151,7 @@ ENDIF
mps_bd_produceshiftorder shiftorder mps_bd_produceshiftorder shiftorder
where where
shiftorder.realproduceend_date > shiftorder.planproduceend_date shiftorder.realproduceend_date > shiftorder.planproduceend_date
and shiftorder.order_status<>'00'
OPTION 输入.produce_date <> "" OPTION 输入.produce_date <> ""
shiftorder.produce_date = 输入.produce_date shiftorder.produce_date = 输入.produce_date
ENDOPTION ENDOPTION
@@ -168,6 +171,7 @@ ENDIF
LEFT JOIN pdm_bi_workprocedure workprocedure ON workprocedure.workprocedure_id = shiftorder.workprocedure_id LEFT JOIN pdm_bi_workprocedure workprocedure ON workprocedure.workprocedure_id = shiftorder.workprocedure_id
WHERE WHERE
shiftorder.is_delete='0' shiftorder.is_delete='0'
and shiftorder.order_status<>'00'
and workprocedure.workprocedure_code IN ( '07', '06', '02' ) and workprocedure.workprocedure_code IN ( '07', '06', '02' )
OPTION 输入.produce_date <> "" OPTION 输入.produce_date <> ""
shiftorder.produce_date = 输入.produce_date shiftorder.produce_date = 输入.produce_date
@@ -268,6 +272,7 @@ IF 输入.flag = "11"
left join md_me_materialbase material on material.material_id =shiftorder.material_id left join md_me_materialbase material on material.material_id =shiftorder.material_id
WHERE WHERE
shiftorder.is_delete='0' shiftorder.is_delete='0'
and shiftorder.order_status<>'00'
and workprocedure.workprocedure_code IN ( '07', '06', '02' ) and workprocedure.workprocedure_code IN ( '07', '06', '02' )
and shiftorder. real_qty < shiftorder.plan_qty and shiftorder. real_qty < shiftorder.plan_qty
OPTION 输入.produce_date <> "" OPTION 输入.produce_date <> ""
@@ -379,9 +384,6 @@ IF 输入.flag = "14"
OPTION 输入.worksection_type_scode <> "" OPTION 输入.worksection_type_scode <> ""
workprocedure.worksection_type_scode = 输入.worksection_type_scode workprocedure.worksection_type_scode = 输入.worksection_type_scode
ENDOPTION ENDOPTION
OPTION 输入.produce_date <> ""
shiftorder.produce_date = 输入.produce_date
ENDOPTION
ENDSELECT ENDSELECT
ENDQUERY ENDQUERY
ENDIF ENDIF