增加字段

hehai
rong.liu 4 years ago
parent 4c1bd6d6f7
commit 0710ea54a6
  1. 8
      src/main/java/com/msdw/tms/entity/vo/AchievementManagementVO.java
  2. 27
      src/main/resources/mapper/tms/AchievementManagementDao.xml

@ -32,7 +32,7 @@ public class AchievementManagementVO extends ExperimentalReportEntity {
//提交时间 //提交时间
private String submitTime; private String submitTime;
//=========================================================== 返回参数 //=========================================================== 返回参数
//项目名称 //项目名称
private String projectName; private String projectName;
@ -46,7 +46,7 @@ public class AchievementManagementVO extends ExperimentalReportEntity {
private String creationTime; private String creationTime;
//类型(1虚拟仿真,2教学实验) //类型(1虚拟仿真,2教学实验)
private Integer type; private Integer type;
// //
private Integer projectPermissions; private Integer projectPermissions;
//创建时间 //创建时间
@ -55,6 +55,8 @@ public class AchievementManagementVO extends ExperimentalReportEntity {
//实验记录id(tms_experimental_report主键) //实验记录id(tms_experimental_report主键)
private Integer recordId; private Integer recordId;
private Integer reportId;
//老师签名 存放路径 //老师签名 存放路径
private String signatureUrl; private String signatureUrl;
//签名名称 //签名名称
@ -72,7 +74,7 @@ public class AchievementManagementVO extends ExperimentalReportEntity {
//平台id //平台id
private Integer systemId; private Integer systemId;
//=========================================================== python实验数据 //=========================================================== python实验数据
//判分点id //判分点id
private Integer codeId; private Integer codeId;
//判分点-得分 //判分点-得分

@ -84,7 +84,8 @@
<update id="deleteReport"> <update id="deleteReport">
UPDATE tms_project_record tpr,hr_experimental_report tcr UPDATE tms_project_record tpr,hr_experimental_report tcr
SET tpr.isdel = 1, tcr.isdel = 1 SET tpr.isdel = 1, tcr.isdel = 1
WHERE tpr.recordId = #{recordId} AND tcr.reportId = #{reportId} WHERE tpr.recordId = #{recordId}
AND tcr.reportId = #{reportId}
</update> </update>
<update id="updateComment"> <update id="updateComment">
UPDATE tms_experimental_report UPDATE tms_experimental_report
@ -483,12 +484,24 @@
</update> </update>
<select id="getImitationAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> <select id="getImitationAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO">
SELECT r.recordId, schoolName, userName, workNumber, score, submitTime SELECT r.recordId,
from tms_project_record r schoolName,
inner join student s on s.userId = r.userId userName,
inner join hr_user_info u on u.userId = r.userId workNumber,
inner join school sch on sch.schoolId = u.schoolId score,
WHERE r.projectId = #{projectId}; submitTime,
re.reportId
FROM tms_project_record r
INNER JOIN student s ON s.userId = r.userId
INNER JOIN hr_user_info u ON u.userId = r.userId
INNER JOIN school sch ON sch.schoolId = u.schoolId
inner join tms_experimental_report re on r.recordId = re.eventId
WHERE r.projectId = #{projectId}
AND r.isdel = 0
AND s.isdel = 0
AND u.isdel = 0
AND sch.isdel = 0
AND re.isdel = 0;
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save