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.
|
|
|
package com.engine.organization.wrapper;
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
import com.engine.organization.entity.department.param.DeptSearchParam;
|
|
|
|
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;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 列表数据展示
|
|
|
|
*
|
|
|
|
* @param param
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public Map<String, Object> listPage(DeptSearchParam param) {
|
|
|
|
return getDepartmentService(user).listPage(param);
|
|
|
|
}
|
|
|
|
}
|