This commit is contained in:
zds
2022-11-17 13:55:36 +08:00
parent d2fb47602d
commit 08123cbf5e

View File

@@ -1241,50 +1241,6 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
}
}
/* if (ObjectUtil.isNotEmpty(json.getString("x1500"))) {
// 1500x: LHZJ00009
item_code = "LHZJ00009";
// 1.调用查找项点的方法
JSONObject jsonItem = this.queryItem(item_code);
// 2.判断此项点是否存在:存在则更新 不存在则插入
String inspection_item_id = jsonItem.getString("inspection_item_id");
JSONObject jsonDtl = phyDtlTab.query("inspection_id = '" + inspection_id + "' and inspection_item_id = '" + inspection_item_id + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(jsonDtl)) {
jsonDtl.put("value", json.getDoubleValue("xe100"));
phyDtlTab.update(jsonDtl);
} else {
jsonDtlInsert.put("inspectiondtl_id", IdUtil.getSnowflake(1,1).nextId());
jsonDtlInsert.put("inspection_id",inspection_id);
jsonDtlInsert.put("seq_no",1);
jsonDtlInsert.put("inspection_item_id",inspection_item_id);
jsonDtlInsert.put("value",json.getDoubleValue("xe100"));
phyDtlTab.insert(jsonDtlInsert);
}
}*/
/* if (ObjectUtil.isNotEmpty(json.getString("shrink2"))) {
// 收缩系数: LHZJ00009
item_code = "LHZJ00009";
// 1.调用查找项点的方法
JSONObject jsonItem = this.queryItem(item_code);
// 2.判断此项点是否存在:存在则更新 不存在则插入
String inspection_item_id = jsonItem.getString("inspection_item_id");
JSONObject jsonDtl = phyDtlTab.query("inspection_id = '" + inspection_id + "' and inspection_item_id = '" + inspection_item_id + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(jsonDtl)) {
jsonDtl.put("value", json.getDoubleValue("xe100"));
phyDtlTab.update(jsonDtl);
} else {
jsonDtlInsert.put("inspectiondtl_id", IdUtil.getSnowflake(1,1).nextId());
jsonDtlInsert.put("inspection_id",inspection_id);
jsonDtlInsert.put("seq_no",1);
jsonDtlInsert.put("inspection_item_id",inspection_item_id);
jsonDtlInsert.put("value",json.getDoubleValue("xe100"));
phyDtlTab.insert(jsonDtlInsert);
}
}*/
if (ObjectUtil.isNotEmpty(json.getString("jl10"))) {
// 10-15μ晶粒: LHZJ00012
item_code = "LHZJ00012";
@@ -1417,50 +1373,6 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
}
}
/* if (ObjectUtil.isNotEmpty(json.getString("jl_num"))) {
// 结块样面个数: LHZJ00019
item_code = "LHZJ00019";
// 1.调用查找项点的方法
JSONObject jsonItem = this.queryItem(item_code);
// 2.判断此项点是否存在:存在则更新 不存在则插入
String inspection_item_id = jsonItem.getString("inspection_item_id");
JSONObject jsonDtl = phyDtlTab.query("inspection_id = '" + inspection_id + "' and inspection_item_id = '" + inspection_item_id + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(jsonDtl)) {
jsonDtl.put("value", json.getDoubleValue("jl_dia"));
phyDtlTab.update(jsonDtl);
} else {
jsonDtlInsert.put("inspectiondtl_id", IdUtil.getSnowflake(1,1).nextId());
jsonDtlInsert.put("inspection_id",inspection_id);
jsonDtlInsert.put("seq_no",1);
jsonDtlInsert.put("inspection_item_id",inspection_item_id);
jsonDtlInsert.put("value",json.getDoubleValue("jl_dia"));
phyDtlTab.insert(jsonDtlInsert);
}
}*/
/* if (ObjectUtil.isNotEmpty(json.getString("jl_max"))) {
// 结块最大尺寸: LHZJ00019
item_code = "LHZJ00019";
// 1.调用查找项点的方法
JSONObject jsonItem = this.queryItem(item_code);
// 2.判断此项点是否存在:存在则更新 不存在则插入
String inspection_item_id = jsonItem.getString("inspection_item_id");
JSONObject jsonDtl = phyDtlTab.query("inspection_id = '" + inspection_id + "' and inspection_item_id = '" + inspection_item_id + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(jsonDtl)) {
jsonDtl.put("value", json.getDoubleValue("jl_dia"));
phyDtlTab.update(jsonDtl);
} else {
jsonDtlInsert.put("inspectiondtl_id", IdUtil.getSnowflake(1,1).nextId());
jsonDtlInsert.put("inspection_id",inspection_id);
jsonDtlInsert.put("seq_no",1);
jsonDtlInsert.put("inspection_item_id",inspection_item_id);
jsonDtlInsert.put("value",json.getDoubleValue("jl_dia"));
phyDtlTab.insert(jsonDtlInsert);
}
}*/
}
}