package com.ruoyi.satisfaction.domain.row;
import lombok.Data;
import java.util.List;
/**
* 满意度统计取「满意度分类 / 模板问题」时的查询条件。
*
* 为什么单独定义:原实现的入参复用了 smartor 的实体({@code IvrLibaScriptAssort} /
* {@code SvyLibScriptCategory} / {@code IvrLibaTemplateScript} / {@code SvyLibTemplateScriptVO}),
* 这些实体不能搬进本模块。满意度实际只用到下面这几个条件,故收敛为一个查询对象。
*
* 各条件与原来逐字对应:
*
* - {@code orgid} —— 按机构过滤分类({@code and orgid = #{orgid}});
* - {@code type} —— 按分类类型过滤,原实现是 {@code like concat('%', type, '%')},
* 满意度传 {@code "myd"};
* - {@code scriptAssortids} —— 按语音分类 id 取问题({@code script_assortid in (...)});
* - {@code scriptCategoryids} —— 按问卷分类 id 取问题({@code categoryid in (...)});
* - {@code dimensionList} —— 按维度取问题。原实现:非空时 {@code dimension in (...)},
* 为空时语音侧拼 {@code dimension IS NOT NULL}、问卷侧不拼该条件(口径不同,必须保留)。
*
*/
@Data
public class SatisfactionScriptQuery {
/**
* 机构 id
*/
private String orgid;
/**
* 分类类型(满意度固定传 "myd")
*/
private String type;
/**
* 语音分类 id 列表({@code ivr_liba_script_assort.id})
*/
private List scriptAssortids;
/**
* 问卷分类 id 列表({@code svy_lib_script_category.id})
*/
private List scriptCategoryids;
/**
* 维度列表
*/
private List dimensionList;
}