package com.smartor.mapper;
|
|
import com.smartor.domain.IvrLibaTemplateTargetoption;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 模板指标选项库Mapper接口
|
*
|
* @author ruoyi
|
* @date 2023-12-23
|
*/
|
@Mapper
|
public interface IvrLibaTemplateTargetoptionMapper {
|
/**
|
* 查询模板指标选项库
|
*
|
* @param id 模板指标选项库主键
|
* @return 模板指标选项库
|
*/
|
public IvrLibaTemplateTargetoption selectIvrLibaTemplateTargetoptionById(Long id);
|
|
/**
|
* 查询模板指标选项库列表
|
*
|
* @param ivrLibaTemplateTargetoption 模板指标选项库
|
* @return 模板指标选项库集合
|
*/
|
public List<IvrLibaTemplateTargetoption> selectIvrLibaTemplateTargetoptionList(IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption);
|
|
/**
|
* 满意度统计:一次取回多个问题的选项分值(只取 scriptid、score 两列)
|
* <p>
|
* 原实现是每个问题查一次整行(40+ 列),而调用方只用到 score 算最高/最低分。
|
* scriptIds 传空时表示不加 scriptid 过滤(等价于原查询在 scriptid 为 null 时不拼该条件)。
|
*
|
* @param scriptIds 问题id集合,可为空
|
* @return 每行含 scriptid、score
|
*/
|
public List<Map<String, Object>> selectIvrLibaTargetoptionScores(@Param("scriptIds") List<Long> scriptIds);
|
|
/**
|
* 新增模板指标选项库
|
*
|
* @param ivrLibaTemplateTargetoption 模板指标选项库
|
* @return 结果
|
*/
|
public int insertIvrLibaTemplateTargetoption(IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption);
|
|
/**
|
* 修改模板指标选项库
|
*
|
* @param ivrLibaTemplateTargetoption 模板指标选项库
|
* @return 结果
|
*/
|
public int updateIvrLibaTemplateTargetoption(IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption);
|
|
public int updateDynamiccruxs(IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption);
|
|
/**
|
* 删除模板指标选项库
|
*
|
* @param id 模板指标选项库主键
|
* @return 结果
|
*/
|
public int deleteIvrLibaTemplateTargetoptionById(Long id);
|
|
/**
|
* 批量删除模板指标选项库
|
*
|
* @param ids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteIvrLibaTemplateTargetoptionByIds(Long[] ids);
|
}
|