2024-11-15getDepartmentById方法publicDepartmentgetDepartmentById(StringdepartmentId){if(StringUtils.isEmpty(departmentId)){returnnull;}Exampleexample=newExample(Department.class);Example.Criteriacriteria=example.createCriteria();criteria.andEqualTo("departmentId"