update 优化发布流程定义抛出异常

- StringUtils.join 默认会跳过 null,不会抛异常
This commit is contained in:
AprilWind 2025-08-06 10:51:51 +08:00
parent 7357912681
commit a39bc870d1

View File

@ -128,7 +128,7 @@ public class FlwDefinitionServiceImpl implements IFlwDefinitionService {
}
}
if (CollUtil.isNotEmpty(errorMsg)) {
throw new ServiceException("节点【{}】未配置办理人!", String.join(",", errorMsg));
throw new ServiceException("节点【{}】未配置办理人!", StringUtils.join(errorMsg, ","));
}
}
return defService.publish(id);