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.
weaver-hrm-organization/src/com/engine/organization/wrapper/DepartmentWrapper.java

202 lines
4.8 KiB
Java

3 years ago
package com.engine.organization.wrapper;
3 years ago
import com.api.browser.bean.SearchConditionGroup;
3 years ago
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
import com.engine.organization.entity.department.param.*;
3 years ago
import com.engine.organization.entity.department.vo.SingleDeptTreeVO;
import com.engine.organization.entity.job.vo.SingleJobTreeVO;
import com.engine.organization.entity.searchtree.SearchTreeParams;
3 years ago
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;
3 years ago
import java.util.Collection;
3 years ago
import java.util.List;
import java.util.Map;
3 years ago
/**
* @Author weaver_cl
3 years ago
* @description:
3 years ago
* @Date 2022/5/20
* @Version V1.0
**/
public class DepartmentWrapper extends Service {
public DepartmentService getDepartmentService(User user) {
return ServiceUtil.getService(DepartmentServiceImpl.class, user);
3 years ago
}
public ReturnResult getDeptListByPid(QuerySingleDeptListParam param) {
PageInfo<SingleDeptTreeVO> singleDeptTreeVOS = getDepartmentService(user).getDeptListByPid(param);
return ReturnResult.successed(singleDeptTreeVOS);
}
3 years ago
/**
*
*
* @param param
* @return
*/
public PageInfo<SingleJobTreeVO> getJobListByPid(QuerySingleDeptListParam param) {
return getDepartmentService(user).getJobListByPid(param);
}
/**
*
*
* @param params
* @return
*/
public Map<String, Object> getSearchTree(SearchTreeParams params) {
return getDepartmentService(user).getSearchTree(params);
}
3 years ago
/**
*
*
* @param param
* @return
*/
public Map<String, Object> listPage(DeptSearchParam param) {
return getDepartmentService(user).listPage(param);
}
/**
*
*
* @return
*/
public Map<String, Object> getSaveForm() {
return getDepartmentService(user).getSaveForm();
}
3 years ago
/**
*
*
* @param params
* @return
*/
public Long saveBaseForm(Map<String, Object> params) {
3 years ago
return getDepartmentService(user).saveBaseForm(params);
}
/**
*
*
* @param params
*/
public int updateForbiddenTagById(DeptSearchParam params) {
return getDepartmentService(user).updateForbiddenTagById(params);
}
/**
*
*
* @param params
* @return
*/
public Long updateForm(Map<String, Object> params) {
3 years ago
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);
}
3 years ago
/**
*
*
* @return
*/
public List<SearchConditionGroup> getCopyForm() {
return getDepartmentService(user).getCopyForm();
}
/**
*
*
* @param copyParam
* @return
*/
public int copyDepartment(DeptCopyParam copyParam) {
return getDepartmentService(user).copyDepartment(copyParam);
}
/**
*
*
* @param id
* @return
*/
public List<SearchConditionGroup> getMergeForm(Long id) {
return getDepartmentService(user).getMergeForm(id);
}
/**
*
*
* @param mergeParam
* @return
*/
public int mergeDepartment(DepartmentMergeParam mergeParam) {
return getDepartmentService(user).mergeDepartment(mergeParam);
}
3 years ago
/**
*
*
* @return
*/
public List<SearchConditionGroup> getMoveForm() {
return getDepartmentService(user).getMoveForm();
}
/**
*
*
* @param moveParam
* @return
*/
public int moveDepartment(DepartmentMoveParam moveParam) {
return getDepartmentService(user).moveDepartment(moveParam);
}
3 years ago
}