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.ReplyTemplateEntity;
|
import org.springframework.data.repository.query.Param;
|
|
import java.util.List;
|
|
public interface ReplyTemplateMapper extends BaseMapper<ReplyTemplateEntity>
|
{
|
|
/**
|
* 获取模板列表
|
* @return
|
*/
|
public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state,
|
@Param("Name") String Name,
|
@Param("ids") List<String> ids,
|
@Param("userId") String userId);
|
|
|
/**
|
* 获取详情
|
* @param Id
|
* @return
|
*/
|
public ReplyTemplateEntity selectConfigData(String Id);
|
|
/**
|
* 新增模板
|
* @param entity
|
* @return
|
*/
|
public int insertConfig(ReplyTemplateEntity entity);
|
|
/**
|
* 更新模板
|
* @param entity
|
* @return
|
*/
|
public int updateConfig(ReplyTemplateEntity entity);
|
|
/**
|
* 删除模板
|
* @param Id
|
* @return
|
*/
|
public int deleteConfigById(String Id);
|
|
/**
|
* 获取数量
|
* @return
|
*/
|
public int countNum(@Param("Name") String Name,@Param("ids") List<String> ids);
|
|
|
|
|
}
|