mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
refactor: 清理方法
This commit is contained in:
parent
b4150cafa7
commit
5fb0c51fad
@ -59,13 +59,9 @@ public class BpmProcessInstanceCopyController {
|
|||||||
@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>> getProcessInstanceCCPage(
|
||||||
@Valid BpmProcessInstanceCopyMyPageReqVO pageReqVO) {
|
@Valid BpmProcessInstanceCopyMyPageReqVO pageReqVO) {
|
||||||
return success(getMyProcessInstanceCopyPage(getLoginUserId(), pageReqVO));
|
PageResult<BpmProcessInstanceCopyDO> pageResult = processInstanceCopyService.getMyProcessInstanceCopyPage(getLoginUserId(), pageReqVO);
|
||||||
}
|
|
||||||
|
|
||||||
public PageResult<BpmProcessInstanceCopyPageItemRespVO> getMyProcessInstanceCopyPage(Long loginUserId, BpmProcessInstanceCopyMyPageReqVO pageReqVO) {
|
|
||||||
PageResult<BpmProcessInstanceCopyDO> pageResult = processInstanceCopyService.getMyProcessInstanceCopyPage(loginUserId, pageReqVO);
|
|
||||||
if (CollUtil.isEmpty(pageResult.getList())) {
|
if (CollUtil.isEmpty(pageResult.getList())) {
|
||||||
return new PageResult<>(pageResult.getTotal());
|
return success(new PageResult<>(pageResult.getTotal()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, String> taskNameByTaskIds = bpmTaskService.getTaskNameByTaskIds(convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getTaskId));
|
Map<String, String> taskNameByTaskIds = bpmTaskService.getTaskNameByTaskIds(convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getTaskId));
|
||||||
@ -81,6 +77,7 @@ public class BpmProcessInstanceCopyController {
|
|||||||
AdminUserRespDTO::getId, AdminUserRespDTO::getNickname));
|
AdminUserRespDTO::getId, AdminUserRespDTO::getNickname));
|
||||||
|
|
||||||
// 转换返回
|
// 转换返回
|
||||||
return BpmProcessInstanceCopyConvert.INSTANCE.convertPage(pageResult, taskNameByTaskIds, processInstanceNameByProcessInstanceIds, userMap);
|
return success(BpmProcessInstanceCopyConvert.INSTANCE.convertPage(pageResult, taskNameByTaskIds, processInstanceNameByProcessInstanceIds, userMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user