LearnAnswer.java 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. package com.ruoyi.learn.domain;
  2. import org.apache.commons.lang3.builder.ToStringBuilder;
  3. import org.apache.commons.lang3.builder.ToStringStyle;
  4. import com.ruoyi.common.annotation.Excel;
  5. import com.ruoyi.common.core.domain.BaseEntity;
  6. /**
  7. * 答卷答案对象 learn_answer
  8. *
  9. * @author ruoyi
  10. * @date 2025-09-25
  11. */
  12. public class LearnAnswer extends BaseEntity
  13. {
  14. private static final long serialVersionUID = 1L;
  15. /** 答题id */
  16. private Long answerId;
  17. /** 答卷id */
  18. @Excel(name = "答卷id")
  19. private Long examineeId;
  20. /** 学生用户id加速 */
  21. @Excel(name = "学生用户id加速")
  22. private Long studentId;
  23. /** 题id */
  24. @Excel(name = "题id")
  25. private Long questionId;
  26. /** 题号 */
  27. @Excel(name = "题号")
  28. private Integer seq;
  29. /** 知识点 */
  30. @Excel(name = "知识点")
  31. private Long knowledgeId;
  32. /** 学生答案 */
  33. @Excel(name = "学生答案")
  34. private String answer;
  35. /** 批改答案 */
  36. @Excel(name = "批改答案")
  37. private String correct;
  38. /** 最长时间 */
  39. @Excel(name = "最长时间")
  40. private Long duration;
  41. /** 更新次数 */
  42. @Excel(name = "更新次数")
  43. private Long count;
  44. /** 状态 1 正确 */
  45. @Excel(name = "0 默认 1正确 2错误 3不会")
  46. private Long state;
  47. /** 评级 */
  48. @Excel(name = "评级")
  49. private String scoreLevel;
  50. /** 评分 */
  51. @Excel(name = "评分")
  52. private Long score;
  53. /** 得分率 */
  54. @Excel(name = "得分率")
  55. private Long scoreRate;
  56. public void setAnswerId(Long answerId)
  57. {
  58. this.answerId = answerId;
  59. }
  60. public Long getAnswerId()
  61. {
  62. return answerId;
  63. }
  64. public void setExamineeId(Long examineeId)
  65. {
  66. this.examineeId = examineeId;
  67. }
  68. public Long getExamineeId()
  69. {
  70. return examineeId;
  71. }
  72. public void setStudentId(Long studentId)
  73. {
  74. this.studentId = studentId;
  75. }
  76. public Long getStudentId()
  77. {
  78. return studentId;
  79. }
  80. public void setQuestionId(Long questionId)
  81. {
  82. this.questionId = questionId;
  83. }
  84. public Long getQuestionId()
  85. {
  86. return questionId;
  87. }
  88. public void setSeq(Integer seq)
  89. {
  90. this.seq = seq;
  91. }
  92. public Integer getSeq()
  93. {
  94. return seq;
  95. }
  96. public void setKnowledgeId(Long knowledgeId)
  97. {
  98. this.knowledgeId = knowledgeId;
  99. }
  100. public Long getKnowledgeId()
  101. {
  102. return knowledgeId;
  103. }
  104. public void setAnswer(String answer)
  105. {
  106. this.answer = answer;
  107. }
  108. public String getAnswer()
  109. {
  110. return answer;
  111. }
  112. public void setCorrect(String correct)
  113. {
  114. this.correct = correct;
  115. }
  116. public String getCorrect()
  117. {
  118. return correct;
  119. }
  120. public void setDuration(Long duration)
  121. {
  122. this.duration = duration;
  123. }
  124. public Long getDuration()
  125. {
  126. return duration;
  127. }
  128. public void setCount(Long count)
  129. {
  130. this.count = count;
  131. }
  132. public Long getCount()
  133. {
  134. return count;
  135. }
  136. public void setState(Long state)
  137. {
  138. this.state = state;
  139. }
  140. public Long getState()
  141. {
  142. return state;
  143. }
  144. public void setScoreLevel(String scoreLevel)
  145. {
  146. this.scoreLevel = scoreLevel;
  147. }
  148. public String getScoreLevel()
  149. {
  150. return scoreLevel;
  151. }
  152. public void setScore(Long score)
  153. {
  154. this.score = score;
  155. }
  156. public Long getScore()
  157. {
  158. return score;
  159. }
  160. public void setScoreRate(Long scoreRate)
  161. {
  162. this.scoreRate = scoreRate;
  163. }
  164. public Long getScoreRate()
  165. {
  166. return scoreRate;
  167. }
  168. @Override
  169. public String toString() {
  170. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  171. .append("answerId", getAnswerId())
  172. .append("examineeId", getExamineeId())
  173. .append("studentId", getStudentId())
  174. .append("questionId", getQuestionId())
  175. .append("seq", getSeq())
  176. .append("knowledgeId", getKnowledgeId())
  177. .append("answer", getAnswer())
  178. .append("correct", getCorrect())
  179. .append("duration", getDuration())
  180. .append("count", getCount())
  181. .append("state", getState())
  182. .append("scoreLevel", getScoreLevel())
  183. .append("score", getScore())
  184. .append("scoreRate", getScoreRate())
  185. .append("createTime", getCreateTime())
  186. .append("updateTime", getUpdateTime())
  187. .toString();
  188. }
  189. }