提交 cc492654 authored 作者: hzh's avatar hzh

代码优化

上级 1da35244
package org.dromara.server.service.impl; package org.dromara.server.service.impl;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...@@ -106,7 +107,7 @@ public class ProcessProgressServiceImpl extends AbstractBaseService<ProcessProgr ...@@ -106,7 +107,7 @@ public class ProcessProgressServiceImpl extends AbstractBaseService<ProcessProgr
List<String> stepKeyList = StreamUtils.toList(approveProcessList, Process::getStepKey); List<String> stepKeyList = StreamUtils.toList(approveProcessList, Process::getStepKey);
Process nextProcess = null; Process nextProcess = null;
if (StringUtils.isEmpty(lastProcessStepKey)) { if (StringUtils.isEmpty(lastProcessStepKey)) {
nextProcess = CollectionUtil.isEmpty(approveProcessList) ? null : approveProcessList.get(0); nextProcess = CollUtil.isEmpty(approveProcessList) ? null : approveProcessList.get(0);
} else { } else {
int i = stepKeyList.indexOf(lastProcessStepKey); int i = stepKeyList.indexOf(lastProcessStepKey);
if (i < stepKeyList.size() - 1) { if (i < stepKeyList.size() - 1) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论