Commit dbf2adcd6ce0e705f5020c23a75bbd6e44a2b564

Authored by yeqianyong
1 parent 402d3685

楚江ERP-订货单变更记录详情增加审核权限判断

... ... @@ -135,6 +135,14 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR
135 135 changeRecord.setAfterTotalQuantity(total.doubleValue());
136 136 }
137 137 changeRecord.setAfterChangeSpecList(afterChangeList);
  138 + // 判断当前人员是否有审核权限
  139 + // 获取当前人员的待办任务数据
  140 + List<String> businessIds = new ArrayList<>();
  141 + List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId());
  142 + if (CollectionUtils.isNotEmpty(flowTaskList)) {
  143 + businessIds = flowTaskList.stream().map(FlowTaskDto::getBusinessId).collect(Collectors.toList());
  144 + }
  145 + changeRecord.setShowExamine(businessIds.contains(changeRecord.getId()));
138 146
139 147 return changeRecord;
140 148 }
... ...