liusheng
2026-10-12 0c1f8c479065739f3c7a5126de8e667035d00b58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.ruoyi.satisfaction.domain.row;
 
import lombok.Data;
 
/**
 * 选项分值只读视图(只取 scriptid 与 score 两列)。
 * <p>
 * 用途:满意度明细统计里算每个问题的**最高分 / 最低分**。
 * 原实现对应
 * {@code IvrLibaTemplateTargetoptionMapper.selectIvrLibaTargetoptionScores} 与
 * {@code SvyLibTemplateTargetoptionMapper.selectSvyLibTargetoptionScores},
 * 两者列与语义完全一致(分别来自 {@code ivr_liba_template_targetoption} 与
 * {@code svy_lib_template_targetoption}),所以共用一个类。
 * <p>
 * ⚠️ {@code score} 用 {@code String} 承载:历史数据里存在
 * {@code 0}、{@code 0000000001} 这类脏值,原实现也是按字符串解析,
 * <b>不能</b>改成数字类型,否则解析行为会变。
 * <p>
 * ⚠️ 这是<b>只读</b>视图。
 */
@Data
public class SatisfactionOptionScoreRow {
 
    /**
     * 对应列 {@code scriptid}:问题 id(关联 {@code *_lib_template_script})
     */
    private Long scriptid;
 
    /**
     * 对应列 {@code score}:选项分值(字符串,保留脏值原样)
     */
    private String score;
}