|
|
|
@ -84,7 +84,8 @@ |
|
|
|
|
<update id="deleteReport"> |
|
|
|
|
UPDATE tms_project_record tpr,hr_experimental_report tcr |
|
|
|
|
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 id="updateComment"> |
|
|
|
|
UPDATE tms_experimental_report |
|
|
|
@ -483,12 +484,24 @@ |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<select id="getImitationAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
|
SELECT r.recordId, schoolName, userName, workNumber, score, submitTime |
|
|
|
|
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 |
|
|
|
|
WHERE r.projectId = #{projectId}; |
|
|
|
|
SELECT r.recordId, |
|
|
|
|
schoolName, |
|
|
|
|
userName, |
|
|
|
|
workNumber, |
|
|
|
|
score, |
|
|
|
|
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> |
|
|
|
|
|
|
|
|
|
</mapper> |