猫妈狗爸伴宠师小程序后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.4 KiB

9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
  1. package com.ruoyi.model.domain;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import com.ruoyi.common.annotation.Excel;
  6. import com.ruoyi.common.core.domain.BaseEntity;
  7. /**
  8. * 用户培训考核答案对象 applet_answer_train
  9. *
  10. * @author ruoyi
  11. * @date 2025-03-28
  12. */
  13. public class AppletAnswerTrain extends BaseEntity
  14. {
  15. private static final long serialVersionUID = 1L;
  16. /** 唯一标识 */
  17. private Long id;
  18. /** 关联题目ID */
  19. @Excel(name = "关联题目ID")
  20. private Long questionId;
  21. /** 关联用户ID */
  22. @Excel(name = "关联用户ID")
  23. private Long userId;
  24. /** 答案内容 */
  25. @Excel(name = "答案内容")
  26. private String answer;
  27. /** 删除标识 */
  28. private Integer delFlag;
  29. //题目信息
  30. @TableField(exist = false)
  31. private AppletQuestion question;
  32. public void setId(Long id)
  33. {
  34. this.id = id;
  35. }
  36. public Long getId()
  37. {
  38. return id;
  39. }
  40. public void setQuestionId(Long questionId)
  41. {
  42. this.questionId = questionId;
  43. }
  44. public Long getQuestionId()
  45. {
  46. return questionId;
  47. }
  48. public void setUserId(Long userId)
  49. {
  50. this.userId = userId;
  51. }
  52. public Long getUserId()
  53. {
  54. return userId;
  55. }
  56. public void setAnswer(String answer)
  57. {
  58. this.answer = answer;
  59. }
  60. public String getAnswer()
  61. {
  62. return answer;
  63. }
  64. public void setDelFlag(Integer delFlag)
  65. {
  66. this.delFlag = delFlag;
  67. }
  68. public Integer getDelFlag()
  69. {
  70. return delFlag;
  71. }
  72. public AppletQuestion getQuestion() {
  73. return question;
  74. }
  75. public void setQuestion(AppletQuestion question) {
  76. this.question = question;
  77. }
  78. @Override
  79. public String toString() {
  80. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  81. .append("id", getId())
  82. .append("questionId", getQuestionId())
  83. .append("userId", getUserId())
  84. .append("answer", getAnswer())
  85. .append("remark", getRemark())
  86. .append("delFlag", getDelFlag())
  87. .append("createBy", getCreateBy())
  88. .append("createTime", getCreateTime())
  89. .append("updateBy", getUpdateBy())
  90. .append("updateTime", getUpdateTime())
  91. .toString();
  92. }
  93. }