package com.dg.core.db.gen.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.dg.core.db.gen.entity.KeywordEntity;
|
import com.dg.core.db.gen.entity.SysUser;
|
import org.springframework.data.repository.query.Param;
|
|
import java.util.List;
|
|
public interface KeywordMapper extends BaseMapper<KeywordEntity>
|
{
|
/**
|
* 查询关键词列表
|
* @return
|
*/
|
public List<KeywordEntity> selectConfigList(IPage<KeywordEntity> page, Integer state);
|
|
/**
|
* 查询详情
|
* @return
|
*/
|
public KeywordEntity selectConfigData(@Param("Id") String Id,
|
@Param("name") String name);
|
|
|
/**
|
* 添加关键词
|
* @return
|
*/
|
public int insertConfig(KeywordEntity entity);
|
|
/**
|
* 编辑关键词
|
* @return
|
*/
|
public int updateConfig(KeywordEntity entity);
|
|
/**
|
* 删除关键词
|
* @param Id
|
* @return
|
*/
|
public int deleteConfigById(String Id);
|
|
/**
|
* 统计数量
|
* @param
|
* @return
|
*/
|
public int countNum();
|
|
/**
|
* 更具名字查询关键词列表(不分页)
|
* @return
|
*/
|
List<KeywordEntity> selectByName(@Param("keyWord") String keyWord);
|
|
|
|
}
|