chore: 整理代码
This commit is contained in:
parent
b2370564a4
commit
66615f9e14
@ -49,7 +49,7 @@ public class BpmProcessInstanceCopyController {
|
|||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "抄送流程")
|
@Operation(summary = "抄送流程")
|
||||||
@PreAuthorize("@ss.hasPermission('bpm:process-instance-cc:create')")
|
@PreAuthorize("@ss.hasPermission('bpm:process-instance-cc:create')")
|
||||||
public CommonResult<Boolean> createProcessInstanceCC(@Valid @RequestBody BpmProcessInstanceCopyCreateReqVO createReqVO) {
|
public CommonResult<Boolean> createProcessInstanceCopy(@Valid @RequestBody BpmProcessInstanceCopyCreateReqVO createReqVO) {
|
||||||
processInstanceCopyService.createProcessInstanceCopy(getLoginUserId(), createReqVO);
|
processInstanceCopyService.createProcessInstanceCopy(getLoginUserId(), createReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ public class BpmProcessInstanceCopyController {
|
|||||||
@GetMapping("/my-page")
|
@GetMapping("/my-page")
|
||||||
@Operation(summary = "获得抄送流程分页列表")
|
@Operation(summary = "获得抄送流程分页列表")
|
||||||
@PreAuthorize("@ss.hasPermission('bpm:process-instance-cc:query')")
|
@PreAuthorize("@ss.hasPermission('bpm:process-instance-cc:query')")
|
||||||
public CommonResult<PageResult<BpmProcessInstanceCopyPageItemRespVO>> getProcessInstanceCCPage(
|
public CommonResult<PageResult<BpmProcessInstanceCopyPageItemRespVO>> getProcessInstanceCopyPage(
|
||||||
@Valid BpmProcessInstanceCopyMyPageReqVO pageReqVO) {
|
@Valid BpmProcessInstanceCopyMyPageReqVO pageReqVO) {
|
||||||
PageResult<BpmProcessInstanceCopyDO> pageResult = processInstanceCopyService.getMyProcessInstanceCopyPage(getLoginUserId(), pageReqVO);
|
PageResult<BpmProcessInstanceCopyDO> pageResult = processInstanceCopyService.getMyProcessInstanceCopyPage(getLoginUserId(), pageReqVO);
|
||||||
if (CollUtil.isEmpty(pageResult.getList())) {
|
if (CollUtil.isEmpty(pageResult.getList())) {
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
// TODO @kyle:1)明确是 Req 还是 Resp;2)注释可以合并到 swagger 里;3)example 写一下,这样一些 mock 接口平台可以读取 example
|
|
||||||
/**
|
|
||||||
* 流程抄送视图对象
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class BpmProcessInstanceCopyVO {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编号
|
|
||||||
*/
|
|
||||||
@Schema(description = "抄送主键")
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 发起人Id
|
|
||||||
*/
|
|
||||||
@Schema(description = "发起人Id")
|
|
||||||
private Long startUserId;
|
|
||||||
|
|
||||||
@Schema(description = "发起人别名")
|
|
||||||
private String startUserNickname;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程主键
|
|
||||||
*/
|
|
||||||
@Schema(description = "流程实例的主键")
|
|
||||||
private String processInstanceId;
|
|
||||||
|
|
||||||
@Schema(description = "流程实例的名字")
|
|
||||||
private String processInstanceName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务主键
|
|
||||||
*/
|
|
||||||
@Schema(description = "发起抄送的任务编号")
|
|
||||||
private String taskId;
|
|
||||||
|
|
||||||
@Schema(description = "发起抄送的任务名称")
|
|
||||||
private String taskName;
|
|
||||||
/**
|
|
||||||
* 用户主键
|
|
||||||
*/
|
|
||||||
@Schema(description = "用户编号")
|
|
||||||
private Long userId;
|
|
||||||
|
|
||||||
@Schema(description = "用户别名")
|
|
||||||
private Long userNickname;
|
|
||||||
|
|
||||||
@Schema(description = "抄送原因")
|
|
||||||
private String reason;
|
|
||||||
|
|
||||||
@Schema(description = "抄送人")
|
|
||||||
private String creator;
|
|
||||||
|
|
||||||
@Schema(description = "抄送时间")
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
}
|
|
@ -34,6 +34,13 @@ public class MultiInstanceHandler {
|
|||||||
@Resource
|
@Resource
|
||||||
private PermissionApi permissionApi;
|
private PermissionApi permissionApi;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程发起人那种情况不需要处理,
|
||||||
|
* 由 flowable 完成
|
||||||
|
*
|
||||||
|
* @param execution flowable的执行对象
|
||||||
|
* @return 用户ID
|
||||||
|
*/
|
||||||
public Set<String> getUserIds(DelegateExecution execution) {
|
public Set<String> getUserIds(DelegateExecution execution) {
|
||||||
Set<String> candidateUserIds = new LinkedHashSet<>();
|
Set<String> candidateUserIds = new LinkedHashSet<>();
|
||||||
FlowElement flowElement = execution.getCurrentFlowElement();
|
FlowElement flowElement = execution.getCurrentFlowElement();
|
||||||
|
Loading…
Reference in New Issue
Block a user