feat:flowable 依赖调整

rf
tony 2022-12-26 18:56:00 +08:00
parent 89ee31b140
commit ae4b725f2e
6 changed files with 5 additions and 38 deletions

16
pom.xml
View File

@ -184,31 +184,17 @@
<artifactId>ruoyi-flowable</artifactId> <artifactId>ruoyi-flowable</artifactId>
<version>${ruoyi.version}</version> <version>${ruoyi.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.flowable</groupId> <groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter-basic</artifactId> <artifactId>flowable-spring-boot-starter</artifactId>
<version>${flowable.version}</version> <version>${flowable.version}</version>
<exclusions><!-- 需要排除flowable的mybatis依赖不然会跟mybatis-plus冲突 -->
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId> <artifactId>swagger-annotations</artifactId>
<version>1.5.21</version> <version>1.5.21</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-engine</artifactId>
<version>${flowable.version}</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>

View File

@ -55,15 +55,8 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.flowable</groupId> <groupId>org.flowable</groupId>
<artifactId>flowable-engine</artifactId> <artifactId>flowable-spring-boot-starter</artifactId>
<scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter-basic</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>

View File

@ -132,21 +132,21 @@ public class FlowTaskController {
} }
@ApiOperation(value = "委派任务") @ApiOperation(value = "委派任务")
@PostMapping(value = "/delegate") @PostMapping(value = "/delegateTask")
public AjaxResult delegate(@RequestBody FlowTaskVo flowTaskVo) { public AjaxResult delegate(@RequestBody FlowTaskVo flowTaskVo) {
flowTaskService.delegateTask(flowTaskVo); flowTaskService.delegateTask(flowTaskVo);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation(value = "任务归还") @ApiOperation(value = "任务归还")
@PostMapping(value = "/delegate") @PostMapping(value = "/resolveTask")
public AjaxResult resolveTask(@RequestBody FlowTaskVo flowTaskVo) { public AjaxResult resolveTask(@RequestBody FlowTaskVo flowTaskVo) {
flowTaskService.resolveTask(flowTaskVo); flowTaskService.resolveTask(flowTaskVo);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation(value = "转办任务") @ApiOperation(value = "转办任务")
@PostMapping(value = "/assign") @PostMapping(value = "/assignTask")
public AjaxResult assign(@RequestBody FlowTaskVo flowTaskVo) { public AjaxResult assign(@RequestBody FlowTaskVo flowTaskVo) {
flowTaskService.assignTask(flowTaskVo); flowTaskService.assignTask(flowTaskVo);
return AjaxResult.success(); return AjaxResult.success();

View File

@ -28,9 +28,6 @@ public class FlowServiceFactory {
@Resource @Resource
protected TaskService taskService; protected TaskService taskService;
@Resource
protected FormService formService;
@Resource @Resource
protected HistoryService historyService; protected HistoryService historyService;

View File

@ -14,8 +14,6 @@ import java.util.Map;
*/ */
public interface IFlowInstanceService { public interface IFlowInstanceService {
List<Task> queryListByInstanceId(String instanceId);
/** /**
* *
* *

View File

@ -28,13 +28,6 @@ import java.util.Objects;
@Slf4j @Slf4j
public class FlowInstanceServiceImpl extends FlowServiceFactory implements IFlowInstanceService { public class FlowInstanceServiceImpl extends FlowServiceFactory implements IFlowInstanceService {
@Override
public List<Task> queryListByInstanceId(String instanceId) {
List<Task> list = taskService.createTaskQuery().processInstanceId(instanceId).active().list();
return list;
}
/** /**
* *
* *