优化
This commit is contained in:
@@ -696,26 +696,27 @@ public class AutoformulaServiceImpl implements AutoformulaService {
|
|||||||
if(C<0){
|
if(C<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else if(C>=0){
|
}else if(C>=0){
|
||||||
JSONObject C_weight = new JSONObject();
|
|
||||||
C_weight.put("formula_qty",C);
|
|
||||||
//钨分类id
|
|
||||||
C_weight.put("material_id","1503644362788179968");
|
|
||||||
C_weight.put("material_name","碳粉");
|
|
||||||
C_weight.put("material_code","09030104");
|
|
||||||
C_weight.put("material_type","02");
|
|
||||||
C_weight.put("is_need_move","0");
|
|
||||||
C_weight.put("is_need_manage","1");
|
|
||||||
C_weight.put("is_tan","100");
|
|
||||||
C_weight.put("is_rf_xl","1");
|
|
||||||
C_weight.put("ivt_level","01");
|
|
||||||
C_weight.put("is_active","1");
|
|
||||||
C_weight.put("quality_scode","01");
|
|
||||||
cw_list.add(C_weight);
|
|
||||||
//更新碳化钨配粉重量
|
//更新碳化钨配粉重量
|
||||||
double bom_ivt_qty = X22p-C;
|
double bom_ivt_qty = X22p-C;
|
||||||
if(bom_ivt_qty<0){
|
if(bom_ivt_qty<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else{
|
}else{
|
||||||
|
JSONObject C_weight = new JSONObject();
|
||||||
|
C_weight.put("formula_qty",C);
|
||||||
|
//钨分类id
|
||||||
|
C_weight.put("material_id","1503644362788179968");
|
||||||
|
C_weight.put("material_name","碳粉");
|
||||||
|
C_weight.put("material_code","09030104");
|
||||||
|
C_weight.put("material_type","02");
|
||||||
|
C_weight.put("is_need_move","0");
|
||||||
|
C_weight.put("is_need_manage","1");
|
||||||
|
C_weight.put("is_tan","100");
|
||||||
|
C_weight.put("is_rf_xl","1");
|
||||||
|
C_weight.put("ivt_level","01");
|
||||||
|
C_weight.put("is_active","1");
|
||||||
|
C_weight.put("quality_scode","01");
|
||||||
|
cw_list.add(C_weight);
|
||||||
|
|
||||||
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
||||||
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
||||||
if(bom_ivt_qty<=0){
|
if(bom_ivt_qty<=0){
|
||||||
@@ -969,25 +970,26 @@ public class AutoformulaServiceImpl implements AutoformulaService {
|
|||||||
if(W<0){
|
if(W<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else if(W>=0){
|
}else if(W>=0){
|
||||||
JSONObject W_weight = new JSONObject();
|
|
||||||
W_weight.put("formula_qty",W);
|
|
||||||
//钨分类id
|
|
||||||
W_weight.put("material_id","1503644362234531840");
|
|
||||||
W_weight.put("material_name","钨粉");
|
|
||||||
W_weight.put("material_code","09030103");
|
|
||||||
W_weight.put("material_type","02");
|
|
||||||
W_weight.put("is_need_move","0");
|
|
||||||
W_weight.put("is_need_manage","1");
|
|
||||||
W_weight.put("is_rf_xl","0");
|
|
||||||
W_weight.put("ivt_level","01");
|
|
||||||
W_weight.put("is_active","1");
|
|
||||||
W_weight.put("quality_scode","01");
|
|
||||||
cw_list.add(W_weight);
|
|
||||||
//更新碳化钨配粉重量
|
//更新碳化钨配粉重量
|
||||||
double bom_ivt_qty = X22p-W;
|
double bom_ivt_qty = X22p-W;
|
||||||
if(bom_ivt_qty<0){
|
if(bom_ivt_qty<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else{
|
}else{
|
||||||
|
JSONObject W_weight = new JSONObject();
|
||||||
|
W_weight.put("formula_qty",W);
|
||||||
|
//钨分类id
|
||||||
|
W_weight.put("material_id","1503644362234531840");
|
||||||
|
W_weight.put("material_name","钨粉");
|
||||||
|
W_weight.put("material_code","09030103");
|
||||||
|
W_weight.put("material_type","02");
|
||||||
|
W_weight.put("is_need_move","0");
|
||||||
|
W_weight.put("is_need_manage","1");
|
||||||
|
W_weight.put("is_rf_xl","0");
|
||||||
|
W_weight.put("ivt_level","01");
|
||||||
|
W_weight.put("is_active","1");
|
||||||
|
W_weight.put("quality_scode","01");
|
||||||
|
cw_list.add(W_weight);
|
||||||
|
|
||||||
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
||||||
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
||||||
if(bom_ivt_qty<=0){
|
if(bom_ivt_qty<=0){
|
||||||
@@ -1584,26 +1586,28 @@ public class AutoformulaServiceImpl implements AutoformulaService {
|
|||||||
if(C<0){
|
if(C<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else if(C>=0){
|
}else if(C>=0){
|
||||||
JSONObject C_weight = new JSONObject();
|
|
||||||
C_weight.put("formula_qty",C);
|
|
||||||
//钨分类id
|
|
||||||
C_weight.put("material_id","1503644362788179968");
|
|
||||||
C_weight.put("material_name","碳粉");
|
|
||||||
C_weight.put("material_code","09030104");
|
|
||||||
C_weight.put("material_type","02");
|
|
||||||
C_weight.put("is_need_move","0");
|
|
||||||
C_weight.put("is_need_manage","1");
|
|
||||||
C_weight.put("is_tan","100");
|
|
||||||
C_weight.put("is_rf_xl","1");
|
|
||||||
C_weight.put("ivt_level","01");
|
|
||||||
C_weight.put("is_active","1");
|
|
||||||
C_weight.put("quality_scode","01");
|
|
||||||
cw_list.add(C_weight);
|
|
||||||
//更新碳化钨配粉重量
|
//更新碳化钨配粉重量
|
||||||
double bom_ivt_qty = X22p-C;
|
double bom_ivt_qty = X22p-C;
|
||||||
if(bom_ivt_qty<0){
|
if(bom_ivt_qty<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
JSONObject C_weight = new JSONObject();
|
||||||
|
C_weight.put("formula_qty",C);
|
||||||
|
//钨分类id
|
||||||
|
C_weight.put("material_id","1503644362788179968");
|
||||||
|
C_weight.put("material_name","碳粉");
|
||||||
|
C_weight.put("material_code","09030104");
|
||||||
|
C_weight.put("material_type","02");
|
||||||
|
C_weight.put("is_need_move","0");
|
||||||
|
C_weight.put("is_need_manage","1");
|
||||||
|
C_weight.put("is_tan","100");
|
||||||
|
C_weight.put("is_rf_xl","1");
|
||||||
|
C_weight.put("ivt_level","01");
|
||||||
|
C_weight.put("is_active","1");
|
||||||
|
C_weight.put("quality_scode","01");
|
||||||
|
cw_list.add(C_weight);
|
||||||
|
|
||||||
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
||||||
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
||||||
if(bom_ivt_qty<=0){
|
if(bom_ivt_qty<=0){
|
||||||
@@ -1852,25 +1856,26 @@ public class AutoformulaServiceImpl implements AutoformulaService {
|
|||||||
if(W<0){
|
if(W<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else if(W>=0){
|
}else if(W>=0){
|
||||||
JSONObject W_weight = new JSONObject();
|
|
||||||
W_weight.put("formula_qty",W);
|
|
||||||
//钨分类id
|
|
||||||
W_weight.put("material_id","1503644362234531840");
|
|
||||||
W_weight.put("material_name","钨粉");
|
|
||||||
W_weight.put("material_code","09030103");
|
|
||||||
W_weight.put("material_type","02");
|
|
||||||
W_weight.put("is_need_move","0");
|
|
||||||
W_weight.put("is_need_manage","1");
|
|
||||||
W_weight.put("is_rf_xl","0");
|
|
||||||
W_weight.put("ivt_level","01");
|
|
||||||
W_weight.put("is_active","1");
|
|
||||||
W_weight.put("quality_scode","01");
|
|
||||||
cw_list.add(W_weight);
|
|
||||||
//更新碳化钨配粉重量
|
//更新碳化钨配粉重量
|
||||||
double bom_ivt_qty = X22p-W;
|
double bom_ivt_qty = X22p-W;
|
||||||
if(bom_ivt_qty<0){
|
if(bom_ivt_qty<0){
|
||||||
flag = false;
|
flag = false;
|
||||||
}else{
|
}else{
|
||||||
|
JSONObject W_weight = new JSONObject();
|
||||||
|
W_weight.put("formula_qty",W);
|
||||||
|
//钨分类id
|
||||||
|
W_weight.put("material_id","1503644362234531840");
|
||||||
|
W_weight.put("material_name","钨粉");
|
||||||
|
W_weight.put("material_code","09030103");
|
||||||
|
W_weight.put("material_type","02");
|
||||||
|
W_weight.put("is_need_move","0");
|
||||||
|
W_weight.put("is_need_manage","1");
|
||||||
|
W_weight.put("is_rf_xl","0");
|
||||||
|
W_weight.put("ivt_level","01");
|
||||||
|
W_weight.put("is_active","1");
|
||||||
|
W_weight.put("quality_scode","01");
|
||||||
|
cw_list.add(W_weight);
|
||||||
|
|
||||||
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
bomdlt_Cr3C2_X22p.put("bom_ivt_qty",bom_ivt_qty);
|
||||||
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
bomdlts_plan_map.put(bomdlt_Cr3C2_X22p.getString("stockrecord_id"),bomdlt_Cr3C2_X22p);
|
||||||
if(bom_ivt_qty<=0){
|
if(bom_ivt_qty<=0){
|
||||||
|
|||||||
Reference in New Issue
Block a user