From 6fb445762569c01fc767cef8f325eca337a87fe3 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 14 Dec 2022 15:26:07 +0800 Subject: [PATCH] =?UTF-8?q?...=E5=B1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/renren/modules/activiti/service/ActTaskService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java index e8d9717c..4f0337b6 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java @@ -351,7 +351,10 @@ public class ActTaskService extends BaseServiceImpl { StringBuilder stringBuilder = new StringBuilder(); List proviDeptsName = resourceDao.selectProvideDeptNameByIds(resourceIds); proviDeptsName.forEach(x -> stringBuilder.append(x).append(",")); - String string = stringBuilder.substring(0, stringBuilder.length() - 1); + String string = ""; + if (stringBuilder.length() > 0) { + string = stringBuilder.substring(0, stringBuilder.length() - 1); + } dto.setProvideDept(string); }, executor);