|
|
@ -40,6 +40,7 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--练习记录--> |
|
|
|
<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 re.reportId, |
|
|
|
SELECT re.reportId, |
|
|
@ -60,11 +61,13 @@ |
|
|
|
-- 教师端逻辑删除,学生端不做判断 |
|
|
|
-- 教师端逻辑删除,学生端不做判断 |
|
|
|
-- and r.isdel = 0 |
|
|
|
-- and r.isdel = 0 |
|
|
|
and projectPermissions = #{projectPermissions} |
|
|
|
and projectPermissions = #{projectPermissions} |
|
|
|
|
|
|
|
<if test="systemId!=null and systemId!=''"> |
|
|
|
and t.systemId = #{systemId} |
|
|
|
and t.systemId = #{systemId} |
|
|
|
|
|
|
|
</if> |
|
|
|
GROUP BY c.recordId desc |
|
|
|
GROUP BY c.recordId desc |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
<!-- 考核记录 --> |
|
|
|
<select id="getByUserExperimentRecord" resultType="com.msdw.tms.entity.vo.ProjectRecordVo"> |
|
|
|
<select id="getByUserExperimentRecord" resultType="com.msdw.tms.entity.vo.ProjectRecordVo"> |
|
|
|
SELECT tet.id, |
|
|
|
SELECT tet.id, |
|
|
|
ter.reportId, |
|
|
|
ter.reportId, |
|
|
@ -83,7 +86,9 @@ |
|
|
|
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 systemId = #{systemId} |
|
|
|
|
|
|
|
|
|
|
|
<if test="systemId!=null and systemId!=''">and systemId = #{systemId}</if> |
|
|
|
|
|
|
|
|
|
|
|
AND tpr.isdel >= #{pro.isdel} |
|
|
|
AND tpr.isdel >= #{pro.isdel} |
|
|
|
AND tp.projectPermissions !=0 |
|
|
|
AND tp.projectPermissions !=0 |
|
|
|
AND |
|
|
|
AND |
|
|
|