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

112 lines
2.4 KiB
Java
Raw Normal View History

2022-05-11 15:37:17 +08:00
package com.engine.organization.wrapper;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
2022-05-11 18:27:52 +08:00
import com.engine.organization.entity.scheme.param.GradeSearchParam;
import com.engine.organization.service.GradeService;
import com.engine.organization.service.impl.GradeServiceImpl;
2022-05-11 15:37:17 +08:00
import org.apache.ibatis.annotations.Param;
import weaver.hrm.User;
import java.util.Collection;
import java.util.Map;
/**
2022-06-14 11:07:48 +08:00
* @description:
2022-05-11 15:37:17 +08:00
* @author:dxfeng
2022-05-11 18:27:52 +08:00
* @createTime: 2022/05/11
2022-05-11 15:37:17 +08:00
* @version: 1.0
*/
public class GradeWrapper extends Service {
2022-05-11 18:27:52 +08:00
private GradeService getGradeService(User user) {
return ServiceUtil.getService(GradeServiceImpl.class, user);
2022-05-11 15:37:17 +08:00
}
/**
2022-05-11 18:27:52 +08:00
* 职级列表
2022-05-11 15:37:17 +08:00
*
* @param params
* @return
*/
public Map<String, Object> listPage(Map<String, Object> params) {
2022-05-11 18:27:52 +08:00
return getGradeService(user).listPage(params);
2022-05-11 15:37:17 +08:00
}
/**
2022-05-11 18:27:52 +08:00
* 新增职级
2022-05-11 15:37:17 +08:00
*
* @param param
* @return
*/
2022-05-11 18:27:52 +08:00
public int saveGrade(GradeSearchParam param) {
return getGradeService(user).saveGrade(param);
2022-05-11 15:37:17 +08:00
}
/**
2022-05-11 18:27:52 +08:00
* 更新职级
2022-05-11 15:37:17 +08:00
*
* @param param
* @return
*/
2022-05-11 18:27:52 +08:00
public int updateGrade(GradeSearchParam param) {
return getGradeService(user).updateGrade(param);
2022-05-11 15:37:17 +08:00
}
/**
* 更新禁用标记
*
* @param params
*/
2022-05-11 18:27:52 +08:00
public int updateForbiddenTagById(GradeSearchParam params) {
return getGradeService(user).updateForbiddenTagById(params);
2022-05-11 15:37:17 +08:00
}
/**
* 根据ID批量删除
*
* @param ids
*/
public int deleteByIds(@Param("ids") Collection<Long> ids) {
2022-05-11 18:27:52 +08:00
return getGradeService(user).deleteByIds(ids);
2022-05-11 15:37:17 +08:00
}
/**
* 获取搜索条件
*
* @param params
* @return
*/
public Map<String, Object> getSearchCondition(Map<String, Object> params) {
2022-05-11 18:27:52 +08:00
return getGradeService(user).getSearchCondition(params);
2022-05-11 15:37:17 +08:00
}
/**
* 获取新增表单
*
* @param params
* @return
*/
2022-05-11 18:27:52 +08:00
public Map<String, Object> getGradeForm(Map<String, Object> params) {
return getGradeService(user).getGradeForm(params);
2022-05-11 15:37:17 +08:00
}
/**
* 获取列表页面按钮信息
*
* @return
*/
2022-05-11 18:27:52 +08:00
public Map<String, Object> getHasRight() {
return getGradeService(user).getHasRight();
2022-05-11 15:37:17 +08:00
}
/**
* 获取列表tabs
*
* @return
*/
public Map<String, Object> getTabInfo() {
2022-05-11 18:27:52 +08:00
return getGradeService(user).getTabInfo();
2022-05-11 15:37:17 +08:00
}
}