weaver-hrm-organization/src/com/engine/organization/wrapper/DepartmentWrapper.java

132 lines
3.3 KiB
Java
Raw Normal View History

2022-05-20 15:00:03 +08:00
package com.engine.organization.wrapper;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
2022-05-23 17:46:37 +08:00
import com.engine.organization.entity.department.param.DeptSearchParam;
2022-05-20 15:00:03 +08:00
import com.engine.organization.entity.department.param.QuerySingleDeptListParam;
2022-05-27 18:05:15 +08:00
import com.engine.organization.entity.department.vo.SingleDeptTreeVO;
2022-06-02 09:58:16 +08:00
import com.engine.organization.entity.searchtree.SearchTreeParams;
2022-05-20 15:00:03 +08:00
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 weaver.hrm.User;
2022-05-27 18:05:15 +08:00
import java.util.Collection;
2022-05-23 17:46:37 +08:00
import java.util.Map;
2022-05-20 15:00:03 +08:00
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/5/20
* @Version V1.0
**/
public class DepartmentWrapper extends Service {
public DepartmentService getDepartmentService(User user) {
2022-05-23 17:46:37 +08:00
return ServiceUtil.getService(DepartmentServiceImpl.class, user);
2022-05-20 15:00:03 +08:00
}
public ReturnResult getDeptListByPid(QuerySingleDeptListParam param) {
PageInfo<SingleDeptTreeVO> singleDeptTreeVOS = getDepartmentService(user).getDeptListByPid(param);
return ReturnResult.successed(singleDeptTreeVOS);
}
2022-06-02 09:58:16 +08:00
/**
* 左侧树
*
* @param params
* @return
*/
public Map<String, Object> getSearchTree(SearchTreeParams params) {
return getDepartmentService(user).getSearchTree(params);
}
2022-05-23 17:46:37 +08:00
/**
* 列表数据展示
*
* @param param
* @return
*/
public Map<String, Object> listPage(DeptSearchParam param) {
return getDepartmentService(user).listPage(param);
}
2022-05-23 19:16:31 +08:00
/**
* 获取保存表单
*
* @return
*/
public Map<String, Object> getSaveForm() {
return getDepartmentService(user).getSaveForm();
}
2022-05-27 18:05:15 +08:00
/**
* 保存部门基础信息
*
* @param params
* @return
*/
public int saveBaseForm(DeptSearchParam params) {
return getDepartmentService(user).saveBaseForm(params);
}
/**
* 更新禁用标记
*
* @param params
*/
public int updateForbiddenTagById(DeptSearchParam params) {
return getDepartmentService(user).updateForbiddenTagById(params);
}
/**
* 更新分部主表拓展表明细表
*
* @param params
* @return
*/
public int updateForm(Map<String, Object> params) {
return getDepartmentService(user).updateForm(params);
}
/**
* 根据ID批量删除
*
* @param ids
*/
public int deleteByIds(Collection<Long> ids) {
return getDepartmentService(user).deleteByIds(ids);
}
/**
* 获取搜索条件
*
* @param params
* @return
*/
public Map<String, Object> getSearchCondition(Map<String, Object> params) {
return getDepartmentService(user).getSearchCondition(params);
}
/**
* 获取列表页面按钮信息
*
* @return
*/
public Map<String, Object> getHasRight() {
return getDepartmentService(user).getHasRight();
}
/**
* 获取基本信息表单
*
* @param params
* @return
*/
public Map<String, Object> getDeptBaseForm(Map<String, Object> params) {
return getDepartmentService(user).getDeptBaseForm(params);
}
2022-05-20 15:00:03 +08:00
}