文件名从 iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/candidate/strategy/BpmTaskCandidatePostStrategy.java 修改 |
| | |
| | | package com.iailab.module.bpm.framework.flowable.core.candidate.strategy; |
| | | package com.iailab.module.bpm.framework.flowable.core.candidate.strategy.user; |
| | | |
| | | import com.iailab.framework.common.util.string.StrUtils; |
| | | import com.iailab.module.bpm.framework.flowable.core.candidate.BpmTaskCandidateStrategy; |
| | |
| | | import com.iailab.module.system.api.dept.PostApi; |
| | | import com.iailab.module.system.api.user.AdminUserApi; |
| | | import com.iailab.module.system.api.user.dto.AdminUserRespDTO; |
| | | import org.flowable.engine.delegate.DelegateExecution; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | import static com.iailab.framework.common.util.collection.CollectionUtils.convertSet; |
| | | |
| | | |
| | | /** |
| | | * 岗位 {@link BpmTaskCandidateStrategy} 实现类 |
| | | * |
| | | * @author kyle |
| | | * @author hou |
| | | */ |
| | | @Component |
| | | public class BpmTaskCandidatePostStrategy implements BpmTaskCandidateStrategy { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Set<Long> calculateUsers(DelegateExecution execution, String param) { |
| | | public Set<Long> calculateUsers(String param) { |
| | | Set<Long> postIds = StrUtils.splitToLongSet(param); |
| | | List<AdminUserRespDTO> users = adminUserApi.getUserListByPostIds(postIds).getCheckedData(); |
| | | return convertSet(users, AdminUserRespDTO::getId); |