From 8de6cd3eada7dd625ceab2880ab3f8b11a1a0485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Mon, 3 Jul 2023 15:28:08 +0800 Subject: [PATCH] =?UTF-8?q?rev=20=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/nl/wms/sch/task/util/TaskUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/sch/task/util/TaskUtils.java b/lms/nladmin-system/src/main/java/org/nl/wms/sch/task/util/TaskUtils.java index dbdcf8c..a914a72 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/sch/task/util/TaskUtils.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/sch/task/util/TaskUtils.java @@ -255,8 +255,8 @@ public class TaskUtils { int slashIndex = brickType.lastIndexOf("/"); int brickTypeRight = Integer.parseInt(brickType.substring(slashIndex + 1)); if (brickTypeRight >= 100) { - int brickTypeFront = Integer.parseInt(brickType.substring(0, slashIndex)); - brickType = brickTypeFront + "/" + "1H"; + int brickTypeLeft = Integer.parseInt(brickType.substring(0, slashIndex)); + brickType = brickTypeLeft + "/" + "1H"; } // 压机号1位,A代表1号压机,以此类推。从压机设备编码截取数字,例如"YJ07"截取"07",转换成数字后减去1即是压机对应字母在 alphabet 数组中的索引位置。