修改
This commit is contained in:
@@ -239,6 +239,7 @@ public class FormulaServiceImpl implements FormulaService {
|
||||
PDM_BI_FormulaDtl.insert(jo);
|
||||
}
|
||||
Formula.put("masterbucket_qty",masterbucket_qty+"");
|
||||
Formula.put("ball_time",whereJson.getString("ball_time"));
|
||||
Formula.put("extadd_qty",extadd_qty+"");
|
||||
Formula.put("is_audit", "1");
|
||||
Formula.put("audit_id",currentUserId);
|
||||
|
||||
@@ -293,6 +293,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
Formula_01.put("total_qty","0");
|
||||
Formula_01.put("status","10");
|
||||
Formula_01.put("is_delete", "0");
|
||||
Formula_01.put("ball_time", whereJson.getString("ball_time"));
|
||||
Formula_01.put("create_id", currentUserId);
|
||||
Formula_01.put("create_name", nickName);
|
||||
Formula_01.put("create_time", now);
|
||||
@@ -400,6 +401,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
Formula_02.put("total_qty","0");
|
||||
Formula_02.put("status","10");
|
||||
Formula_02.put("is_delete", "0");
|
||||
Formula_02.put("ball_time", whereJson.getString("ball_time"));
|
||||
Formula_02.put("create_id", currentUserId);
|
||||
Formula_02.put("create_name", nickName);
|
||||
Formula_02.put("create_time", now);
|
||||
@@ -576,6 +578,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
Formula_01.put("total_qty","0");
|
||||
Formula_01.put("status","20");
|
||||
Formula_01.put("is_delete", "0");
|
||||
Formula_01.put("ball_time", whereJson.getString("ball_time"));
|
||||
Formula_01.put("create_id", currentUserId);
|
||||
Formula_01.put("create_name", nickName);
|
||||
Formula_01.put("create_time", now);
|
||||
@@ -684,6 +687,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
Formula_02.put("total_qty","0");
|
||||
Formula_02.put("status","20");
|
||||
Formula_02.put("is_delete", "0");
|
||||
Formula_02.put("ball_time", whereJson.getString("ball_time"));
|
||||
Formula_02.put("create_id", currentUserId);
|
||||
Formula_02.put("create_name", nickName);
|
||||
Formula_02.put("create_time", now);
|
||||
@@ -806,6 +810,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject getform(Map json) {
|
||||
WQLObject pdm_bi_workprocedureparaproduct = WQLObject.getWQLObject("pdm_bi_workprocedureparaproduct");
|
||||
WQLObject MD_ME_ProductMaterialExt = WQLObject.getWQLObject("MD_ME_ProducMaterialExt");
|
||||
WQLObject md_me_materialbase = WQLObject.getWQLObject("md_me_materialbase");
|
||||
WQLObject PDM_BI_WorkOrder = WQLObject.getWQLObject("PDM_BI_WorkOrder");
|
||||
@@ -824,7 +829,14 @@ public class InitformulaServiceImpl implements InitformulaService {
|
||||
throw new BadRequestException("当前成品查询不到成品物料扩展信息!");
|
||||
}
|
||||
JSONObject mater = md_me_materialbase.query("material_id ='"+material_id+"'").uniqueResult(0);
|
||||
|
||||
JSONObject materPa = pdm_bi_workprocedureparaproduct.query("para_code ='QM008' and workprocedure_code='GX002' and material_id ='"+material_id+"'").uniqueResult(0);
|
||||
|
||||
if(materPa == null ){
|
||||
throw new BadRequestException("当前成品查询不到球磨工艺参数球磨时间!");
|
||||
}
|
||||
workorder.put("formula_type","00");
|
||||
workorder.put("ball_time",materPa.getDouble("value"));
|
||||
workorder.put("waste_limit_down",material.getString("waste_limit_down"));
|
||||
workorder.put("waste_limit_up",material.getString("waste_limit_up"));
|
||||
workorder.put("c_balance",material.getString("c_balance"));
|
||||
|
||||
Reference in New Issue
Block a user