|
@@ -39,7 +39,8 @@ import java.util.stream.Collectors;
|
|
* @since 2023-08-01
|
|
* @since 2023-08-01
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
-public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeMapper, TBProjectExchange> implements TBProjectExchangeService {
|
|
|
|
|
|
+public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeMapper, TBProjectExchange>
|
|
|
|
+ implements TBProjectExchangeService {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
ActivitiService activitiService;
|
|
ActivitiService activitiService;
|
|
@@ -71,6 +72,9 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
@Resource
|
|
@Resource
|
|
TFCustomFlowAllocationService tfCustomFlowAllocationService;
|
|
TFCustomFlowAllocationService tfCustomFlowAllocationService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TBCrmDetailService tbCrmDetailService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 新增项目变更计划申请
|
|
* 新增项目变更计划申请
|
|
*
|
|
*
|
|
@@ -81,23 +85,31 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
public Boolean saveProjectExchange(TBProjectExchange tbProjectExchange) throws InterruptedException {
|
|
public Boolean saveProjectExchange(TBProjectExchange tbProjectExchange) throws InterruptedException {
|
|
- if (tbProjectExchange.getFlowApprove() != FlowApprovePassEnum.START && tbProjectExchange.getFlowApprove() != FlowApprovePassEnum.DRAFT) {
|
|
|
|
|
|
+ if (tbProjectExchange.getFlowApprove() != FlowApprovePassEnum.START
|
|
|
|
+ && tbProjectExchange.getFlowApprove() != FlowApprovePassEnum.DRAFT) {
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("项目计划变更申请只能为提交或草稿");
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("项目计划变更申请只能为提交或草稿");
|
|
}
|
|
}
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
|
|
- TFCustomFlowAllocation tfCustomFlowAllocation = tfCustomFlowAllocationService.getOne(new QueryWrapper<TFCustomFlowAllocation>().lambda().eq(TFCustomFlowAllocation::getType, TFCustomTypeEnum.PROJECT_EXCHANGE_FLOW));
|
|
|
|
- Optional.ofNullable(tfCustomFlowAllocation).orElseThrow(() -> ExceptionResultEnum.FLOW_ALLOCATION_NO_DATA.exception());
|
|
|
|
- Optional.ofNullable(tfCustomFlowAllocation.getRoleAllocation()).orElseThrow(() -> ExceptionResultEnum.FLOW_ALLOCATION_NO_DATA.exception());
|
|
|
|
|
|
+ TFCustomFlowAllocation tfCustomFlowAllocation = tfCustomFlowAllocationService.getOne(
|
|
|
|
+ new QueryWrapper<TFCustomFlowAllocation>().lambda()
|
|
|
|
+ .eq(TFCustomFlowAllocation::getType, TFCustomTypeEnum.PROJECT_EXCHANGE_FLOW));
|
|
|
|
+ Optional.ofNullable(tfCustomFlowAllocation)
|
|
|
|
+ .orElseThrow(() -> ExceptionResultEnum.FLOW_ALLOCATION_NO_DATA.exception());
|
|
|
|
+ Optional.ofNullable(tfCustomFlowAllocation.getRoleAllocation())
|
|
|
|
+ .orElseThrow(() -> ExceptionResultEnum.FLOW_ALLOCATION_NO_DATA.exception());
|
|
|
|
|
|
- List<RoleTypeEnum> roleTypeEnumList = tfCustomFlowAllocationService.getRoleTypes(tfCustomFlowAllocation.getRoleAllocation(), 2);
|
|
|
|
|
|
+ List<RoleTypeEnum> roleTypeEnumList = tfCustomFlowAllocationService.getRoleTypes(
|
|
|
|
+ tfCustomFlowAllocation.getRoleAllocation(), 2);
|
|
//查询所有审核角色
|
|
//查询所有审核角色
|
|
List<UserDto> userDtoList = sysUserRoleService.userListByRoleType(roleTypeEnumList);
|
|
List<UserDto> userDtoList = sysUserRoleService.userListByRoleType(roleTypeEnumList);
|
|
if (CollectionUtils.isEmpty(userDtoList)) {
|
|
if (CollectionUtils.isEmpty(userDtoList)) {
|
|
throw ExceptionResultEnum.ERROR.exception("系统中没有" + roleTypeEnumList + "角色的用户");
|
|
throw ExceptionResultEnum.ERROR.exception("系统中没有" + roleTypeEnumList + "角色的用户");
|
|
}
|
|
}
|
|
- List<String> approveUserIds = userDtoList.stream().map(s -> String.valueOf(s.getId())).collect(Collectors.toList());
|
|
|
|
- FlowApproveParam flowApproveParam = new FlowApproveParam(tbProjectExchange.getFlowDeploymentId(), tbProjectExchange.getFlowApprove(), approveUserIds, tbProjectExchange.getCrmNo());
|
|
|
|
|
|
+ List<String> approveUserIds = userDtoList.stream().map(s -> String.valueOf(s.getId()))
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ FlowApproveParam flowApproveParam = new FlowApproveParam(tbProjectExchange.getFlowDeploymentId(),
|
|
|
|
+ tbProjectExchange.getFlowApprove(), approveUserIds, tbProjectExchange.getCrmNo());
|
|
flowApproveParam.setApproveRemark(tbProjectExchange.getFlowApprove().getTitle());
|
|
flowApproveParam.setApproveRemark(tbProjectExchange.getFlowApprove().getTitle());
|
|
Map<String, Object> map = activitiService.taskApprove(flowApproveParam);
|
|
Map<String, Object> map = activitiService.taskApprove(flowApproveParam);
|
|
TFCustomFlowEntity tfCustomFlowEntity = (TFCustomFlowEntity) map.get(SystemConstant.FLOW_ENTITY);
|
|
TFCustomFlowEntity tfCustomFlowEntity = (TFCustomFlowEntity) map.get(SystemConstant.FLOW_ENTITY);
|
|
@@ -123,16 +135,24 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public IPage<ProjectExchangeResult> list(IPage<Map> iPage, Long serviceId, Long createUserId, DelayWarnTypeEnum type, ProductTypeEnum customType, ProjectExchangeFlowStatusEnum flowStatus, String customName, String exchangeNo, Long startTime, Long endTime) {
|
|
|
|
|
|
+ public IPage<ProjectExchangeResult> list(IPage<Map> iPage, Long serviceId, Long createUserId,
|
|
|
|
+ DelayWarnTypeEnum type, ProductTypeEnum customType, ProjectExchangeFlowStatusEnum flowStatus,
|
|
|
|
+ String customName, String exchangeNo, Long startTime, Long endTime) {
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
DataPermissionDto dpr = sysUserService.buildUserDataPermission(requestUser.getId());
|
|
DataPermissionDto dpr = sysUserService.buildUserDataPermission(requestUser.getId());
|
|
- IPage<ProjectExchangeResult> list = this.baseMapper.list(iPage, serviceId, createUserId, Objects.nonNull(type) ? type.name() : null, Objects.nonNull(customType) ? customType.name() : null, Objects.nonNull(flowStatus) ? flowStatus.name() : null, customName, exchangeNo, startTime, endTime, dpr);
|
|
|
|
|
|
+ IPage<ProjectExchangeResult> list = this.baseMapper.list(iPage, serviceId, createUserId,
|
|
|
|
+ Objects.nonNull(type) ? type.name() : null, Objects.nonNull(customType) ? customType.name() : null,
|
|
|
|
+ Objects.nonNull(flowStatus) ? flowStatus.name() : null, customName, exchangeNo, startTime, endTime,
|
|
|
|
+ dpr);
|
|
for (ProjectExchangeResult p : list.getRecords()) {
|
|
for (ProjectExchangeResult p : list.getRecords()) {
|
|
TFFlowLog tfFlowLog = tfFlowLogService.findByLastFlowLog(p.getFlowId());
|
|
TFFlowLog tfFlowLog = tfFlowLogService.findByLastFlowLog(p.getFlowId());
|
|
if (Objects.nonNull(tfFlowLog) && Objects.nonNull(tfFlowLog.getPendApproveId())) {
|
|
if (Objects.nonNull(tfFlowLog) && Objects.nonNull(tfFlowLog.getPendApproveId())) {
|
|
- List<String> userList = Arrays.asList(tfFlowLog.getPendApproveId().split(SystemConstant.LIST_JOIN_SPLIT));
|
|
|
|
- List<OrgUserNameDto> orgUserNameDtoList = sysUserService.findOrgUserName(userList.stream().map(s -> Long.parseLong(s)).collect(Collectors.toList()));
|
|
|
|
- List<String> userName = orgUserNameDtoList.stream().map(s -> s.getOrgUserName()).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> userList = Arrays.asList(
|
|
|
|
+ tfFlowLog.getPendApproveId().split(SystemConstant.LIST_JOIN_SPLIT));
|
|
|
|
+ List<OrgUserNameDto> orgUserNameDtoList = sysUserService.findOrgUserName(
|
|
|
|
+ userList.stream().map(s -> Long.parseLong(s)).collect(Collectors.toList()));
|
|
|
|
+ List<String> userName = orgUserNameDtoList.stream().map(s -> s.getOrgUserName())
|
|
|
|
+ .collect(Collectors.toList());
|
|
p.setApproveUsersName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
p.setApproveUsersName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
}
|
|
}
|
|
if (Objects.nonNull(p.getTaskId())) {
|
|
if (Objects.nonNull(p.getTaskId())) {
|
|
@@ -143,7 +163,8 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
List<IdentityLink> identityLinkList = taskService.getIdentityLinksForTask(task.getId());
|
|
List<IdentityLink> identityLinkList = taskService.getIdentityLinksForTask(task.getId());
|
|
if (!CollectionUtils.isEmpty(identityLinkList)) {
|
|
if (!CollectionUtils.isEmpty(identityLinkList)) {
|
|
for (IdentityLink i : identityLinkList) {
|
|
for (IdentityLink i : identityLinkList) {
|
|
- if (Objects.nonNull(i.getUserId()) && i.getUserId().equals(requestUser.getId().toString())) {
|
|
|
|
|
|
+ if (Objects.nonNull(i.getUserId()) && i.getUserId()
|
|
|
|
+ .equals(requestUser.getId().toString())) {
|
|
p.setMyself(true);
|
|
p.setMyself(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -167,9 +188,11 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
- public Boolean flowApprove(Long taskId, FlowApprovePassEnum flowApprove, ProjectExchangeApproveEnum projectExchangeApprove, String remark, Long userId) throws InterruptedException {
|
|
|
|
|
|
+ public Boolean flowApprove(Long taskId, FlowApprovePassEnum flowApprove,
|
|
|
|
+ ProjectExchangeApproveEnum projectExchangeApprove, String remark, Long userId) throws InterruptedException {
|
|
Optional.ofNullable(taskId).orElseThrow(() -> ExceptionResultEnum.FLOW_TASK_ID_IS_NULL.exception());
|
|
Optional.ofNullable(taskId).orElseThrow(() -> ExceptionResultEnum.FLOW_TASK_ID_IS_NULL.exception());
|
|
- if (flowApprove != FlowApprovePassEnum.START && flowApprove != FlowApprovePassEnum.PASS && flowApprove != FlowApprovePassEnum.DRAFT) {
|
|
|
|
|
|
+ if (flowApprove != FlowApprovePassEnum.START && flowApprove != FlowApprovePassEnum.PASS
|
|
|
|
+ && flowApprove != FlowApprovePassEnum.DRAFT) {
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("项目计划变更审批只能为通过或草稿");
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("项目计划变更审批只能为通过或草稿");
|
|
}
|
|
}
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
@@ -178,15 +201,21 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
Optional.ofNullable(task).orElseThrow(() -> ExceptionResultEnum.FLOW_TASK_NO_DATA.exception());
|
|
Optional.ofNullable(task).orElseThrow(() -> ExceptionResultEnum.FLOW_TASK_NO_DATA.exception());
|
|
|
|
|
|
List<String> taskApproveUserList = activitiService.getTaskApprove(task);
|
|
List<String> taskApproveUserList = activitiService.getTaskApprove(task);
|
|
- if (!CollectionUtils.isEmpty(taskApproveUserList) && !taskApproveUserList.contains(sysUser.getId().toString())) {
|
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(taskApproveUserList) && !taskApproveUserList.contains(
|
|
|
|
+ sysUser.getId().toString())) {
|
|
throw ExceptionResultEnum.FLOW_DATA_NOT_ME.exception();
|
|
throw ExceptionResultEnum.FLOW_DATA_NOT_ME.exception();
|
|
}
|
|
}
|
|
|
|
|
|
- TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.getOne(new QueryWrapper<TFCustomFlowEntity>().lambda().eq(TFCustomFlowEntity::getFlowId, Long.parseLong(task.getProcessInstanceId())));
|
|
|
|
- activitiService.taskApprove(new FlowApproveParam(taskId, flowApprove, Arrays.asList(String.valueOf(userId)), tfCustomFlowEntity.getCrmNo(), projectExchangeApprove.getTitle() + ";" + remark));
|
|
|
|
|
|
+ TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.getOne(
|
|
|
|
+ new QueryWrapper<TFCustomFlowEntity>().lambda()
|
|
|
|
+ .eq(TFCustomFlowEntity::getFlowId, Long.parseLong(task.getProcessInstanceId())));
|
|
|
|
+ activitiService.taskApprove(new FlowApproveParam(taskId, flowApprove, Arrays.asList(String.valueOf(userId)),
|
|
|
|
+ tfCustomFlowEntity.getCrmNo(), projectExchangeApprove.getTitle() + ";" + remark));
|
|
|
|
|
|
- TBProjectExchange tbProjectExchange = this.getOne(new QueryWrapper<TBProjectExchange>().lambda().eq(TBProjectExchange::getExchangeNo, tfCustomFlowEntity.getCode()));
|
|
|
|
- Optional.ofNullable(tbProjectExchange).orElseThrow(() -> ExceptionResultEnum.PROJECT_EXCHANGE_NO_DATA.exception());
|
|
|
|
|
|
+ TBProjectExchange tbProjectExchange = this.getOne(new QueryWrapper<TBProjectExchange>().lambda()
|
|
|
|
+ .eq(TBProjectExchange::getExchangeNo, tfCustomFlowEntity.getCode()));
|
|
|
|
+ Optional.ofNullable(tbProjectExchange)
|
|
|
|
+ .orElseThrow(() -> ExceptionResultEnum.PROJECT_EXCHANGE_NO_DATA.exception());
|
|
|
|
|
|
tbProjectExchange.setResult(projectExchangeApprove);
|
|
tbProjectExchange.setResult(projectExchangeApprove);
|
|
tbProjectExchange.setRemark(remark);
|
|
tbProjectExchange.setRemark(remark);
|
|
@@ -202,16 +231,22 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
@Override
|
|
@Override
|
|
public TBProjectExchangeViewResult view(Long id) {
|
|
public TBProjectExchangeViewResult view(Long id) {
|
|
TBProjectExchange tbProjectExchange = this.getById(id);
|
|
TBProjectExchange tbProjectExchange = this.getById(id);
|
|
- Optional.ofNullable(tbProjectExchange).orElseThrow(() -> ExceptionResultEnum.PROJECT_EXCHANGE_NO_DATA.exception());
|
|
|
|
|
|
+ Optional.ofNullable(tbProjectExchange)
|
|
|
|
+ .orElseThrow(() -> ExceptionResultEnum.PROJECT_EXCHANGE_NO_DATA.exception());
|
|
|
|
|
|
- CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectInfo(tbProjectExchange.getSopNo(),null, tbProjectExchange.getCrmNo());
|
|
|
|
|
|
+ TBCrmDetail tbCrmDetail = tbCrmDetailService.findBySopNo(tbProjectExchange.getSopNo());
|
|
|
|
+ CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectInfo(tbProjectExchange.getSopNo(),
|
|
|
|
+ tbCrmDetail.getId(), tbProjectExchange.getCrmNo());
|
|
Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
|
|
|
|
- TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.getOne(new QueryWrapper<TFCustomFlowEntity>().lambda().eq(TFCustomFlowEntity::getCode, tbProjectExchange.getExchangeNo()));
|
|
|
|
|
|
+ TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.getOne(
|
|
|
|
+ new QueryWrapper<TFCustomFlowEntity>().lambda()
|
|
|
|
+ .eq(TFCustomFlowEntity::getCode, tbProjectExchange.getExchangeNo()));
|
|
Optional.ofNullable(tfCustomFlowEntity).orElseThrow(() -> ExceptionResultEnum.FLOW_ENTITY_NO_DATA.exception());
|
|
Optional.ofNullable(tfCustomFlowEntity).orElseThrow(() -> ExceptionResultEnum.FLOW_ENTITY_NO_DATA.exception());
|
|
|
|
|
|
//获取当前流程节点
|
|
//获取当前流程节点
|
|
- TFFlowApprove tfFlowApprove = tfFlowApproveService.getOne(new QueryWrapper<TFFlowApprove>().lambda().eq(TFFlowApprove::getFlowId, tfCustomFlowEntity.getFlowId()));
|
|
|
|
|
|
+ TFFlowApprove tfFlowApprove = tfFlowApproveService.getOne(new QueryWrapper<TFFlowApprove>().lambda()
|
|
|
|
+ .eq(TFFlowApprove::getFlowId, tfCustomFlowEntity.getFlowId()));
|
|
Optional.ofNullable(tfFlowApprove).orElseThrow(() -> ExceptionResultEnum.FLOW_APPROVE_NO_DATA.exception());
|
|
Optional.ofNullable(tfFlowApprove).orElseThrow(() -> ExceptionResultEnum.FLOW_APPROVE_NO_DATA.exception());
|
|
|
|
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
@@ -225,8 +260,10 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
Map<Integer, Integer> approveSetupMap = new HashMap<>();
|
|
Map<Integer, Integer> approveSetupMap = new HashMap<>();
|
|
List<TFFlowLogResult> tfFlowLogResultList = tfFlowLogService.findByObjectId(tfCustomFlowEntity.getId());
|
|
List<TFFlowLogResult> tfFlowLogResultList = tfFlowLogService.findByObjectId(tfCustomFlowEntity.getId());
|
|
if (!CollectionUtils.isEmpty(tfFlowLogResultList)) {
|
|
if (!CollectionUtils.isEmpty(tfFlowLogResultList)) {
|
|
- flowApproveHistoryList = GsonUtil.fromJson(GsonUtil.toJson(tfFlowLogResultList), new TypeToken<List<TFFlowViewLogResult>>() {
|
|
|
|
- }.getType());
|
|
|
|
|
|
+ flowApproveHistoryList = GsonUtil.fromJson(GsonUtil.toJson(tfFlowLogResultList),
|
|
|
|
+ new TypeToken<List<TFFlowViewLogResult>>() {
|
|
|
|
+
|
|
|
|
+ }.getType());
|
|
for (TFFlowViewLogResult t : flowApproveHistoryList) {
|
|
for (TFFlowViewLogResult t : flowApproveHistoryList) {
|
|
t.setMessageType(FlowMsgTypeEnum.STANDARD);
|
|
t.setMessageType(FlowMsgTypeEnum.STANDARD);
|
|
approveSetupMap.put(t.getApproveSetup(), t.getApproveSetup());
|
|
approveSetupMap.put(t.getApproveSetup(), t.getApproveSetup());
|
|
@@ -239,18 +276,23 @@ public class TBProjectExchangeServiceImpl extends ServiceImpl<TBProjectExchangeM
|
|
FlowTaskResult flowTaskResult = GsonUtil.fromJson(GsonUtil.toJson(entry.getValue()), FlowTaskResult.class);
|
|
FlowTaskResult flowTaskResult = GsonUtil.fromJson(GsonUtil.toJson(entry.getValue()), FlowTaskResult.class);
|
|
if (flowTaskResult.getSetup() > 0) {
|
|
if (flowTaskResult.getSetup() > 0) {
|
|
//正在审批的表单
|
|
//正在审批的表单
|
|
- if (Objects.nonNull(tfFlowApprove.getSetup()) && flowTaskResult.getSetup().intValue() == tfFlowApprove.getSetup().intValue()) {
|
|
|
|
|
|
+ if (Objects.nonNull(tfFlowApprove.getSetup())
|
|
|
|
+ && flowTaskResult.getSetup().intValue() == tfFlowApprove.getSetup().intValue()) {
|
|
currFlowTaskResult = flowTaskResult;
|
|
currFlowTaskResult = flowTaskResult;
|
|
- List<Task> taskList = taskService.createTaskQuery().processInstanceId(String.valueOf(tfCustomFlowEntity.getFlowId())).list();
|
|
|
|
|
|
+ List<Task> taskList = taskService.createTaskQuery()
|
|
|
|
+ .processInstanceId(String.valueOf(tfCustomFlowEntity.getFlowId())).list();
|
|
if (!CollectionUtils.isEmpty(taskList)) {
|
|
if (!CollectionUtils.isEmpty(taskList)) {
|
|
taskIdList = taskList.stream().map(s -> Long.parseLong(s.getId())).collect(Collectors.toList());
|
|
taskIdList = taskList.stream().map(s -> Long.parseLong(s.getId())).collect(Collectors.toList());
|
|
}
|
|
}
|
|
} else if (approveSetupMap.containsKey(flowTaskResult.getSetup())) {//已经审批过的表单
|
|
} else if (approveSetupMap.containsKey(flowTaskResult.getSetup())) {//已经审批过的表单
|
|
- flowTaskHistoryList = CollectionUtils.isEmpty(flowTaskHistoryList) ? new ArrayList<>(approveSetupMap.size()) : flowTaskHistoryList;
|
|
|
|
|
|
+ flowTaskHistoryList = CollectionUtils.isEmpty(flowTaskHistoryList) ?
|
|
|
|
+ new ArrayList<>(approveSetupMap.size()) :
|
|
|
|
+ flowTaskHistoryList;
|
|
flowTaskHistoryList.add(flowTaskResult);
|
|
flowTaskHistoryList.add(flowTaskResult);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return new TBProjectExchangeViewResult(crmProjectResult, tbProjectExchange, taskIdList, flowTaskHistoryList, currFlowTaskResult, flowApproveHistoryList);
|
|
|
|
|
|
+ return new TBProjectExchangeViewResult(crmProjectResult, tbProjectExchange, taskIdList, flowTaskHistoryList,
|
|
|
|
+ currFlowTaskResult, flowApproveHistoryList);
|
|
}
|
|
}
|
|
}
|
|
}
|