From 36c9e0d386d4a36b67efa2c6fb4039d553b3842e Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Tue, 26 Apr 2022 13:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=97=A5=E5=BF=97=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/service/impl/QcSourceServiceImpl.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java b/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java index 13777f6..20d4539 100644 --- a/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java @@ -82,6 +82,7 @@ public class QcSourceServiceImpl implements QcSourceService { return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "不存在该检验项目,请先添加检验项目!", locale); } if (Constant.QC_ITEM_TYPE_STRING.equals(qcItemByNo.get().getQcItemType())) { + System.out.println("添加检验数据(文本类型)" + insertQo.toString()); QcSourceEntity entity = new QcSourceEntity(); entity.setCreateTime(LocalDateUtils.getCurrentSecond()); entity.setBatchNo(LocalStringUtils.formatEmptyValue(batchNo)); @@ -96,6 +97,7 @@ public class QcSourceServiceImpl implements QcSourceService { return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale); } if (Constant.QC_ITEM_TYPE_PICTURE.equals(qcItemByNo.get().getQcItemType())) { + System.out.println("添加检验数据(图片类型)" + insertQo.toString()); if (picture == null) { return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "上传图片不能为空!", locale); } @@ -119,6 +121,7 @@ public class QcSourceServiceImpl implements QcSourceService { qcSourceDao.save(entity); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale); } + System.out.println("添加检验数据(未知类型)" + insertQo.toString()); return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "添加失败!", locale); } @@ -185,9 +188,6 @@ public class QcSourceServiceImpl implements QcSourceService { String craftItemNo = (String) source.getOrDefault("craftItemNo", ""); String qcItemNo = (String) source.getOrDefault("qcItemNo", ""); String qcValue = (String) source.getOrDefault("qcValue", ""); - if (TextUtils.isEmpty(qcItemNo) || TextUtils.isEmpty(qcValue)) { - continue; - } String formatValue = getFormatValue(varietyNo, craftItemNo, qcItemNo, qcValue); Map emptyRoom = findEmptyRoom(resultList, qcItemNo, batchNo, machineNo, materialNo, mouldNo, varietyNo, craftItemNo); if (emptyRoom == null) { @@ -235,9 +235,10 @@ public class QcSourceServiceImpl implements QcSourceService { try { return Double.parseDouble(stringValue); } catch (Exception e) { - e.printStackTrace(); - return -100_000D; +// e.printStackTrace(); +// return -100_000D; } + return -100_000D; } /**