Showing
1 changed file
with
8 additions
and
0 deletions
| ... | ... | @@ -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 | } | ... | ... |