Browse Source

Merge remote-tracking branch 'origin/dev_govgrid' into dev

dev_shibei_match
yinzuomei 5 years ago
parent
commit
9155d4e9c1
  1. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

@ -182,15 +182,13 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
List<GovStaffRoleResultDTO> gridManager = staffRoleService.listStaffsInRole(UserRoleConstant.GRID_MANAGER, customerStaffGridDTOS.get(0).getPid(), DataScope.getDefault()); List<GovStaffRoleResultDTO> gridManager = staffRoleService.listStaffsInRole(UserRoleConstant.GRID_MANAGER, customerStaffGridDTOS.get(0).getPid(), DataScope.getDefault());
List<StaffGridListDTO> staffGridListDTOS = baseDao.selectStaffGridListByUserId(customerStaffGridDTOS); List<StaffGridListDTO> staffGridListDTOS = baseDao.selectStaffGridListByUserId(customerStaffGridDTOS);
for (GovStaffRoleResultDTO govStaffRoleResultDTO : gridManager) { for (GovStaffRoleResultDTO govStaffRoleResultDTO : gridManager) {
if (govStaffRoleResultDTO.getRoleKey()==UserRoleConstant.GRID_MANAGER){ if (govStaffRoleResultDTO.getRoleKey().equals(UserRoleConstant.GRID_MANAGER)){
for (StaffGridListDTO staffGridListDTO : staffGridListDTOS) { for (StaffGridListDTO staffGridListDTO : staffGridListDTOS) {
if (staffGridListDTO.getStaffId()==govStaffRoleResultDTO.getStaffId()){ if (staffGridListDTO.getStaffId().equals(govStaffRoleResultDTO.getStaffId())){
staffGridListDTO.setRoleName(govStaffRoleResultDTO.getRoleName()); staffGridListDTO.setRoleName(govStaffRoleResultDTO.getRoleName());
} }
break;
} }
} }
break;
} }
return new Result<List<StaffGridListDTO>>().ok(staffGridListDTOS); return new Result<List<StaffGridListDTO>>().ok(staffGridListDTOS);
} }

Loading…
Cancel
Save