Commit b431904b by 墨竹

fix:部门查询判断空

parent 42d3d1fb
...@@ -182,6 +182,9 @@ public class DepartmentServiceImpl implements DepartmentService { ...@@ -182,6 +182,9 @@ public class DepartmentServiceImpl implements DepartmentService {
@Override @Override
public List<DepartmentDTO> listByIds(List<String> departmentIds) { public List<DepartmentDTO> listByIds(List<String> departmentIds) {
if (CollectionUtils.isEmpty(departmentIds)) {
return null;
}
return EntityUtil.changeEntityListByJSON(DepartmentDTO.class, mapper.listByIds(departmentIds)); return EntityUtil.changeEntityListByJSON(DepartmentDTO.class, mapper.listByIds(departmentIds));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment