LearnQuestions.java 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. package com.ruoyi.learn.domain;
  2. import java.math.BigDecimal;
  3. import java.util.List;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.ruoyi.common.annotation.Excel;
  7. import com.ruoyi.common.core.domain.BaseEntity;
  8. /**
  9. * 试题对象 learn_questions
  10. *
  11. * @author ruoyi
  12. * @date 2025-09-18
  13. */
  14. public class LearnQuestions extends BaseEntity
  15. {
  16. private static final long serialVersionUID = 1L;
  17. /** $column.columnComment */
  18. private Long id;
  19. /** 试题-题干 */
  20. @Excel(name = "试题-题干")
  21. private String title;
  22. /** 选项A */
  23. @Excel(name = "选项A")
  24. private String optionA;
  25. /** 选项B */
  26. @Excel(name = "选项B")
  27. private String optionB;
  28. /** 选项C */
  29. @Excel(name = "选项C")
  30. private String optionC;
  31. /** 选项D */
  32. @Excel(name = "选项D")
  33. private String optionD;
  34. /** 选项E */
  35. @Excel(name = "选项E")
  36. private String optionE;
  37. /** 选项D */
  38. @Excel(name = "选项D")
  39. private String optionF;
  40. /** 选项E */
  41. @Excel(name = "选项E")
  42. private String optionG;
  43. /** $column.columnComment */
  44. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  45. private String answer1;
  46. /** 非标准格式答案或含部分过程说明的答案 */
  47. @Excel(name = "非标准格式答案或含部分过程说明的答案")
  48. private String answer2;
  49. /** 类型(1判断题;2单选题;3多选题;4主观题,简答题) */
  50. @Excel(name = "类型", readConverterExp = "1=判断题;2单选题;3多选题;4主观题,简答题")
  51. private String qtpye;
  52. /** 学科Id */
  53. @Excel(name = "学科Id")
  54. private Long subjectId;
  55. /** $column.columnComment */
  56. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  57. private Long paperId;
  58. /** 知识点 */
  59. @Excel(name = "知识点")
  60. private Long knowledgeId;
  61. /** $column.columnComment */
  62. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  63. private BigDecimal diff;
  64. /** 试题在题库中的相似度,相似度越高,质量越低 */
  65. @Excel(name = "试题在题库中的相似度,相似度越高,质量越低")
  66. private Long similarity;
  67. /** 试题解析 */
  68. @Excel(name = "试题解析")
  69. private String parse;
  70. /** $column.columnComment */
  71. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  72. private Long knowId;
  73. /** 年级ID */
  74. @Excel(name = "年级ID")
  75. private Long gradeId;
  76. /** $column.columnComment */
  77. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  78. private String knowledges;
  79. /** 试题区域 */
  80. @Excel(name = "试题区域")
  81. private String area;
  82. /** 试题年份 */
  83. @Excel(name = "试题年份")
  84. private Long year;
  85. /** 试题类型:1,月考;2,模拟考;3,中考;4,高考;5,学业考试;6,其他 */
  86. @Excel(name = "试题类型:1,月考;2,模拟考;3,中考;4,高考;5,学业考试;6,其他")
  87. private String paperTpye;
  88. /** 来源(1gzdz,2dk,3self,4自制) */
  89. @Excel(name = "来源", readConverterExp = "1=gzdz,2dk,3self,4自制")
  90. private String source;
  91. /** 试题来源(网站) */
  92. @Excel(name = "试题来源", readConverterExp = "网=站")
  93. private String fromSite;
  94. /** 是否存在图片水印 */
  95. @Excel(name = "是否存在图片水印")
  96. private Integer isSub;
  97. /** 是否常规题,如果选择题无法正常提取标准答案或者选项,有小题的答题无法正常提取小题,则isNormal为0,否则为1 */
  98. @Excel(name = "是否常规题,如果选择题无法正常提取标准答案或者选项,有小题的答题无法正常提取小题,则isNormal为0,否则为1")
  99. private Integer isNormal;
  100. /** 是否匹配章节知识点,1匹配,0不匹配 */
  101. @Excel(name = "是否匹配章节知识点,1匹配,0不匹配")
  102. private Integer isKonw;
  103. /** 试题的tiid,结合fromsite进行同网站试题排重,用于增量更新 */
  104. @Excel(name = "试题的tiid,结合fromsite进行同网站试题排重,用于增量更新")
  105. private String tiid;
  106. /** 试题题干的md5值 */
  107. @Excel(name = "试题题干的md5值")
  108. private String md5;
  109. /** $column.columnComment */
  110. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  111. private Long isunique;
  112. /** $column.columnComment */
  113. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  114. private String md52;
  115. /** 得分 */
  116. @Excel(name = "得分")
  117. private Integer score;
  118. /** 选项 */
  119. @Excel(name = "选项")
  120. private String options;
  121. /** $column.columnComment */
  122. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  123. private Long number;
  124. /** $column.columnComment */
  125. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  126. private String paperTypeTitle;
  127. /** 选项 */
  128. @Excel(name = "选项")
  129. private String options0;
  130. /** 试题-材料题题干 */
  131. @Excel(name = "试题-材料题题干")
  132. private String title0;
  133. /** 试题-材料题题干 */
  134. @Excel(name = "试题-材料题题干")
  135. private String title1;
  136. /** 试题解析 */
  137. @Excel(name = "试题解析")
  138. private String parse0;
  139. /** $column.columnComment */
  140. @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
  141. private String answer0;
  142. /** 是否更新 */
  143. @Excel(name = "是否更新")
  144. private Long isUpdate;
  145. /** 子题类型 */
  146. @Excel(name = "子题类型")
  147. private String isSubType;
  148. @Excel(name = "题型")
  149. private Integer typeId;
  150. private Long userId;
  151. boolean collect;
  152. private Integer subCnt;
  153. private List<LearnKnowledgeTree2> knowledgeTrees;
  154. public List<LearnKnowledgeTree2> getKnowledgeTrees() {
  155. return knowledgeTrees;
  156. }
  157. public void setKnowledgeTrees(List<LearnKnowledgeTree2> knowledgeTrees) {
  158. this.knowledgeTrees = knowledgeTrees;
  159. }
  160. public Integer getSubCnt() {
  161. return subCnt;
  162. }
  163. public void setSubCnt(Integer subCnt) {
  164. this.subCnt = subCnt;
  165. }
  166. public Integer getTypeId() {
  167. return typeId;
  168. }
  169. public void setTypeId(Integer typeId) {
  170. this.typeId = typeId;
  171. }
  172. public boolean isCollect() {
  173. return collect;
  174. }
  175. public void setCollect(boolean collect) {
  176. this.collect = collect;
  177. }
  178. public Long getUserId() {
  179. return userId;
  180. }
  181. public void setUserId(Long userId) {
  182. this.userId = userId;
  183. }
  184. public void setId(Long id)
  185. {
  186. this.id = id;
  187. }
  188. public Long getId()
  189. {
  190. return id;
  191. }
  192. public void setTitle(String title)
  193. {
  194. this.title = title;
  195. }
  196. public String getTitle()
  197. {
  198. return title;
  199. }
  200. public void setOptionA(String optionA)
  201. {
  202. this.optionA = optionA;
  203. }
  204. public String getOptionA()
  205. {
  206. return optionA;
  207. }
  208. public void setOptionB(String optionB)
  209. {
  210. this.optionB = optionB;
  211. }
  212. public String getOptionB()
  213. {
  214. return optionB;
  215. }
  216. public void setOptionC(String optionC)
  217. {
  218. this.optionC = optionC;
  219. }
  220. public String getOptionC()
  221. {
  222. return optionC;
  223. }
  224. public void setOptionD(String optionD)
  225. {
  226. this.optionD = optionD;
  227. }
  228. public String getOptionD()
  229. {
  230. return optionD;
  231. }
  232. public void setOptionE(String optionE)
  233. {
  234. this.optionE = optionE;
  235. }
  236. public String getOptionE()
  237. {
  238. return optionE;
  239. }
  240. public void setOptionF(String optionF)
  241. {
  242. this.optionF = optionF;
  243. }
  244. public String getOptionF()
  245. {
  246. return optionF;
  247. }
  248. public void setOptionG(String optionG)
  249. {
  250. this.optionG = optionG;
  251. }
  252. public String getOptionG()
  253. {
  254. return optionG;
  255. }
  256. public void setAnswer1(String answer1)
  257. {
  258. this.answer1 = answer1;
  259. }
  260. public String getAnswer1()
  261. {
  262. return answer1;
  263. }
  264. public void setAnswer2(String answer2)
  265. {
  266. this.answer2 = answer2;
  267. }
  268. public String getAnswer2()
  269. {
  270. return answer2;
  271. }
  272. public void setQtpye(String qtpye)
  273. {
  274. this.qtpye = qtpye;
  275. }
  276. public String getQtpye()
  277. {
  278. return qtpye;
  279. }
  280. public void setSubjectId(Long subjectId)
  281. {
  282. this.subjectId = subjectId;
  283. }
  284. public Long getSubjectId()
  285. {
  286. return subjectId;
  287. }
  288. public void setPaperId(Long paperId)
  289. {
  290. this.paperId = paperId;
  291. }
  292. public Long getPaperId()
  293. {
  294. return paperId;
  295. }
  296. public void setKnowledgeId(Long knowledgeId)
  297. {
  298. this.knowledgeId = knowledgeId;
  299. }
  300. public Long getKnowledgeId()
  301. {
  302. return knowledgeId;
  303. }
  304. public void setDiff(BigDecimal diff)
  305. {
  306. this.diff = diff;
  307. }
  308. public BigDecimal getDiff()
  309. {
  310. return diff;
  311. }
  312. public void setSimilarity(Long similarity)
  313. {
  314. this.similarity = similarity;
  315. }
  316. public Long getSimilarity()
  317. {
  318. return similarity;
  319. }
  320. public void setParse(String parse)
  321. {
  322. this.parse = parse;
  323. }
  324. public String getParse()
  325. {
  326. return parse;
  327. }
  328. public void setKnowId(Long knowId)
  329. {
  330. this.knowId = knowId;
  331. }
  332. public Long getKnowId()
  333. {
  334. return knowId;
  335. }
  336. public void setGradeId(Long gradeId)
  337. {
  338. this.gradeId = gradeId;
  339. }
  340. public Long getGradeId()
  341. {
  342. return gradeId;
  343. }
  344. public void setKnowledges(String knowledges)
  345. {
  346. this.knowledges = knowledges;
  347. }
  348. public String getKnowledges()
  349. {
  350. return knowledges;
  351. }
  352. public void setArea(String area)
  353. {
  354. this.area = area;
  355. }
  356. public String getArea()
  357. {
  358. return area;
  359. }
  360. public void setYear(Long year)
  361. {
  362. this.year = year;
  363. }
  364. public Long getYear()
  365. {
  366. return year;
  367. }
  368. public void setPaperTpye(String paperTpye)
  369. {
  370. this.paperTpye = paperTpye;
  371. }
  372. public String getPaperTpye()
  373. {
  374. return paperTpye;
  375. }
  376. public void setSource(String source)
  377. {
  378. this.source = source;
  379. }
  380. public String getSource()
  381. {
  382. return source;
  383. }
  384. public void setFromSite(String fromSite)
  385. {
  386. this.fromSite = fromSite;
  387. }
  388. public String getFromSite()
  389. {
  390. return fromSite;
  391. }
  392. public void setIsSub(Integer isSub)
  393. {
  394. this.isSub = isSub;
  395. }
  396. public Integer getIsSub()
  397. {
  398. return isSub;
  399. }
  400. public void setIsNormal(Integer isNormal)
  401. {
  402. this.isNormal = isNormal;
  403. }
  404. public Integer getIsNormal()
  405. {
  406. return isNormal;
  407. }
  408. public void setIsKonw(Integer isKonw)
  409. {
  410. this.isKonw = isKonw;
  411. }
  412. public Integer getIsKonw()
  413. {
  414. return isKonw;
  415. }
  416. public void setTiid(String tiid)
  417. {
  418. this.tiid = tiid;
  419. }
  420. public String getTiid()
  421. {
  422. return tiid;
  423. }
  424. public void setMd5(String md5)
  425. {
  426. this.md5 = md5;
  427. }
  428. public String getMd5()
  429. {
  430. return md5;
  431. }
  432. public void setIsunique(Long isunique)
  433. {
  434. this.isunique = isunique;
  435. }
  436. public Long getIsunique()
  437. {
  438. return isunique;
  439. }
  440. public void setMd52(String md52)
  441. {
  442. this.md52 = md52;
  443. }
  444. public String getMd52()
  445. {
  446. return md52;
  447. }
  448. public void setScore(Integer score)
  449. {
  450. this.score = score;
  451. }
  452. public Integer getScore()
  453. {
  454. return score;
  455. }
  456. public void setOptions(String options)
  457. {
  458. this.options = options;
  459. }
  460. public String getOptions()
  461. {
  462. return options;
  463. }
  464. public void setNumber(Long number)
  465. {
  466. this.number = number;
  467. }
  468. public Long getNumber()
  469. {
  470. return number;
  471. }
  472. public void setPaperTypeTitle(String paperTypeTitle)
  473. {
  474. this.paperTypeTitle = paperTypeTitle;
  475. }
  476. public String getPaperTypeTitle()
  477. {
  478. return paperTypeTitle;
  479. }
  480. public void setOptions0(String options0)
  481. {
  482. this.options0 = options0;
  483. }
  484. public String getOptions0()
  485. {
  486. return options0;
  487. }
  488. public void setTitle0(String title0)
  489. {
  490. this.title0 = title0;
  491. }
  492. public String getTitle0()
  493. {
  494. return title0;
  495. }
  496. public void setTitle1(String title1)
  497. {
  498. this.title1 = title1;
  499. }
  500. public String getTitle1()
  501. {
  502. return title1;
  503. }
  504. public void setParse0(String parse0)
  505. {
  506. this.parse0 = parse0;
  507. }
  508. public String getParse0()
  509. {
  510. return parse0;
  511. }
  512. public void setAnswer0(String answer0)
  513. {
  514. this.answer0 = answer0;
  515. }
  516. public String getAnswer0()
  517. {
  518. return answer0;
  519. }
  520. public void setIsUpdate(Long isUpdate)
  521. {
  522. this.isUpdate = isUpdate;
  523. }
  524. public Long getIsUpdate()
  525. {
  526. return isUpdate;
  527. }
  528. public void setIsSubType(String isSubType)
  529. {
  530. this.isSubType = isSubType;
  531. }
  532. public String getIsSubType()
  533. {
  534. return isSubType;
  535. }
  536. @Override
  537. public String toString() {
  538. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  539. .append("id", getId())
  540. .append("title", getTitle())
  541. .append("optionA", getOptionA())
  542. .append("optionB", getOptionB())
  543. .append("optionC", getOptionC())
  544. .append("optionD", getOptionD())
  545. .append("optionE", getOptionE())
  546. .append("optionF", getOptionF())
  547. .append("optionG", getOptionG())
  548. .append("answer1", getAnswer1())
  549. .append("answer2", getAnswer2())
  550. .append("qtpye", getQtpye())
  551. .append("subjectId", getSubjectId())
  552. .append("paperId", getPaperId())
  553. .append("knowledgeId", getKnowledgeId())
  554. .append("diff", getDiff())
  555. .append("similarity", getSimilarity())
  556. .append("parse", getParse())
  557. .append("knowId", getKnowId())
  558. .append("gradeId", getGradeId())
  559. .append("knowledges", getKnowledges())
  560. .append("area", getArea())
  561. .append("year", getYear())
  562. .append("paperTpye", getPaperTpye())
  563. .append("source", getSource())
  564. .append("fromSite", getFromSite())
  565. .append("isSub", getIsSub())
  566. .append("isNormal", getIsNormal())
  567. .append("isKonw", getIsKonw())
  568. .append("tiid", getTiid())
  569. .append("md5", getMd5())
  570. .append("isunique", getIsunique())
  571. .append("md52", getMd52())
  572. .append("createTime", getCreateTime())
  573. .append("score", getScore())
  574. .append("options", getOptions())
  575. .append("number", getNumber())
  576. .append("paperTypeTitle", getPaperTypeTitle())
  577. .append("options0", getOptions0())
  578. .append("title0", getTitle0())
  579. .append("title1", getTitle1())
  580. .append("parse0", getParse0())
  581. .append("answer0", getAnswer0())
  582. .append("isUpdate", getIsUpdate())
  583. .append("isSubType", getIsSubType())
  584. .toString();
  585. }
  586. }