|
@@ -1067,7 +1067,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<RegionalManagerVO> renderRegionManagerList(Long userId) {
|
|
|
+ public List<RegionalManagerVO> renderRegionManagerList() {
|
|
|
// List<RegionalManagerVO> regionalManagerVOList = new ArrayList<>();
|
|
|
// regionalManagerToRegionalDao.findAll().forEach(regionalManagerPO -> {
|
|
|
// RegionalManagerVO regionalManagerVO = new RegionalManagerVO();
|
|
@@ -1081,9 +1081,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
List<UserToRolePO> userToRolePOS = userToRoleDao.findByRoleId(RoleType.REGIONAL_MANAGER.getId());
|
|
|
userToRolePOS.forEach(userToRolePO -> {
|
|
|
RegionalManagerVO regionalManagerVO = new RegionalManagerVO();
|
|
|
- regionalManagerVO.setId(userToRolePO.getUserId());
|
|
|
+ Long userId = userToRolePO.getUserId();
|
|
|
+ regionalManagerVO.setId(userId);
|
|
|
String name = null;
|
|
|
- EvaluationAgencyPO evaluationAgencyPO = agencyDao.findByUserIdAndIsDeleted(userToRolePO.getUserId(), DeletedStatus.isNotDeleted);
|
|
|
+ EvaluationAgencyPO evaluationAgencyPO = agencyDao.findByUserIdAndIsDeleted(userId, DeletedStatus.isNotDeleted);
|
|
|
if (evaluationAgencyPO == null){
|
|
|
Optional<UserPO> userPOOptional = userDao.findById(userId);
|
|
|
if(userPOOptional.isPresent()){
|