From 682c996f00a9091d310de2f55e5f29904f109296 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 4 Feb 2026 13:57:35 +0800 Subject: [PATCH] =?UTF-8?q?2026-02-04=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/schedule/controller/ScheduleController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gaotao/modules/schedule/controller/ScheduleController.java b/src/main/java/com/gaotao/modules/schedule/controller/ScheduleController.java index 99dfca5..b44bc2e 100644 --- a/src/main/java/com/gaotao/modules/schedule/controller/ScheduleController.java +++ b/src/main/java/com/gaotao/modules/schedule/controller/ScheduleController.java @@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController; import java.text.ParseException; import java.util.List; import java.util.Map; +import java.util.Objects; /** * 生产订单排产 @@ -2131,7 +2132,7 @@ public class ScheduleController extends AbstractController { public R openMaterialRoll(@RequestBody Map params) { try { String site = (String) params.get("site"); - String seqNo = (String) params.get("seqNo"); + String seqNo = Objects.toString(params.get("seqNo"), "").trim(); String rollNo = (String) params.get("rollNo"); Integer histSeqNo = params.get("histSeqNo") != null ? Integer.valueOf(params.get("histSeqNo").toString()) : null; String type = (String) params.get("type"); @@ -2141,7 +2142,7 @@ public class ScheduleController extends AbstractController { if (site == null || site.isEmpty()) { return R.error("站点不能为空").put("code", 400); } - if (seqNo == null || seqNo.isEmpty()) { + if (seqNo.isEmpty()) { return R.error("派工单号不能为空").put("code", 400); } if (rollNo == null || rollNo.isEmpty()) {