You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
Java
30 lines
1.0 KiB
Java
3 years ago
|
package com.engine.organization.wrapper;
|
||
|
|
||
|
import com.engine.common.util.ServiceUtil;
|
||
|
import com.engine.core.impl.Service;
|
||
|
import com.engine.organization.entity.department.param.QuerySingleDeptListParam;
|
||
|
import com.engine.organization.service.DepartmentService;
|
||
|
import com.engine.organization.service.impl.DepartmentServiceImpl;
|
||
|
import com.engine.organization.util.page.PageInfo;
|
||
|
import com.engine.organization.util.response.ReturnResult;
|
||
|
import com.engine.organization.entity.department.vo.SingleDeptTreeVO;
|
||
|
import weaver.hrm.User;
|
||
|
|
||
|
/**
|
||
|
* @Author weaver_cl
|
||
|
* @Description: TODO
|
||
|
* @Date 2022/5/20
|
||
|
* @Version V1.0
|
||
|
**/
|
||
|
public class DepartmentWrapper extends Service {
|
||
|
|
||
|
public DepartmentService getDepartmentService(User user) {
|
||
|
return ServiceUtil.getService(DepartmentServiceImpl.class,user);
|
||
|
}
|
||
|
|
||
|
public ReturnResult getDeptListByPid(QuerySingleDeptListParam param) {
|
||
|
PageInfo<SingleDeptTreeVO> singleDeptTreeVOS = getDepartmentService(user).getDeptListByPid(param);
|
||
|
return ReturnResult.successed(singleDeptTreeVOS);
|
||
|
}
|
||
|
}
|