|
|
@ -45,7 +45,8 @@ |
|
|
|
--> |
|
|
|
--> |
|
|
|
<select id="getByUserRecord" resultType="com.msdw.tms.entity.resp.GetByUserRecordResp" |
|
|
|
<select id="getByUserRecord" resultType="com.msdw.tms.entity.resp.GetByUserRecordResp" |
|
|
|
parameterType="java.lang.Integer"> |
|
|
|
parameterType="java.lang.Integer"> |
|
|
|
SELECT projectName, |
|
|
|
SELECT re.reportId, |
|
|
|
|
|
|
|
projectName, |
|
|
|
c.recordId, |
|
|
|
c.recordId, |
|
|
|
r.score, |
|
|
|
r.score, |
|
|
|
c.codeId, |
|
|
|
c.codeId, |
|
|
@ -57,6 +58,7 @@ |
|
|
|
FROM hr_experiment_code c |
|
|
|
FROM hr_experiment_code c |
|
|
|
INNER JOIN hr_project_management t ON t.projectId = c.projectId |
|
|
|
INNER JOIN hr_project_management t ON t.projectId = c.projectId |
|
|
|
INNER JOIN tms_project_record r ON r.recordId = c.recordId |
|
|
|
INNER JOIN tms_project_record r ON r.recordId = c.recordId |
|
|
|
|
|
|
|
INNER JOIN tms_experimental_report re ON re.eventId = r.recordId |
|
|
|
WHERE c.userId = #{userId} |
|
|
|
WHERE c.userId = #{userId} |
|
|
|
-- 教师端逻辑删除,学生端不做判断 |
|
|
|
-- 教师端逻辑删除,学生端不做判断 |
|
|
|
-- and r.isdel = 0 |
|
|
|
-- and r.isdel = 0 |
|
|
@ -83,7 +85,7 @@ |
|
|
|
LEFT JOIN tms_experimental_teaching tet ON tet.project_id = tpr.projectId |
|
|
|
LEFT JOIN tms_experimental_teaching tet ON tet.project_id = tpr.projectId |
|
|
|
LEFT JOIN tms_experimental_report ter ON ter.projectId = tet.id |
|
|
|
LEFT JOIN tms_experimental_report ter ON ter.projectId = tet.id |
|
|
|
WHERE tpr.userId = #{pro.userid} |
|
|
|
WHERE tpr.userId = #{pro.userid} |
|
|
|
AND tpr.isdel >= #{pro.isdel} |
|
|
|
AND tpr.isdel >= #{pro.isdel} |
|
|
|
AND tp.projectPermissions !=0 |
|
|
|
AND tp.projectPermissions !=0 |
|
|
|
AND |
|
|
|
AND |
|
|
|
ter.eventId = tpr.recordId |
|
|
|
ter.eventId = tpr.recordId |
|
|
|