切换mysql为达梦数据库-代码审查
1.bpm-boot模块
This commit is contained in:
@@ -10,13 +10,11 @@ import com.njcn.bpm.utils.CollectionUtils;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.user.api.UserFeignClient;
|
||||
import com.njcn.user.pojo.po.User;
|
||||
import com.njcn.user.pojo.vo.UserVO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.flowable.bpmn.model.BpmnModel;
|
||||
import org.flowable.bpmn.model.UserTask;
|
||||
import org.flowable.engine.delegate.DelegateExecution;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 角色 {@link IBpmTaskCandidateStrategy} 实现类
|
||||
@@ -21,8 +20,6 @@ public class BpmTaskCandidateRoleStrategy implements IBpmTaskCandidateStrategy {
|
||||
@Resource
|
||||
private UserFeignClient userFeignClient;
|
||||
|
||||
// @Resource
|
||||
// private PermissionApi permissionApi;
|
||||
|
||||
@Override
|
||||
public BpmTaskCandidateStrategyEnum getStrategy() {
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.util.*;
|
||||
public class BpmTaskCandidateStartUserSelectStrategy implements IBpmTaskCandidateStrategy {
|
||||
|
||||
@Resource
|
||||
@Lazy // 延迟加载,避免循环依赖
|
||||
@Lazy
|
||||
private IBpmProcessInstanceService processInstanceService;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4,7 +4,6 @@ import com.njcn.bpm.enums.BpmTaskCandidateStrategyEnum;
|
||||
import org.flowable.engine.delegate.DelegateExecution;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* BPM 任务的候选人的策略接口
|
||||
@@ -33,6 +32,7 @@ public interface IBpmTaskCandidateStrategy {
|
||||
* 基于执行任务,获得任务的候选用户们
|
||||
*
|
||||
* @param execution 执行任务
|
||||
* @param param 参数
|
||||
* @return 用户编号集合
|
||||
*/
|
||||
List<String> calculateUsers(DelegateExecution execution, String param);
|
||||
|
||||
Reference in New Issue
Block a user