Commit 15cb2d36 by 谢海旭

v5.7.0版本 飞行督导

1 parent c5627dda
......@@ -74,6 +74,17 @@ public class SupervisorEmployeeTrainingInfoService {
return new ArrayList<>();
}
// 如果有驻店手机号参数,则过滤驻店员工手机号
if (request.getStoreManagerPhone() != null && !request.getStoreManagerPhone().isEmpty()) {
phoneList = phoneList.stream().filter(phone -> phone.equals(request.getStoreManagerPhone())).collect(Collectors.toList());
}
// 判断空集合
if (CollectionUtils.isEmpty(phoneList)) {
log.warn("督导下员工手机号为空,supervisorPhone={}", request.getSupervisorPhone());
return new ArrayList<>();
}
List<BeiSenEmployeeListResonseDTO> beiSenEmployeeList = supervisorLearningCenterService.listEmployeeInfoByStaffPhone(phoneList);
List<Integer> beiSenUserIdList = beiSenEmployeeList.stream().map(beiSenEmployeeListResonseDTO -> beiSenEmployeeListResonseDTO.getUserID()).collect(Collectors.toList());
......
......@@ -27,6 +27,7 @@ public class SupervisorEmployeeTrainingInfoServiceTest extends BaseServiceTest {
EmployeeTrainingInfoRequestDTO request = new EmployeeTrainingInfoRequestDTO();
request.setStartDate("2021-03-12");
request.setEndDate("2026-03-12");
request.setStoreManagerPhone("13132112126");
request.setSortField(1);
request.setSortOrder(1);
List<EmployeeTrainingInfoDTO> trainingInfo = supervisorEmployeeTrainingInfoService.getAllEmployeeTrainingInfo(request);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!