mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
【功能修改】 流程抄送查询返回 activityId 字段
This commit is contained in:
parent
62e75a0bfe
commit
abea0edf23
@ -60,9 +60,9 @@ public class BpmProcessInstanceCopyController {
|
|||||||
return success(new PageResult<>(pageResult.getTotal()));
|
return success(new PageResult<>(pageResult.getTotal()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 拼接返回
|
// 拼接返回 TODO @芋艿。这个 taskName 查询是不是可以不用。 保存的时候 taskName 已经存了, review 一下。 不知道有什么特殊场景
|
||||||
Map<String, String> taskNameMap = taskService.getTaskNameByTaskIds(
|
// Map<String, String> taskNameMap = taskService.getTaskNameByTaskIds(
|
||||||
convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getTaskId));
|
// convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getTaskId));
|
||||||
Map<String, HistoricProcessInstance> processInstanceMap = processInstanceService.getHistoricProcessInstanceMap(
|
Map<String, HistoricProcessInstance> processInstanceMap = processInstanceService.getHistoricProcessInstanceMap(
|
||||||
convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getProcessInstanceId));
|
convertSet(pageResult.getList(), BpmProcessInstanceCopyDO::getProcessInstanceId));
|
||||||
Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertListByFlatMap(pageResult.getList(),
|
Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertListByFlatMap(pageResult.getList(),
|
||||||
@ -70,7 +70,7 @@ public class BpmProcessInstanceCopyController {
|
|||||||
return success(BeanUtils.toBean(pageResult, BpmProcessInstanceCopyRespVO.class, copyVO -> {
|
return success(BeanUtils.toBean(pageResult, BpmProcessInstanceCopyRespVO.class, copyVO -> {
|
||||||
MapUtils.findAndThen(userMap, Long.valueOf(copyVO.getCreator()), user -> copyVO.setCreatorName(user.getNickname()));
|
MapUtils.findAndThen(userMap, Long.valueOf(copyVO.getCreator()), user -> copyVO.setCreatorName(user.getNickname()));
|
||||||
MapUtils.findAndThen(userMap, copyVO.getStartUserId(), user -> copyVO.setStartUserName(user.getNickname()));
|
MapUtils.findAndThen(userMap, copyVO.getStartUserId(), user -> copyVO.setStartUserName(user.getNickname()));
|
||||||
MapUtils.findAndThen(taskNameMap, copyVO.getTaskId(), copyVO::setTaskName);
|
// MapUtils.findAndThen(taskNameMap, copyVO.getTaskId(), copyVO::setTaskName);
|
||||||
MapUtils.findAndThen(processInstanceMap, copyVO.getProcessInstanceId(),
|
MapUtils.findAndThen(processInstanceMap, copyVO.getProcessInstanceId(),
|
||||||
processInstance -> copyVO.setProcessInstanceStartTime(DateUtils.of(processInstance.getStartTime())));
|
processInstance -> copyVO.setProcessInstanceStartTime(DateUtils.of(processInstance.getStartTime())));
|
||||||
}));
|
}));
|
||||||
|
@ -24,6 +24,8 @@ public class BpmProcessInstanceCopyRespVO {
|
|||||||
@Schema(description = "流程实例的发起时间")
|
@Schema(description = "流程实例的发起时间")
|
||||||
private LocalDateTime processInstanceStartTime;
|
private LocalDateTime processInstanceStartTime;
|
||||||
|
|
||||||
|
@Schema(description = "抄送的节点的活动编号")
|
||||||
|
private String activityId;
|
||||||
@Schema(description = "发起抄送的任务编号")
|
@Schema(description = "发起抄送的任务编号")
|
||||||
private String taskId;
|
private String taskId;
|
||||||
@Schema(description = "发起抄送的任务名称")
|
@Schema(description = "发起抄送的任务名称")
|
||||||
|
@ -57,7 +57,6 @@ public class BpmProcessInstanceCopyDO extends BaseDO {
|
|||||||
private String activityId;
|
private String activityId;
|
||||||
/**
|
/**
|
||||||
* 任务主键
|
* 任务主键
|
||||||
* // @芋艿 这个 taskId 是不是可以去掉了;TODO 可能要留着,因为得知道是来自哪个 task 的抄送
|
|
||||||
* 关联 Task 的 id 属性
|
* 关联 Task 的 id 属性
|
||||||
*/
|
*/
|
||||||
private String taskId;
|
private String taskId;
|
||||||
|
@ -20,7 +20,7 @@ public interface BpmProcessInstanceCopyMapper extends BaseMapperX<BpmProcessInst
|
|||||||
.orderByDesc(BpmProcessInstanceCopyDO::getId));
|
.orderByDesc(BpmProcessInstanceCopyDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
default List<BpmProcessInstanceCopyDO> selectListByProcessIstanceIdAndActivityId(String processInstanceId, String activityId) {
|
default List<BpmProcessInstanceCopyDO> selectListByProcessInstanceIdAndActivityId(String processInstanceId, String activityId) {
|
||||||
return selectList(BpmProcessInstanceCopyDO::getProcessInstanceId, processInstanceId,
|
return selectList(BpmProcessInstanceCopyDO::getProcessInstanceId, processInstanceId,
|
||||||
BpmProcessInstanceCopyDO::getActivityId, activityId);
|
BpmProcessInstanceCopyDO::getActivityId, activityId);
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public class BpmProcessInstanceCopyServiceImpl implements BpmProcessInstanceCopy
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<Long> getCopyUserIds(String processInstanceId, String activityId) {
|
public Set<Long> getCopyUserIds(String processInstanceId, String activityId) {
|
||||||
return CollectionUtils.convertSet(processInstanceCopyMapper.selectListByProcessIstanceIdAndActivityId(processInstanceId, activityId),
|
return CollectionUtils.convertSet(processInstanceCopyMapper.selectListByProcessInstanceIdAndActivityId(processInstanceId, activityId),
|
||||||
BpmProcessInstanceCopyDO::getUserId);
|
BpmProcessInstanceCopyDO::getUserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user