rev:计算球磨时间修改
This commit is contained in:
@@ -443,7 +443,7 @@ public class PcsIfPurchaseorderprocServiceImpl implements PcsIfPurchaseorderproc
|
||||
.reduce(Double::sum).orElse(0.00);
|
||||
// 合计金额:合计重量 * 含税单价
|
||||
erp.put("allqty", allqty);
|
||||
erp.put("all_valmoney", NumberUtil.div(allqty, erp.getDoubleValue("norigtaxprice")));
|
||||
erp.put("all_valmoney", NumberUtil.mul(allqty, erp.getDoubleValue("norigtaxprice")));
|
||||
resultList.add(erp);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1244,10 +1244,18 @@ public class FormulaServiceImpl implements FormulaService {
|
||||
if (ja.size()>0){
|
||||
for (Object o : ja) {
|
||||
JSONObject item = (JSONObject) o;
|
||||
WQLObject.getWQLObject("PDM_BI_Formula").update(MapOf.of(
|
||||
"ball_time",item.get("qmsj"),
|
||||
"hcp_standard",item.get("hcp_bz_Avg"),
|
||||
"hcp_detection",item.get("hcp_sc_avg")),"formula_id = '"+item.get("FORMULA_ID")+"'");
|
||||
JSONObject param = new JSONObject();
|
||||
if (ObjectUtil.isNotEmpty(item.get("qmsj"))) {
|
||||
param.put("erp_ball_time",item.get("qmsj"));
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(item.get("hcp_bz_avg"))) {
|
||||
param.put("hcp_standard",item.get("hcp_bz_avg"));
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(item.get("hcp_sc_avg"))) {
|
||||
param.put("hcp_detection",item.get("hcp_sc_avg"));
|
||||
}
|
||||
|
||||
WQLObject.getWQLObject("PDM_BI_Formula").update(param,"formula_id = '"+item.get("formula_id")+"'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +201,6 @@
|
||||
OPTION 输入.formula_id <> ""
|
||||
FORMULA_ID in 输入.formula_id
|
||||
ENDOPTION
|
||||
limit 100
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user