提交 1da35244 authored 作者: hzh's avatar hzh

代码优化

上级 5336649a
......@@ -106,7 +106,7 @@ public class ProcessProgressServiceImpl extends AbstractBaseService<ProcessProgr
List<String> stepKeyList = StreamUtils.toList(approveProcessList, Process::getStepKey);
Process nextProcess = null;
if (StringUtils.isEmpty(lastProcessStepKey)) {
nextProcess = approveProcessList.get(0);
nextProcess = CollectionUtil.isEmpty(approveProcessList) ? null : approveProcessList.get(0);
} else {
int i = stepKeyList.indexOf(lastProcessStepKey);
if (i < stepKeyList.size() - 1) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论