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);