海亮大屏
This commit is contained in:
@@ -79,9 +79,13 @@
|
|||||||
shiftorder.plan_qty,
|
shiftorder.plan_qty,
|
||||||
shiftorder.real_qty,
|
shiftorder.real_qty,
|
||||||
(shiftorder.plan_qty - shiftorder.real_qty) AS gap_qty,
|
(shiftorder.plan_qty - shiftorder.real_qty) AS gap_qty,
|
||||||
|
material.material_code,
|
||||||
|
material.material_name,
|
||||||
|
material.material_spec,
|
||||||
CONVERT ( ( shiftorder.real_qty / shiftorder.plan_qty ), DECIMAL ( 10, 3 ) ) * 100 AS finish_rate
|
CONVERT ( ( shiftorder.real_qty / shiftorder.plan_qty ), DECIMAL ( 10, 3 ) ) * 100 AS finish_rate
|
||||||
FROM
|
FROM
|
||||||
mps_bd_produceshiftorder shiftorder
|
mps_bd_produceshiftorder shiftorder
|
||||||
|
left join md_me_materialbase material on material.material_id =shiftorder.material_id
|
||||||
where
|
where
|
||||||
shiftorder.is_delete='0'
|
shiftorder.is_delete='0'
|
||||||
OPTION 输入.produce_date <> ""
|
OPTION 输入.produce_date <> ""
|
||||||
@@ -301,7 +305,7 @@ IF 输入.flag = "12"
|
|||||||
material.material_code,
|
material.material_code,
|
||||||
material.material_spec,
|
material.material_spec,
|
||||||
material.material_name
|
material.material_name
|
||||||
ORDER BY real_qty
|
ORDER BY real_qty desc
|
||||||
LIMIT 0,9
|
LIMIT 0,9
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
|
|||||||
Reference in New Issue
Block a user