优化 查询当前员工关联的岗位信息和附属机构信息接口

This commit is contained in:
thinkgem
2025-01-28 11:46:57 +08:00
parent 2aa8472072
commit fa8d88285f

View File

@@ -106,6 +106,9 @@ public class EmployeeServiceSupport extends CrudService<EmployeeDao, Employee>
*/
@Override
public List<EmployeePost> findEmployeePostList(Employee employee){
if (StringUtils.isBlank(employee.getEmpCode())){
return ListUtils.newArrayList();
}
EmployeePost employeePost = new EmployeePost();
employeePost.setEmpCode(employee.getEmpCode());
if (employee.getDataMap() != null) {
@@ -122,6 +125,9 @@ public class EmployeeServiceSupport extends CrudService<EmployeeDao, Employee>
*/
@Override
public List<EmployeeOffice> findEmployeeOfficeList(Employee employee){
if (StringUtils.isBlank(employee.getEmpCode())){
return ListUtils.newArrayList();
}
EmployeeOffice employeeOffice = new EmployeeOffice();
employeeOffice.setEmpCode(employee.getEmpCode());
return employeeOfficeDao.findList(employeeOffice);