Commit b37910bf by liushuangwu

uprsetAllEmployee

1 parent 51c6d599
......@@ -80,6 +80,15 @@ public class EmployeeService {
dtos.forEach(it -> {
Employee currentEmployee = employeeMap.get(it.getUserId());
if (currentEmployee != null) {
SystemFieldsDTO systemFieldsDTO = it.getSystemFields();
if (!currentEmployee.getDepartmentId().equals(systemFieldsDTO.getDepartmentId())
|| !currentEmployee.getName().equals(systemFieldsDTO.getName())
|| !currentEmployee.getMobile().equals(systemFieldsDTO.getMobile())) {
currentEmployee.setDepartmentId(systemFieldsDTO.getDepartmentId());
currentEmployee.setName(systemFieldsDTO.getName());
currentEmployee.setMobile(systemFieldsDTO.getMobile());
this.update(currentEmployee);
}
return;
}
Employee employee = new Employee();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!