From 642052ebd3ef20853ebfcadfb820b5efbe4521af Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Tue, 26 Apr 2022 14:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A3=80=E9=AA=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A2=9E=E5=8A=A0=E7=BA=A6=E6=9D=9F=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java b/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java index 20d4539..5802025 100644 --- a/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/QcSourceServiceImpl.java @@ -92,6 +92,9 @@ public class QcSourceServiceImpl implements QcSourceService { entity.setVarietyNo(LocalStringUtils.formatEmptyValue(varietyNo)); entity.setCraftItemNo(LocalStringUtils.formatEmptyValue(craftItemNo)); entity.setQcItemNo(LocalStringUtils.formatEmptyValue(qcItemNo)); + if (TextUtils.isEmpty(qcValue)) { + return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "添加失败,测量值(qcValue)字段不能为空!", locale); + } entity.setQcValue(LocalStringUtils.formatEmptyValue(qcValue)); qcSourceDao.save(entity); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);