大屏值统计未下发以外的工单
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
where
|
||||
|
||||
shiftorder.is_delete='0'
|
||||
and shiftorder.order_status<>'00'
|
||||
OPTION 输入.worksection_type_scode <> ""
|
||||
workprocedure.worksection_type_scode = 输入.worksection_type_scode
|
||||
ENDOPTION
|
||||
@@ -134,6 +135,7 @@ ENDIF
|
||||
mps_bd_produceshiftorder shiftorder
|
||||
where
|
||||
shiftorder.is_delete='0'
|
||||
and shiftorder.order_status<>'00'
|
||||
OPTION 输入.produce_date <> ""
|
||||
shiftorder.produce_date = 输入.produce_date
|
||||
ENDOPTION
|
||||
@@ -149,6 +151,7 @@ ENDIF
|
||||
mps_bd_produceshiftorder shiftorder
|
||||
where
|
||||
shiftorder.realproduceend_date > shiftorder.planproduceend_date
|
||||
and shiftorder.order_status<>'00'
|
||||
OPTION 输入.produce_date <> ""
|
||||
shiftorder.produce_date = 输入.produce_date
|
||||
ENDOPTION
|
||||
@@ -168,6 +171,7 @@ ENDIF
|
||||
LEFT JOIN pdm_bi_workprocedure workprocedure ON workprocedure.workprocedure_id = shiftorder.workprocedure_id
|
||||
WHERE
|
||||
shiftorder.is_delete='0'
|
||||
and shiftorder.order_status<>'00'
|
||||
and workprocedure.workprocedure_code IN ( '07', '06', '02' )
|
||||
OPTION 输入.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
|
||||
WHERE
|
||||
shiftorder.is_delete='0'
|
||||
and shiftorder.order_status<>'00'
|
||||
and workprocedure.workprocedure_code IN ( '07', '06', '02' )
|
||||
and shiftorder. real_qty < shiftorder.plan_qty
|
||||
OPTION 输入.produce_date <> ""
|
||||
@@ -379,9 +384,6 @@ IF 输入.flag = "14"
|
||||
OPTION 输入.worksection_type_scode <> ""
|
||||
workprocedure.worksection_type_scode = 输入.worksection_type_scode
|
||||
ENDOPTION
|
||||
OPTION 输入.produce_date <> ""
|
||||
shiftorder.produce_date = 输入.produce_date
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user