fuliqi
2024-07-05 3179257af77acbc229fe873de7495e2d3f8dfb6e
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.ycl.jxkg.domain.vo.admin.exam;
 
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
 
import java.util.List;
 
/**
 * @author:xp
 * @date:2024/7/2 14:05
 */
@Data
public class QuestionExportData {
 
    @ExcelIgnore
    private Integer id;
 
    @ExcelIgnore
    private String content;
 
    @ExcelIgnore
    private List<String> subjectList;
 
    @ExcelProperty(value = "题型")
    private String questionType;
 
    @ExcelProperty(value = "课目")
    @ColumnWidth(30)
    private String subject;
 
    @ExcelProperty(value = "题干")
    @ColumnWidth(40)
    private String title;
 
    @ExcelProperty(value = "选项A")
    @ColumnWidth(40)
    private String optionA;
 
    @ColumnWidth(40)
    @ExcelProperty(value = "选项B")
    private String optionB;
 
    @ColumnWidth(40)
    @ExcelProperty(value = "选项C")
    private String optionC;
 
    @ColumnWidth(40)
    @ExcelProperty(value = "选项D")
    private String optionD;
 
    @ColumnWidth(120)
    @ExcelProperty(value = "解析")
    private String analyze;
 
    @ColumnWidth(10)
    @ExcelProperty(value = "答案")
    private String answer;
}