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