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);