教师端学生端查看实验报告修改

hehai
jiakun.lin 4 years ago
parent f54c577673
commit 16fb8d6083
  1. 4
      src/main/resources/mapper/tms/AchievementManagementDao.xml
  2. 33
      src/main/resources/mapper/tms/ExperimentalReportDao.xml

@ -536,7 +536,9 @@
r.score,
r.recordId,
report.reportId,
r.submitTime
r.submitTime,
stu.studentId,
t.id as projectId
FROM tms_experimental_teaching t
INNER JOIN tms_experimental_report report ON report.projectId = t.id
INNER JOIN tms_project_record r ON r.recordId = report.eventId

@ -12,7 +12,7 @@
SELECT u.userId,
u.userName,
stu.workNumber,
tet.project_name,
ter.proName,
tet.id AS experimentId,
tet.experimental_class_name,
hpm.experimentalGoal AS experiment_goal,
@ -28,7 +28,9 @@
ter.conclusion,
ter.summarize,
ter.improvement,
IFNULL(ter.`comment`, (SELECT `comment` FROM tms_comment WHERE id = commentId)) AS comment
IFNULL(ter.`comment`, (SELECT `comment` FROM tms_comment WHERE id = commentId)) AS comment,
ter.instructor,
ter.purpose
FROM hr_user_info u,
student stu,
tms_experimental_report ter,
@ -47,23 +49,26 @@
AND ter.projectId = #{projectId}
</select>
<select id="queryVirtualReport" resultType="com.msdw.tms.entity.vo.ExperimentalReportVo">
SELECT tpr.recordId,
SELECT
tpr.recordId,
u.userId,
u.userName,
stu.workNumber,
hpm.projectName,
ter.proName,
ter.purpose,
hpm.experimentalGoal AS experiment_goal,
tpr.submitTime,
tpr.score
FROM hr_user_info u,
student stu,
hr_project_management hpm,
tms_project_record tpr
WHERE u.userId = stu.userId
AND stu.userId = tpr.userId
AND hpm.projectId = tpr.projectId
AND tpr.isdel = 0
AND tpr.recordId = #{recordId}
tpr.score,
ter.instructor,
ter.period
FROM
tms_experimental_report ter
INNER JOIN student stu ON ter.studentId = stu.studentId
INNER JOIN hr_user_info u ON u.userId = stu.userId
INNER JOIN tms_project_record tpr ON tpr.recordId = ter.eventId
INNER JOIN hr_project_management hpm ON hpm.projectId = tpr.projectId
WHERE
tpr.recordId = #{recordId}
</select>
<select id="querySystemId" resultType="java.lang.Integer">
SELECT systemId

Loading…
Cancel
Save