ElCourseChapterQu.java 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. package com.zd.exam.domain;
  2. import javax.validation.constraints.NotNull;
  3. import com.zd.model.valid.ValidGroup;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.zd.model.annotation.Excel;
  7. import io.swagger.annotations.ApiModel;
  8. import io.swagger.annotations.ApiModelProperty;
  9. import com.zd.model.entity.BaseEntity;
  10. import org.hibernate.validator.constraints.Length;
  11. import java.util.List;
  12. /**
  13. * 章节考核自选考题对象 el_course_chapter_qu
  14. *
  15. * @author liubo
  16. * @date 2022-01-05
  17. */
  18. @ApiModel("章节考核自选考题")
  19. public class ElCourseChapterQu extends BaseEntity {
  20. private static final long serialVersionUID = 1L;
  21. /**
  22. * ID
  23. */
  24. @ApiModelProperty(value = "${comment}")
  25. private Long id;
  26. /**
  27. * 学习章节ID
  28. */
  29. @ApiModelProperty(value = "学习章节ID")
  30. private Long courseChapterId;
  31. /**
  32. * 题目ID
  33. */
  34. @Excel(name = "题目ID")
  35. @NotNull(groups = ValidGroup.Crud.Create.class, message = "题目ID不能为空")
  36. @ApiModelProperty(value = "题目ID")
  37. private Long quId;
  38. /**
  39. * 题目类型
  40. */
  41. @Excel(name = "题目类型")
  42. @NotNull(groups = ValidGroup.Crud.Create.class, message = "题目类型不能为空")
  43. @ApiModelProperty(value = "题目类型")
  44. private Integer quType;
  45. /**
  46. * 是否已答(0 未答,1 已答)
  47. */
  48. @Excel(name = "是否已答(0 未答,1 已答)")
  49. @NotNull(groups = ValidGroup.Crud.Create.class, message = "是否已答(0 未答,1 已答)不能为空")
  50. @ApiModelProperty(value = "是否已答(0 未答,1 已答)")
  51. private Integer answered;
  52. /**
  53. * 主观答案
  54. */
  55. @Excel(name = "主观答案")
  56. @Length(message = "主观答案长度不能超过5000")
  57. @ApiModelProperty(value = "主观答案")
  58. private String answer;
  59. /**
  60. * 问题排序
  61. */
  62. @Excel(name = "问题排序")
  63. @NotNull(groups = ValidGroup.Crud.Create.class, message = "问题排序不能为空")
  64. @ApiModelProperty(value = "问题排序")
  65. private Integer sort;
  66. /**
  67. * 单题分分值
  68. */
  69. @Excel(name = "单题分分值")
  70. @NotNull(groups = ValidGroup.Crud.Create.class, message = "单题分分值不能为空")
  71. @ApiModelProperty(value = "单题分分值")
  72. private Integer score;
  73. /**
  74. * 实际得分(主观题)
  75. */
  76. @Excel(name = "实际得分(主观题)")
  77. @ApiModelProperty(value = "实际得分(主观题)")
  78. private Integer actualScore;
  79. /**
  80. * 是否答对(0 错 ,1 对)
  81. */
  82. @Excel(name = "是否答对(0 错 ,1 对)")
  83. @NotNull(groups = ValidGroup.Crud.Create.class, message = "是否答对(0 错 ,1 对)不能为空")
  84. @ApiModelProperty(value = "是否答对(0 错 ,1 对)")
  85. private Integer isRight;
  86. private String content;
  87. private String analysis;
  88. /**
  89. * 选项集合
  90. */
  91. private List<ElCourseChapterQuAnswer> chapterQuAnswerList;
  92. public void setId(Long id) {
  93. this.id = id;
  94. }
  95. public Long getId() {
  96. return id;
  97. }
  98. public void setCourseChapterId(Long courseChapterId) {
  99. this.courseChapterId = courseChapterId;
  100. }
  101. public Long getCourseChapterId() {
  102. return courseChapterId;
  103. }
  104. public void setQuId(Long quId) {
  105. this.quId = quId;
  106. }
  107. public Long getQuId() {
  108. return quId;
  109. }
  110. public Integer getQuType() {
  111. return quType;
  112. }
  113. public void setQuType(Integer quType) {
  114. this.quType = quType;
  115. }
  116. public void setAnswered(Integer answered) {
  117. this.answered = answered;
  118. }
  119. public Integer getAnswered() {
  120. return answered;
  121. }
  122. public void setAnswer(String answer) {
  123. this.answer = answer;
  124. }
  125. public String getAnswer() {
  126. return answer;
  127. }
  128. public Integer getSort() {
  129. return sort;
  130. }
  131. public void setSort(Integer sort) {
  132. this.sort = sort;
  133. }
  134. public Integer getScore() {
  135. return score;
  136. }
  137. public void setScore(Integer score) {
  138. this.score = score;
  139. }
  140. public Integer getActualScore() {
  141. return actualScore;
  142. }
  143. public void setActualScore(Integer actualScore) {
  144. this.actualScore = actualScore;
  145. }
  146. public void setIsRight(Integer isRight) {
  147. this.isRight = isRight;
  148. }
  149. public Integer getIsRight() {
  150. return isRight;
  151. }
  152. public List<ElCourseChapterQuAnswer> getChapterQuAnswerList() {
  153. return chapterQuAnswerList;
  154. }
  155. public void setChapterQuAnswerList(List<ElCourseChapterQuAnswer> chapterQuAnswerList) {
  156. this.chapterQuAnswerList = chapterQuAnswerList;
  157. }
  158. public String getContent() {
  159. return content;
  160. }
  161. public void setContent(String content) {
  162. this.content = content;
  163. }
  164. public String getAnalysis() {
  165. return analysis;
  166. }
  167. public void setAnalysis(String analysis) {
  168. this.analysis = analysis;
  169. }
  170. }