From 08123cbf5eeb34ae0882f54bfece777730524530 Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Thu, 17 Nov 2022 13:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PhysicalMstServiceImpl.java | 88 ------------------- 1 file changed, 88 deletions(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java index 2859b28d..fab0ed40 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java @@ -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); - } - }*/ - } }