Browse Source

Merge branch 'dev_staff_info' into develop

master
sunyuchao 4 years ago
parent
commit
490750bb43
  1. 2
      epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/epmetuser/result/ListStaffResultDTO.java
  2. 5
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java

2
epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/epmetuser/result/ListStaffResultDTO.java

@ -13,6 +13,8 @@ import java.util.List;
public class ListStaffResultDTO implements Serializable {
private static final long serialVersionUID = 7129564173128153335L;
//工作人员所属组织Id
private String agencyId = "";
//工作人员用户id
private String staffId = "";
//工作人员姓名

5
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java

@ -460,7 +460,10 @@ public class EpmetUserServiceImpl implements EpmetUserService {
List<StaffOrgNameResultDTO> orgList = govOrgService.getStaffOrgName(staffIdList);
//3.封装数据并返回
resultList.forEach(re -> orgList.stream().filter(l -> re.getStaffId().equals(l.getStaffId())).forEach(s -> re.setOrgName(s.getOrgName())));
resultList.forEach(re -> orgList.stream().filter(l -> re.getStaffId().equals(l.getStaffId())).forEach(s -> {
re.setAgencyId(s.getAgencyId());
re.setOrgName(s.getOrgName());
}));
return resultList;
}

Loading…
Cancel
Save