上传代码

hehai
rong.liu 4 years ago
parent 2921bbd0be
commit f54c577673
  1. 9
      src/main/java/com/msdw/tms/entity/resp/GetByUserRecordResp.java
  2. 6
      src/main/resources/mapper/tms/ProjectRecordDao.xml

@ -23,6 +23,7 @@ public class GetByUserRecordResp {
private Integer timeSum;
private Integer userId;
private Integer systemId;
private Integer reportId;
public Integer getSystemId() {
return systemId;
@ -95,4 +96,12 @@ public class GetByUserRecordResp {
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getReportId() {
return reportId;
}
public void setReportId(Integer reportId) {
this.reportId = reportId;
}
}

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

Loading…
Cancel
Save