From 9fdf11a279473f85d688cfaa4362f572fd5a12d1 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 14 Jul 2026 13:04:13 +0800 Subject: [PATCH] =?UTF-8?q?2026-07-14=20RoHS=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/spring/modules/rohs/controller/RohsController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/spring/modules/rohs/controller/RohsController.java b/src/main/java/com/spring/modules/rohs/controller/RohsController.java index 3aa54173..da7abec5 100644 --- a/src/main/java/com/spring/modules/rohs/controller/RohsController.java +++ b/src/main/java/com/spring/modules/rohs/controller/RohsController.java @@ -93,6 +93,9 @@ public class RohsController { if (StringUtils.isBlank(rohs.getSite()) || StringUtils.isBlank(rohs.getReferenceNo())) { return R.error("工厂(site)和序列号(referenceNo)不能为空"); } + if (StringUtils.isBlank(rohs.getProcess())) { + return R.error("工艺(process)不能为空"); + } if (StringUtils.isBlank(rohs.getEndCustomer())) { return R.error("最终客户(endCustomer)不能为空"); } @@ -165,6 +168,9 @@ public class RohsController { if (StringUtils.isBlank(rohs.getSite()) || StringUtils.isBlank(rohs.getReferenceNo())) { return R.error("工厂(site)和序列号(referenceNo)不能为空"); } + if (StringUtils.isBlank(rohs.getProcess())) { + return R.error("工艺(process)不能为空"); + } String currentUserName = getCurrentUserName(); RohsEntity exists = rohsService.getDetail(rohs.getSite(), rohs.getReferenceNo()); if (exists == null) {