修改
This commit is contained in:
@@ -175,7 +175,7 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
|
|||||||
jo7.put(material_id, String.format("%.3f",safe_qty));
|
jo7.put(material_id, String.format("%.3f",safe_qty));
|
||||||
|
|
||||||
//8、采购缺口:库存+待检+在途+最低储备-排产量
|
//8、采购缺口:库存+待检+在途+最低储备-排产量
|
||||||
double buy_qty = bom_qty - (now_ivt + noqty + notqty + safe_qty);
|
double buy_qty = bom_qty - (now_ivt + noin_qty + notqty + safe_qty);
|
||||||
jo8.put(material_id, String.format("%.3f",buy_qty));
|
jo8.put(material_id, String.format("%.3f",buy_qty));
|
||||||
|
|
||||||
//6、覆盖日期:物料库存可坚持到哪一天:库存现存量减每天需求量,哪天<0,取前一天
|
//6、覆盖日期:物料库存可坚持到哪一天:库存现存量减每天需求量,哪天<0,取前一天
|
||||||
|
|||||||
@@ -486,7 +486,7 @@
|
|||||||
UNION ALL
|
UNION ALL
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
wo.planstart_time AS planstart_date,
|
LEFT(wo.planstart_time,10) AS planstart_date,
|
||||||
COUNT(wo.workorder_id) AS product_num,
|
COUNT(wo.workorder_id) AS product_num,
|
||||||
MAX(ext.old_mark) AS old_mark,
|
MAX(ext.old_mark) AS old_mark,
|
||||||
SUM(wo.workorder_qty) AS product_weight,
|
SUM(wo.workorder_qty) AS product_weight,
|
||||||
|
|||||||
Reference in New Issue
Block a user