diff --git a/src/main/java/com/msdw/tms/entity/ExperimentalReportEntity.java b/src/main/java/com/msdw/tms/entity/ExperimentalReportEntity.java index cc2f0bc..02c43d3 100644 --- a/src/main/java/com/msdw/tms/entity/ExperimentalReportEntity.java +++ b/src/main/java/com/msdw/tms/entity/ExperimentalReportEntity.java @@ -132,5 +132,9 @@ public class ExperimentalReportEntity { //绑定用户id private transient Integer userId; + //练习实验报告班级 + @ApiModelProperty(value = "练习实验报告班级", name = "experimentalClassName", required = false) + private String experimentalClassName; + } diff --git a/src/main/resources/mapper/tms/AchievementManagementDao.xml b/src/main/resources/mapper/tms/AchievementManagementDao.xml index 20c8d1b..f0d3822 100644 --- a/src/main/resources/mapper/tms/AchievementManagementDao.xml +++ b/src/main/resources/mapper/tms/AchievementManagementDao.xml @@ -681,6 +681,10 @@ summarize=#{summarize, jdbcType=VARCHAR}, + + + experimentalClassName=#{experimentalClassName, jdbcType=VARCHAR}, + WHERE reportId = #{reportId} diff --git a/src/main/resources/mapper/tms/ExperimentalReportDao.xml b/src/main/resources/mapper/tms/ExperimentalReportDao.xml index a30b2b2..40374a7 100644 --- a/src/main/resources/mapper/tms/ExperimentalReportDao.xml +++ b/src/main/resources/mapper/tms/ExperimentalReportDao.xml @@ -62,7 +62,8 @@ tpr.score, ter.instructor, ter.period, - ter.summarize + ter.summarize , + ter.experimentalClassName FROM tms_experimental_report ter INNER JOIN student stu ON ter.studentId = stu.studentId