LearnWrongBook.java 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. package com.ruoyi.learn.domain;
  2. import java.util.Date;
  3. import java.util.List;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import io.swagger.annotations.ApiModelProperty;
  6. import org.apache.commons.lang3.builder.ToStringBuilder;
  7. import org.apache.commons.lang3.builder.ToStringStyle;
  8. import com.ruoyi.common.annotation.Excel;
  9. import com.ruoyi.common.core.domain.BaseEntity;
  10. /**
  11. * 学生错题本对象 learn_wrong_book
  12. *
  13. * @author ruoyi
  14. * @date 2025-09-25
  15. */
  16. public class LearnWrongBook extends BaseEntity
  17. {
  18. private static final long serialVersionUID = 1L;
  19. /** 错题id */
  20. private Long wrongId;
  21. /** 学生ID */
  22. @Excel(name = "学生ID")
  23. private Long studentId;
  24. /** 题ID */
  25. @Excel(name = "题ID")
  26. private Long questionId;
  27. /** 最后来源,练习,试卷,刷题 */
  28. @Excel(name = "最后来源,练习,试卷,刷题")
  29. private String source;
  30. /** 最后状态 */
  31. @Excel(name = "最后状态")
  32. private Long state;
  33. /** 知识点id */
  34. @Excel(name = "知识点id")
  35. private Long knownledgeId;
  36. /** 科目 */
  37. @Excel(name = "科目")
  38. private Long subjectId;
  39. /** 试卷id */
  40. @Excel(name = "试卷id")
  41. private Long paperId;
  42. /** 最后参考答案 */
  43. @Excel(name = "最后参考答案")
  44. private String answer;
  45. /** 答案1 */
  46. @Excel(name = "答案1")
  47. private String answer1;
  48. /** 答案2 */
  49. @Excel(name = "答案2")
  50. private String answer2;
  51. /** 总分 */
  52. @Excel(name = "总分")
  53. private Integer scoreTotal;
  54. /** 得分 */
  55. @Excel(name = "得分")
  56. private Integer score;
  57. /** 评级 */
  58. @Excel(name = "评级")
  59. private String scoreLevel;
  60. /** 得分率 */
  61. @Excel(name = "得分率")
  62. private Integer scoreRate;
  63. /** 错误次数 */
  64. @Excel(name = "错误次数")
  65. private Long wrongCount;
  66. /** 正确次数 */
  67. @Excel(name = "正确次数")
  68. private Long rightCount;
  69. /** 总次数 */
  70. @Excel(name = "总次数")
  71. private Long totalCount;
  72. /** 创建时间 */
  73. @JsonFormat(pattern = "yyyy-MM-dd")
  74. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  75. private Date createdTime;
  76. /** 更新时间 */
  77. @JsonFormat(pattern = "yyyy-MM-dd")
  78. @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
  79. private Date updatedTime;
  80. /** 是否收藏 */
  81. @Excel(name = "是否收藏")
  82. private Long collect;
  83. private String knownledgeName;
  84. private String title;
  85. private String knowledge;
  86. private String parse;
  87. @ApiModelProperty("考题类型 question_type")
  88. Integer typeId;
  89. @ApiModelProperty("考题类型名称")
  90. String type;
  91. @ApiModelProperty("选项数组")
  92. List<String> options;
  93. @ApiModelProperty("答案数组")
  94. List<String> answers;
  95. public void setWrongId(Long wrongId)
  96. {
  97. this.wrongId = wrongId;
  98. }
  99. public Long getWrongId()
  100. {
  101. return wrongId;
  102. }
  103. public void setStudentId(Long studentId)
  104. {
  105. this.studentId = studentId;
  106. }
  107. public Long getStudentId()
  108. {
  109. return studentId;
  110. }
  111. public void setQuestionId(Long questionId)
  112. {
  113. this.questionId = questionId;
  114. }
  115. public Long getQuestionId()
  116. {
  117. return questionId;
  118. }
  119. public void setSource(String source)
  120. {
  121. this.source = source;
  122. }
  123. public String getSource()
  124. {
  125. return source;
  126. }
  127. public void setState(Long state)
  128. {
  129. this.state = state;
  130. }
  131. public Long getState()
  132. {
  133. return state;
  134. }
  135. public void setKnownledgeId(Long knownledgeId)
  136. {
  137. this.knownledgeId = knownledgeId;
  138. }
  139. public Long getKnownledgeId()
  140. {
  141. return knownledgeId;
  142. }
  143. public void setSubjectId(Long subjectId)
  144. {
  145. this.subjectId = subjectId;
  146. }
  147. public Long getSubjectId()
  148. {
  149. return subjectId;
  150. }
  151. public void setPaperId(Long paperId)
  152. {
  153. this.paperId = paperId;
  154. }
  155. public Long getPaperId()
  156. {
  157. return paperId;
  158. }
  159. public void setAnswer(String answer)
  160. {
  161. this.answer = answer;
  162. }
  163. public String getAnswer()
  164. {
  165. return answer;
  166. }
  167. public void setAnswer1(String answer1)
  168. {
  169. this.answer1 = answer1;
  170. }
  171. public String getAnswer1()
  172. {
  173. return answer1;
  174. }
  175. public void setAnswer2(String answer2)
  176. {
  177. this.answer2 = answer2;
  178. }
  179. public String getAnswer2()
  180. {
  181. return answer2;
  182. }
  183. public void setScoreTotal(Integer scoreTotal)
  184. {
  185. this.scoreTotal = scoreTotal;
  186. }
  187. public Integer getScoreTotal()
  188. {
  189. return scoreTotal;
  190. }
  191. public void setScore(Integer score)
  192. {
  193. this.score = score;
  194. }
  195. public Integer getScore()
  196. {
  197. return score;
  198. }
  199. public void setScoreLevel(String scoreLevel)
  200. {
  201. this.scoreLevel = scoreLevel;
  202. }
  203. public String getScoreLevel()
  204. {
  205. return scoreLevel;
  206. }
  207. public void setScoreRate(Integer scoreRate)
  208. {
  209. this.scoreRate = scoreRate;
  210. }
  211. public Integer getScoreRate()
  212. {
  213. return scoreRate;
  214. }
  215. public void setWrongCount(Long wrongCount)
  216. {
  217. this.wrongCount = wrongCount;
  218. }
  219. public Long getWrongCount()
  220. {
  221. return wrongCount;
  222. }
  223. public void setRightCount(Long rightCount)
  224. {
  225. this.rightCount = rightCount;
  226. }
  227. public Long getRightCount()
  228. {
  229. return rightCount;
  230. }
  231. public void setTotalCount(Long totalCount)
  232. {
  233. this.totalCount = totalCount;
  234. }
  235. public Long getTotalCount()
  236. {
  237. return totalCount;
  238. }
  239. public void setCreatedTime(Date createdTime)
  240. {
  241. this.createdTime = createdTime;
  242. }
  243. public Date getCreatedTime()
  244. {
  245. return createdTime;
  246. }
  247. public void setUpdatedTime(Date updatedTime)
  248. {
  249. this.updatedTime = updatedTime;
  250. }
  251. public Date getUpdatedTime()
  252. {
  253. return updatedTime;
  254. }
  255. public void setCollect(Long collect)
  256. {
  257. this.collect = collect;
  258. }
  259. public Long getCollect()
  260. {
  261. return collect;
  262. }
  263. public String getKnownledgeName() {
  264. return knownledgeName;
  265. }
  266. public void setKnownledgeName(String knownledgeName) {
  267. this.knownledgeName = knownledgeName;
  268. }
  269. public String getTitle() {
  270. return title;
  271. }
  272. public void setTitle(String title) {
  273. this.title = title;
  274. }
  275. public String getKnowledge() {
  276. return knowledge;
  277. }
  278. public void setKnowledge(String knowledge) {
  279. this.knowledge = knowledge;
  280. }
  281. public String getParse() {
  282. return parse;
  283. }
  284. public void setParse(String parse) {
  285. this.parse = parse;
  286. }
  287. public Integer getTypeId() {
  288. return typeId;
  289. }
  290. public void setTypeId(Integer typeId) {
  291. this.typeId = typeId;
  292. }
  293. public String getType() {
  294. return type;
  295. }
  296. public void setType(String type) {
  297. this.type = type;
  298. }
  299. public List<String> getOptions() {
  300. return options;
  301. }
  302. public void setOptions(List<String> options) {
  303. this.options = options;
  304. }
  305. public List<String> getAnswers() {
  306. return answers;
  307. }
  308. public void setAnswers(List<String> answers) {
  309. this.answers = answers;
  310. }
  311. @Override
  312. public String toString() {
  313. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  314. .append("wrongId", getWrongId())
  315. .append("studentId", getStudentId())
  316. .append("questionId", getQuestionId())
  317. .append("source", getSource())
  318. .append("state", getState())
  319. .append("knownledgeId", getKnownledgeId())
  320. .append("subjectId", getSubjectId())
  321. .append("paperId", getPaperId())
  322. .append("answer", getAnswer())
  323. .append("answer1", getAnswer1())
  324. .append("answer2", getAnswer2())
  325. .append("scoreTotal", getScoreTotal())
  326. .append("score", getScore())
  327. .append("scoreLevel", getScoreLevel())
  328. .append("scoreRate", getScoreRate())
  329. .append("wrongCount", getWrongCount())
  330. .append("rightCount", getRightCount())
  331. .append("totalCount", getTotalCount())
  332. .append("createdTime", getCreatedTime())
  333. .append("updatedTime", getUpdatedTime())
  334. .append("collect", getCollect())
  335. .toString();
  336. }
  337. }