TRBasicInfo.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. package com.qmth.teachcloud.obe.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  4. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  5. import com.qmth.teachcloud.common.base.BaseEntity;
  6. import com.qmth.teachcloud.obe.been.report.ReportCourseBasicInfoDto;
  7. import com.qmth.teachcloud.obe.been.result.report.ReportResult;
  8. import io.swagger.annotations.ApiModel;
  9. import io.swagger.annotations.ApiModelProperty;
  10. import java.io.Serializable;
  11. import java.math.BigDecimal;
  12. import java.util.Objects;
  13. /**
  14. * <p>
  15. * 报告基本情况表
  16. * </p>
  17. *
  18. * @author wangliang
  19. * @since 2024-02-18
  20. */
  21. @ApiModel(value = "TRBasicInfo对象", description = "报告基本情况表")
  22. public class TRBasicInfo extends BaseEntity implements Serializable {
  23. private static final long serialVersionUID = 1L;
  24. @ApiModelProperty(value = "考试id")
  25. @JsonSerialize(using = ToStringSerializer.class)
  26. private Long examId;
  27. @ApiModelProperty(value = "培养方案id")
  28. @JsonSerialize(using = ToStringSerializer.class)
  29. private Long cultureProgramId;
  30. @ApiModelProperty(value = "课程id")
  31. @JsonSerialize(using = ToStringSerializer.class)
  32. private Long courseId;
  33. @ApiModelProperty(value = "课程编码")
  34. private String courseCode;
  35. @ApiModelProperty(value = "课程名称")
  36. private String courseName;
  37. @ApiModelProperty(value = "试卷编码")
  38. private String paperNumber;
  39. @ApiModelProperty(value = "课程性质")
  40. private String courseType;
  41. @ApiModelProperty(value = "学分")
  42. private String credit;
  43. @ApiModelProperty(value = "学时")
  44. private String period;
  45. @ApiModelProperty(value = "开课学院")
  46. private String college;
  47. @ApiModelProperty(value = "开课专业")
  48. private String profession;
  49. @ApiModelProperty(value = "考核方式")
  50. private String evaluationMode;
  51. @ApiModelProperty(value = "开课时间")
  52. private String openTime;
  53. @ApiModelProperty(value = "授课对象")
  54. private String teachingObject;
  55. @ApiModelProperty(value = "选课人数")
  56. private Integer selectionCount;
  57. @ApiModelProperty(value = "参评人数")
  58. private Integer participantCount = 0;
  59. @ApiModelProperty(value = "课程目标达成度期望值")
  60. private BigDecimal courseDegree = new BigDecimal(0);
  61. @ApiModelProperty(value = "任课老师")
  62. private String teacher;
  63. @ApiModelProperty(value = "评价责任人")
  64. private String director;
  65. @ApiModelProperty(value = "评价参与人")
  66. private String participant;
  67. @ApiModelProperty(value = "是否启用,0:停用,1:启用")
  68. private Boolean enable;
  69. @ApiModelProperty(value = "课程目标考核分布")
  70. private String courseEvaluationSpread;
  71. @ApiModelProperty(value = "课程考核成绩评价结果")
  72. private String courseEvaluationResult;
  73. @ApiModelProperty(value = "课程考核成绩评价明细结果")
  74. private String courseEvaluationResultDetail;
  75. @ApiModelProperty(value = "课程持续改进")
  76. private String courseSuggest;
  77. @ApiModelProperty(name = "课程英文名称")
  78. private String courseEnName;
  79. @ApiModelProperty(value = "报告信息")
  80. @TableField(exist = false)
  81. private ReportResult reportResult;
  82. @ApiModelProperty(value = "教学班")
  83. private String teachClassName;
  84. public TRBasicInfo() {
  85. }
  86. public TRBasicInfo(Long cultureProgramId, Long courseId, String courseCode, String courseName,
  87. String paperNumber, String openTime,
  88. Long userId,
  89. String courseSuggest, String courseEnName, Long examId,
  90. ReportCourseBasicInfoDto reportCourseBasicInfoDto) {
  91. insertInfo(userId);
  92. this.cultureProgramId = cultureProgramId;
  93. this.courseId = courseId;
  94. this.courseCode = courseCode;
  95. this.courseName = courseName;
  96. this.paperNumber = paperNumber;
  97. this.openTime = openTime;
  98. this.teachingObject = reportCourseBasicInfoDto.getTeachingObject();
  99. this.enable = true;
  100. this.reportResult = new ReportResult();
  101. this.profession = reportCourseBasicInfoDto.getProfession();
  102. this.courseDegree = reportCourseBasicInfoDto.getCourseDegree();
  103. this.courseEnName = courseEnName;
  104. this.courseSuggest = courseSuggest;
  105. this.examId = examId;
  106. this.college = reportCourseBasicInfoDto.getCollege();
  107. }
  108. public String getCourseEnName() {
  109. return courseEnName;
  110. }
  111. public void setCourseEnName(String courseEnName) {
  112. this.courseEnName = courseEnName;
  113. }
  114. public String getCourseSuggest() {
  115. return courseSuggest;
  116. }
  117. public void setCourseSuggest(String courseSuggest) {
  118. this.courseSuggest = courseSuggest;
  119. }
  120. public String getCollege() {
  121. return college;
  122. }
  123. public void setCollege(String college) {
  124. this.college = college;
  125. }
  126. public String getProfession() {
  127. return profession;
  128. }
  129. public void setProfession(String profession) {
  130. this.profession = profession;
  131. }
  132. public TRBasicInfo(TRBasicInfo trBasicInfo, Long userId) {
  133. insertInfo(userId);
  134. this.setValue(trBasicInfo);
  135. this.enable = true;
  136. }
  137. public void updateInfo(TRBasicInfo trBasicInfo, ReportCourseBasicInfoDto reportCourseBasicInfoDto, Long userId) {
  138. this.setValue(trBasicInfo);
  139. this.college = reportCourseBasicInfoDto.getCollege();
  140. this.teachingObject = Objects.nonNull(trBasicInfo) && Objects.nonNull(trBasicInfo.getTeachingObject()) && !Objects.equals(trBasicInfo.getTeachingObject(), "") ? trBasicInfo.getTeachingObject() : reportCourseBasicInfoDto.getTeachingObject();
  141. this.courseDegree = reportCourseBasicInfoDto.getCourseDegree();
  142. this.profession = reportCourseBasicInfoDto.getProfession();
  143. updateInfo(userId);
  144. }
  145. protected void setValue(TRBasicInfo trBasicInfo) {
  146. this.examId = trBasicInfo.getExamId();
  147. this.cultureProgramId = trBasicInfo.getCultureProgramId();
  148. this.courseId = trBasicInfo.getCourseId();
  149. this.courseCode = trBasicInfo.getCourseCode();
  150. this.courseName = trBasicInfo.getCourseName();
  151. this.paperNumber = trBasicInfo.getPaperNumber();
  152. this.courseType = trBasicInfo.getCourseType();
  153. this.credit = trBasicInfo.getCredit();
  154. this.period = trBasicInfo.getPeriod();
  155. this.evaluationMode = trBasicInfo.getEvaluationMode();
  156. this.openTime = trBasicInfo.getOpenTime();
  157. this.teachingObject = trBasicInfo.getTeachingObject();
  158. this.selectionCount = trBasicInfo.getSelectionCount();
  159. this.participantCount = trBasicInfo.getParticipantCount();
  160. this.courseDegree = trBasicInfo.getCourseDegree();
  161. this.teacher = trBasicInfo.getTeacher();
  162. this.director = trBasicInfo.getDirector();
  163. this.participant = trBasicInfo.getParticipant();
  164. this.courseEvaluationSpread = trBasicInfo.getCourseEvaluationSpread();
  165. this.courseEvaluationResult = trBasicInfo.getCourseEvaluationResult();
  166. this.courseEvaluationResultDetail = trBasicInfo.getCourseEvaluationResultDetail();
  167. this.profession = trBasicInfo.getProfession();
  168. this.courseEnName = trBasicInfo.getCourseEnName();
  169. this.college = trBasicInfo.getCollege();
  170. this.courseSuggest = trBasicInfo.getCourseSuggest();
  171. this.teachClassName = trBasicInfo.getTeachClassName();
  172. }
  173. public void setCalculate(TRBasicInfo trBasicInfo) {
  174. this.courseType = trBasicInfo.getCourseType();
  175. this.courseEnName = trBasicInfo.getCourseEnName();
  176. this.credit = trBasicInfo.getCredit();
  177. this.period = trBasicInfo.getPeriod();
  178. this.teachingObject = trBasicInfo.getTeachingObject();
  179. this.teacher = trBasicInfo.getTeacher();
  180. this.director = trBasicInfo.getDirector();
  181. this.courseSuggest = trBasicInfo.getCourseSuggest();
  182. }
  183. public void setBasicInfo(Long examId, String courseCode, String courseName, String paperNumber, String openTime,
  184. Long cultureProgramId,
  185. Long courseId, String courseEnName,
  186. String courseSuggest, ReportCourseBasicInfoDto reportCourseBasicInfoDto) {
  187. this.examId = examId;
  188. this.courseCode = courseCode;
  189. this.courseName = courseName;
  190. this.paperNumber = paperNumber;
  191. this.openTime = openTime;
  192. this.teachingObject = reportCourseBasicInfoDto.getTeachingObject();
  193. this.teacher = reportCourseBasicInfoDto.getTeacher();
  194. this.enable = true;
  195. this.reportResult = new ReportResult();
  196. this.cultureProgramId = cultureProgramId;
  197. this.courseId = courseId;
  198. this.courseDegree = reportCourseBasicInfoDto.getCourseDegree();
  199. this.profession = reportCourseBasicInfoDto.getProfession();
  200. this.courseEnName = courseEnName;
  201. this.college = reportCourseBasicInfoDto.getCollege();
  202. this.courseSuggest = courseSuggest;
  203. }
  204. public String getTeachClassName() {
  205. return teachClassName;
  206. }
  207. public void setTeachClassName(String teachClassName) {
  208. this.teachClassName = teachClassName;
  209. }
  210. public Long getCultureProgramId() {
  211. return cultureProgramId;
  212. }
  213. public void setCultureProgramId(Long cultureProgramId) {
  214. this.cultureProgramId = cultureProgramId;
  215. }
  216. public Long getCourseId() {
  217. return courseId;
  218. }
  219. public void setCourseId(Long courseId) {
  220. this.courseId = courseId;
  221. }
  222. public ReportResult getReportResult() {
  223. return reportResult;
  224. }
  225. public void setReportResult(ReportResult reportResult) {
  226. this.reportResult = reportResult;
  227. }
  228. public String getCredit() {
  229. return credit;
  230. }
  231. public void setCredit(String credit) {
  232. this.credit = credit;
  233. }
  234. public String getPeriod() {
  235. return period;
  236. }
  237. public void setPeriod(String period) {
  238. this.period = period;
  239. }
  240. public Long getExamId() {
  241. return examId;
  242. }
  243. public void setExamId(Long examId) {
  244. this.examId = examId;
  245. }
  246. public String getCourseCode() {
  247. return courseCode;
  248. }
  249. public void setCourseCode(String courseCode) {
  250. this.courseCode = courseCode;
  251. }
  252. public String getCourseName() {
  253. return courseName;
  254. }
  255. public void setCourseName(String courseName) {
  256. this.courseName = courseName;
  257. }
  258. public String getPaperNumber() {
  259. return paperNumber;
  260. }
  261. public void setPaperNumber(String paperNumber) {
  262. this.paperNumber = paperNumber;
  263. }
  264. public String getCourseType() {
  265. return courseType;
  266. }
  267. public void setCourseType(String courseType) {
  268. this.courseType = courseType;
  269. }
  270. public String getEvaluationMode() {
  271. return evaluationMode;
  272. }
  273. public void setEvaluationMode(String evaluationMode) {
  274. this.evaluationMode = evaluationMode;
  275. }
  276. public String getOpenTime() {
  277. return openTime;
  278. }
  279. public void setOpenTime(String openTime) {
  280. this.openTime = openTime;
  281. }
  282. public String getTeachingObject() {
  283. return teachingObject;
  284. }
  285. public void setTeachingObject(String teachingObject) {
  286. this.teachingObject = teachingObject;
  287. }
  288. public BigDecimal getCourseDegree() {
  289. return courseDegree;
  290. }
  291. public void setCourseDegree(BigDecimal courseDegree) {
  292. this.courseDegree = courseDegree;
  293. }
  294. public Integer getSelectionCount() {
  295. return selectionCount;
  296. }
  297. public void setSelectionCount(Integer selectionCount) {
  298. this.selectionCount = selectionCount;
  299. }
  300. public Integer getParticipantCount() {
  301. return participantCount;
  302. }
  303. public void setParticipantCount(Integer participantCount) {
  304. this.participantCount = participantCount;
  305. }
  306. public String getTeacher() {
  307. return teacher;
  308. }
  309. public void setTeacher(String teacher) {
  310. this.teacher = teacher;
  311. }
  312. public String getDirector() {
  313. return director;
  314. }
  315. public void setDirector(String director) {
  316. this.director = director;
  317. }
  318. public String getParticipant() {
  319. return participant;
  320. }
  321. public void setParticipant(String participant) {
  322. this.participant = participant;
  323. }
  324. public Boolean getEnable() {
  325. return enable;
  326. }
  327. public void setEnable(Boolean enable) {
  328. this.enable = enable;
  329. }
  330. public String getCourseEvaluationSpread() {
  331. return courseEvaluationSpread;
  332. }
  333. public void setCourseEvaluationSpread(String courseEvaluationSpread) {
  334. this.courseEvaluationSpread = courseEvaluationSpread;
  335. }
  336. public String getCourseEvaluationResult() {
  337. return courseEvaluationResult;
  338. }
  339. public void setCourseEvaluationResult(String courseEvaluationResult) {
  340. this.courseEvaluationResult = courseEvaluationResult;
  341. }
  342. public String getCourseEvaluationResultDetail() {
  343. return courseEvaluationResultDetail;
  344. }
  345. public void setCourseEvaluationResultDetail(String courseEvaluationResultDetail) {
  346. this.courseEvaluationResultDetail = courseEvaluationResultDetail;
  347. }
  348. }