2022-05-17 13:34:00 +08:00
|
|
|
package com.engine.organization.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-05-17 16:36:53 +08:00
|
|
|
import com.engine.organization.entity.comp.param.CompSearchParam;
|
2022-05-17 13:34:00 +08:00
|
|
|
import com.engine.organization.service.CompService;
|
|
|
|
|
import com.engine.organization.service.impl.CompServiceImpl;
|
|
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
2022-05-18 09:59:34 +08:00
|
|
|
import java.util.Collection;
|
2022-05-17 13:34:00 +08:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description: TODO
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2022/05/16
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public class CompWrapper extends Service {
|
|
|
|
|
private CompService getCompService(User user) {
|
|
|
|
|
return ServiceUtil.getService(CompServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 列表
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-05-17 16:36:53 +08:00
|
|
|
public Map<String, Object> listPage(CompSearchParam params) {
|
2022-05-17 13:34:00 +08:00
|
|
|
return getCompService(user).listPage(params);
|
|
|
|
|
}
|
2022-05-18 09:59:34 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新禁用标记
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
*/
|
|
|
|
|
public int updateForbiddenTagById(CompSearchParam params) {
|
|
|
|
|
return getCompService(user).updateForbiddenTagById(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据ID批量删除
|
|
|
|
|
*
|
|
|
|
|
* @param ids
|
|
|
|
|
*/
|
|
|
|
|
public int deleteByIds(Collection<Long> ids) {
|
|
|
|
|
return getCompService(user).deleteByIds(ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取搜索条件
|
|
|
|
|
*
|
|
|
|
|
* @param params
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> getSearchCondition(Map<String, Object> params) {
|
|
|
|
|
return getCompService(user).getSearchCondition(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取列表页面按钮信息
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> getHasRight() {
|
|
|
|
|
return getCompService(user).getHasRight();
|
|
|
|
|
}
|
2022-05-17 13:34:00 +08:00
|
|
|
}
|