|
|
|
@ -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 |
|
|
|
|