sunyuchao 4 years ago
parent
commit
36d8c53ffa
  1. 2
      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-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java

@ -285,7 +285,7 @@ public class EpmetUserServiceImpl implements EpmetUserService {
//2-2.查询业务数据 //2-2.查询业务数据
resultList = staffPatrolRecordDao.selectStaffPatrolList(formDTO); resultList = staffPatrolRecordDao.selectStaffPatrolList(formDTO);
//2-3.查询人员基本信息【之前sql关联人员表查性别、姓名效率低 所以分开查) //2-3.查询人员基本信息【之前sql关联人员表查性别、姓名效率低 所以分开查)
if (!CollectionUtils.isEmpty(staffList)) { if (CollectionUtils.isEmpty(staffList)) {
List<String> staffIdList = resultList.stream().map(StaffListResultDTO::getStaffId).collect(Collectors.toList()); List<String> staffIdList = resultList.stream().map(StaffListResultDTO::getStaffId).collect(Collectors.toList());
staffList = customerStaffDao.selectByStaffIds(staffIdList, null); staffList = customerStaffDao.selectByStaffIds(staffIdList, null);
} }

Loading…
Cancel
Save