parent
e1c5163dc9
commit
7fdcfa966b
7 changed files with 240 additions and 5 deletions
@ -0,0 +1,24 @@ |
||||
package org.springblade.plugin.workbench.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tenant.annotation.NonDS; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
/** |
||||
* @Description 工作台 |
||||
* @Author ytl |
||||
* @Date 2023/2/18 0018 13:14 |
||||
*/ |
||||
|
||||
@NonDS |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/workBench") |
||||
@Api(value = "工作台", tags = "工作台") |
||||
public class WorkBenchController extends BladeController { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,11 @@ |
||||
package org.springblade.plugin.workbench.service; |
||||
|
||||
/** |
||||
* @Description |
||||
* @Author ytl |
||||
* @Date 2023/2/18 0018 13:22 |
||||
*/ |
||||
public interface IWorkBenchService { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,34 @@ |
||||
package org.springblade.plugin.workbench.service.impl; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import org.flowable.engine.TaskService; |
||||
import org.flowable.task.api.Task; |
||||
import org.springblade.plugin.workbench.service.IWorkBenchService; |
||||
import org.springblade.plugin.workflow.core.utils.WfTaskUtil; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @Description |
||||
* @Author ytl |
||||
* @Date 2023/2/18 0018 13:23 |
||||
*/ |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class WorkBenchServiceImpl implements IWorkBenchService { |
||||
|
||||
private final TaskService taskService; |
||||
|
||||
public void getTask(){ |
||||
List<Task> list = taskService.createTaskQuery().taskTenantId(WfTaskUtil.getTenantId()).list(); |
||||
|
||||
Map<String,List<Task>> taskRemindMap = new HashMap<>(); |
||||
|
||||
list.forEach(hi -> { |
||||
|
||||
}); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue