From a9d83c7454665c2a009990027c1431ffb35967e3 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期四, 16 五月 2024 10:55:10 +0800 Subject: [PATCH] 报工文件判断条件修改 --- north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java index f544c82..7a351f4 100644 --- a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java +++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java @@ -68,11 +68,11 @@ //鏌ヨ娴佺▼鍗″伐鑹烘祦绋� String technologicalProcess = reportingWorkMapper.SelectTechnologicalProcess(processIdStr); - //瀹氫箟-鐨勪綅缃� - int index = technologicalProcess.indexOf("-"); - //鑾峰彇宸ヨ壓娴佺▼绗竴涓伐搴� - String interceptProcess = technologicalProcess.substring(0, index); + + String[] processList = technologicalProcess.split("->"); + //鑾峰彇宸ヨ壓娴佺▼绗竴涓伐搴� + String interceptProcess = processList[0]; int length = processList.length; //瀹氫箟褰撳墠宸ュ簭涓婁笅宸ュ簭 -- Gitblit v1.8.0