From e204668d09fc8cd83b08879d5866bf7cb6b2b645 Mon Sep 17 00:00:00 2001 From: furongxin <419481438@qq.com> Date: Sat, 5 Oct 2024 19:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=85=A5=E4=B8=AD=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E7=9A=84=E6=8D=A2=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/factorydata/FactoryDataServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zn-module-smartfactory/zn-module-smartfactory-biz/src/main/java/cn/iocoder/yudao/module/smartfactory/service/factorydata/FactoryDataServiceImpl.java b/zn-module-smartfactory/zn-module-smartfactory-biz/src/main/java/cn/iocoder/yudao/module/smartfactory/service/factorydata/FactoryDataServiceImpl.java index e1e9542b..d53f9342 100644 --- a/zn-module-smartfactory/zn-module-smartfactory-biz/src/main/java/cn/iocoder/yudao/module/smartfactory/service/factorydata/FactoryDataServiceImpl.java +++ b/zn-module-smartfactory/zn-module-smartfactory-biz/src/main/java/cn/iocoder/yudao/module/smartfactory/service/factorydata/FactoryDataServiceImpl.java @@ -386,7 +386,7 @@ public class FactoryDataServiceImpl implements FactoryDataService { public String convertSquare(Object num, Integer type, String sizeName) { int size = Integer.parseInt(sizeName.split("\\*")[0]); - int size1 = Integer.parseInt(sizeName.split("\\*")[1]); + int size1 = Integer.parseInt(sizeName.split("\\*")[1].replaceAll("[^0-9]", "")); // 转换规格片数 int unit = StringUtil.sizeNameAnalysis(sizeName);