TBankSubject.java 2.84 KB
Newer Older
1 2 3
package com.zehong.system.domain;

import java.util.Date;
吴卿华's avatar
吴卿华 committed
4 5

import com.alibaba.excel.annotation.ExcelProperty;
6 7 8 9 10 11 12 13
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;

/**
 * 题库题目对象 t_bank_subject
吴卿华's avatar
吴卿华 committed
14
 *
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
 * @author zehong
 * @date 2022-12-15
 */
public class TBankSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目id */
    private Long subjectId;

    /** 所属题库id */
    @Excel(name = "所属题库id")
    private Long bankId;

    /** 题目内容 */
吴卿华's avatar
吴卿华 committed
30
    @ExcelProperty(value = "题干(必填)")
31 32 33 34 35 36 37
    private String topicTitle;

    /** 题目选项(json) */
    @Excel(name = "题目选项", readConverterExp = "j=son")
    private String topicOption;

    /** 答案 */
吴卿华's avatar
吴卿华 committed
38
    @Excel(name = "正确答案(必填)")
吴卿华's avatar
吴卿华 committed
39
    private String answer;
40 41 42 43 44 45

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datetime;

吴卿华's avatar
吴卿华 committed
46 47 48 49 50 51 52 53 54 55 56
    /** 题目类型  1单选  2多选   3判断 */
    private Integer topicType;

    public Integer getTopicType() {
        return topicType;
    }

    public void setTopicType(Integer topicType) {
        this.topicType = topicType;
    }

吴卿华's avatar
吴卿华 committed
57
    public void setSubjectId(Long subjectId)
58 59 60 61
    {
        this.subjectId = subjectId;
    }

吴卿华's avatar
吴卿华 committed
62
    public Long getSubjectId()
63 64 65
    {
        return subjectId;
    }
吴卿华's avatar
吴卿华 committed
66
    public void setBankId(Long bankId)
67 68 69 70
    {
        this.bankId = bankId;
    }

吴卿华's avatar
吴卿华 committed
71
    public Long getBankId()
72 73 74
    {
        return bankId;
    }
吴卿华's avatar
吴卿华 committed
75
    public void setTopicTitle(String topicTitle)
76 77 78 79
    {
        this.topicTitle = topicTitle;
    }

吴卿华's avatar
吴卿华 committed
80
    public String getTopicTitle()
81 82 83
    {
        return topicTitle;
    }
吴卿华's avatar
吴卿华 committed
84
    public void setTopicOption(String topicOption)
85 86 87 88
    {
        this.topicOption = topicOption;
    }

吴卿华's avatar
吴卿华 committed
89
    public String getTopicOption()
90 91 92
    {
        return topicOption;
    }
吴卿华's avatar
吴卿华 committed
93 94 95

    public static long getSerialVersionUID() {
        return serialVersionUID;
96 97
    }

吴卿华's avatar
吴卿华 committed
98
    public String getAnswer() {
99 100
        return answer;
    }
吴卿华's avatar
吴卿华 committed
101

吴卿华's avatar
吴卿华 committed
102
    public void setAnswer(String answer) {
吴卿华's avatar
吴卿华 committed
103 104 105 106
        this.answer = answer;
    }

    public void setDatetime(Date datetime)
107 108 109 110
    {
        this.datetime = datetime;
    }

吴卿华's avatar
吴卿华 committed
111
    public Date getDatetime()
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
    {
        return datetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subjectId", getSubjectId())
            .append("bankId", getBankId())
            .append("topicTitle", getTopicTitle())
            .append("topicOption", getTopicOption())
            .append("answer", getAnswer())
            .append("datetime", getDatetime())
            .toString();
    }
}