| Line 1072... |
Line 1072... |
| 1072 |
List<Integer> rbmPositionsAuthIds = positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM).stream().map(x -> x.getAuthUserId()).collect(Collectors.toList());
|
1072 |
List<Integer> rbmPositionsAuthIds = positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM).stream().map(x -> x.getAuthUserId()).collect(Collectors.toList());
|
| 1073 |
|
1073 |
|
| 1074 |
salesPositionsAuthIds.addAll(rbmPositionsAuthIds);
|
1074 |
salesPositionsAuthIds.addAll(rbmPositionsAuthIds);
|
| 1075 |
|
1075 |
|
| 1076 |
Set<Integer> empHierarchy = allReportees.stream().filter(x -> salesPositionsAuthIds.contains(x)).collect(Collectors.toSet());
|
1076 |
Set<Integer> empHierarchy = allReportees.stream().filter(x -> salesPositionsAuthIds.contains(x)).collect(Collectors.toSet());
|
| - |
|
1077 |
List<AuthUser> authUsers = new ArrayList<>();
|
| - |
|
1078 |
if (!empHierarchy.isEmpty()) {
|
| - |
|
1079 |
authUsers = authRepository.selectAllAuthUserByIds(new ArrayList<>(empHierarchy));
|
| - |
|
1080 |
}
|
| 1077 |
|
1081 |
|
| 1078 |
List<AuthUser> authUsers = authRepository.selectAllAuthUserByIds(new ArrayList<>(empHierarchy));
|
- |
|
| 1079 |
|
1082 |
|
| 1080 |
Map<Integer, AuthUser> authUserMap = authRepository.selectAll().stream().collect(Collectors.toMap(x -> x.getId(), x -> x));
|
1083 |
Map<Integer, AuthUser> authUserMap = authRepository.selectAll().stream().collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 1081 |
|
1084 |
|
| 1082 |
LOGGER.info("todayPcpmMap {}", todayPcpmMap);
|
1085 |
LOGGER.info("todayPcpmMap {}", todayPcpmMap);
|
| 1083 |
|
1086 |
|