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

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

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

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

Loading…
Cancel
Save