代码上传

hehai
rong.liu 4 years ago
parent 8eae903671
commit 0d7a844cd8
  1. 1
      src/main/java/com/msdw/tms/service/ProjectRecordService.java
  2. 13
      src/main/resources/mapper/tms/ProjectRecordDao.xml

@ -22,6 +22,7 @@ public interface ProjectRecordService extends IService<ProjectRecordEntity> {
PageUtils queryExperimentPage(Integer page, Integer size, Integer userid,Integer systemId); PageUtils queryExperimentPage(Integer page, Integer size, Integer userid,Integer systemId);
//学生端实验概览
ProjectRecordVo queryUserScore(Integer userId); ProjectRecordVo queryUserScore(Integer userId);
ProjectRecordVo queryScore(Integer userId); ProjectRecordVo queryScore(Integer userId);

@ -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,
@ -57,14 +58,16 @@
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 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
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

Loading…
Cancel
Save