package cn.ksource.web.facade.cfgcate;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import cn.ksource.core.page.PageInfo;
|
@SuppressWarnings("rawtypes")
|
public interface CfgcateFacade {
|
/**
|
* 获取配置分类树
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
List getCfgcateTree(Map<String, String> params);
|
|
/**
|
* 获取配置分类
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
PageInfo getCfgcateData(PageInfo pageInfo,Map<String, String> params);
|
/**
|
* 获取配置分类数量
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
Integer getCfgcateCount(Map<String, String> params);
|
|
/**
|
* 根据id获取配置分类
|
* @param id
|
* @return
|
* @author chenlong
|
*/
|
Map getCfgcateById(String id);
|
|
/**
|
* 新增/修改配置分类
|
* @param params
|
* @author chenlong
|
* @return TODO
|
*/
|
Map saveCfgcate(Map<String, String> params);
|
/**
|
* 检测分类名称
|
* @param name
|
* @param id
|
* @return
|
* @author chenlong
|
*/
|
int checkCateName(String name, String id);
|
|
/**
|
* 检测分类编号
|
* @param code
|
* @param id
|
* @param lv TODO
|
* @return
|
* @author chenlong
|
*/
|
int checkCateCode(String code, String id, String lv);
|
|
/**
|
* 获取配置分类分组
|
* @param pageInfo
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
PageInfo getCateGroupData(PageInfo pageInfo, Map<String, String> params);
|
|
/**
|
* 获取配置分类分组数量
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
Integer getCateGroupCount(Map<String, String> params);
|
|
/**
|
* 通过id获取分组
|
* @param id
|
* @return
|
* @author chenlong
|
*/
|
Map getGroupById(String id);
|
/**
|
* 新增,修改分组
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
void saveGroup(Map<String, String> params);
|
|
/**
|
* 检测分组名称
|
* @param id
|
* @param group_name
|
* @param linkId
|
* @return
|
* @author chenlong
|
*/
|
int checkGroupName(String id, String group_name, String linkId);
|
|
/**
|
* 启用,禁用分组
|
* @author chenlong
|
* @param id
|
* @param flag
|
*/
|
void delGroup(Map params);
|
|
/**
|
* 根据关联id查询分组
|
* @author chenlong
|
* @return
|
*/
|
List<Map> getGroupListByLinkId(Map<String,String> params);
|
|
/**
|
* 属性列表
|
* @author chenlong
|
* @param pageInfo
|
* @param params
|
* @return
|
*/
|
PageInfo getPropData(PageInfo pageInfo, Map<String, String> params);
|
|
/**
|
* 属性列表数量
|
* @author chenlong
|
* @param params
|
* @return
|
*/
|
Integer getPropCount(Map<String, String> params);
|
|
/**
|
* 通过id获取自定义属性
|
* @author chenlong
|
* @param id
|
* @return
|
*/
|
Map getPropById(String id);
|
|
/**
|
* 检测属性编码
|
* @author chenlong
|
* @param groupId
|
* @param columncode
|
* @return
|
*/
|
int checkPropCode(String id, String groupId, String columncode);
|
|
/**
|
* 保存自定义属性
|
* @author chenlong
|
* @param params
|
*/
|
void saveProp(Map<String, String> params);
|
|
/**
|
* 删除属性
|
* @author chenlong
|
* @param params
|
*/
|
void delProp(Map params);
|
|
/**
|
* 获取自定义属性选择项
|
* @author chenlong
|
* @param pageInfo
|
* @param params
|
* @return
|
*/
|
PageInfo getPropSelData(PageInfo pageInfo, Map<String, String> params);
|
|
/**
|
* 获取自定义属性选择项数量
|
* @author chenlong
|
* @param params
|
* @return
|
*/
|
Integer getPropSelCount(Map<String, String> params);
|
|
/**
|
* 通过id获取选择项
|
* @author chenlong
|
* @param id
|
* @return
|
*/
|
Map getPropSelById(String id);
|
|
/**
|
* 保存选择项
|
* @author chenlong
|
* @param params
|
*/
|
void savePropSel(Map<String, String> params);
|
|
/**
|
* 禁用,启用属性选择项
|
* @author chenlong
|
* @param params
|
*/
|
void delPropSel(Map params);
|
|
/**
|
* 修改选择项默认项
|
* @author chenlong
|
* @param sid
|
* @param sval
|
* @param pid
|
*/
|
void setSelDef(String sid, String sval, String pid);
|
|
/**
|
* 获取属性模板
|
* @author chenlong
|
* @param linkId
|
* @param busId
|
* @return
|
*/
|
public List<Map> getPropTemplate(String linkId ,String busId );
|
|
/**
|
* 启用/禁用分类
|
* @param params
|
* @author chenlong
|
*/
|
void delCfgcate(Map params);
|
|
/**
|
* 检测分类是否可以禁用
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
Integer checkDelGroup(Map<String,String> params);
|
|
/**
|
* 获取配置分类列表
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
public List getCfgcateList(Map<String, String> params);
|
|
/**
|
* 检测分组是否可以禁用
|
* @param params
|
* @return
|
* @author chenlong
|
*/
|
Integer checkCateFlag(Map<String,String> params);
|
|
}
|