|
|
@ -84,7 +84,8 @@ |
|
|
|
<update id="deleteReport"> |
|
|
|
<update id="deleteReport"> |
|
|
|
UPDATE tms_project_record tpr,tms_experimental_report ter |
|
|
|
UPDATE tms_project_record tpr,tms_experimental_report ter |
|
|
|
SET tpr.isdel = 1, ter.isdel = 1 |
|
|
|
SET tpr.isdel = 1, ter.isdel = 1 |
|
|
|
WHERE tpr.recordId = #{recordId} AND ter.reportId = #{reportId} |
|
|
|
WHERE tpr.recordId = #{recordId} |
|
|
|
|
|
|
|
AND ter.reportId = #{reportId} |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
<update id="updateComment"> |
|
|
|
<update id="updateComment"> |
|
|
|
UPDATE tms_experimental_report |
|
|
|
UPDATE tms_experimental_report |
|
|
@ -371,7 +372,7 @@ |
|
|
|
WHERE project_id = #{projectId} |
|
|
|
WHERE project_id = #{projectId} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="queryPythonTest" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
<select id="queryPythonTest" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
SELECT hec.`code` AS userAnswer, |
|
|
|
SELECT hec.`code` AS userAnswer, |
|
|
|
hec.codeId, |
|
|
|
hec.codeId, |
|
|
|
IF |
|
|
|
IF |
|
|
|
(p.rightAndWrong = 0, hsi.score, 0) AS codeScore, |
|
|
|
(p.rightAndWrong = 0, hsi.score, 0) AS codeScore, |
|
|
@ -503,22 +504,43 @@ |
|
|
|
AND re.isdel = 0; |
|
|
|
AND re.isdel = 0; |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--SELECT r.recordId, schoolName,tet.experimental_class_name, userName, workNumber, score, submitTime, ter.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 ter on r.recordId = ter.eventId |
|
|
|
|
|
|
|
inner join tms_experimental_teaching tet on r.projectId = tet.project_id |
|
|
|
|
|
|
|
WHERE |
|
|
|
|
|
|
|
tet.id = #{id} |
|
|
|
|
|
|
|
AND r.isdel = 0 |
|
|
|
|
|
|
|
AND s.isdel = 0 |
|
|
|
|
|
|
|
AND u.isdel = 0 |
|
|
|
|
|
|
|
AND sch.isdel = 0 |
|
|
|
|
|
|
|
AND ter.isdel = 0 |
|
|
|
|
|
|
|
AND tet.is_del = 0--> |
|
|
|
<select id="getTeachAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
<select id="getTeachAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
SELECT r.recordId, schoolName,tet.experimental_class_name, userName, workNumber, score, submitTime, ter.reportId |
|
|
|
SELECT schoolName, |
|
|
|
from tms_project_record r |
|
|
|
experimental_class_name, |
|
|
|
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 |
|
|
|
r.score, |
|
|
|
inner join tms_experimental_report ter on r.recordId = ter.eventId |
|
|
|
r.recordId, |
|
|
|
inner join tms_experimental_teaching tet on r.projectId = tet.project_id |
|
|
|
report.reportId |
|
|
|
WHERE |
|
|
|
FROM tms_experimental_teaching t |
|
|
|
tet.id = #{id} |
|
|
|
INNER JOIN tms_experimental_report report ON report.projectId = t.id |
|
|
|
AND r.isdel = 0 |
|
|
|
INNER JOIN tms_project_record r ON r.recordId = report.eventId |
|
|
|
AND s.isdel = 0 |
|
|
|
INNER JOIN hr_user_info u ON u.userId = r.userId |
|
|
|
AND u.isdel = 0 |
|
|
|
INNER JOIN school s ON s.schoolId = u.schoolId |
|
|
|
AND sch.isdel = 0 |
|
|
|
INNER JOIN student stu ON stu.userId = u.userId |
|
|
|
AND ter.isdel = 0 |
|
|
|
WHERE t.id = #{id} |
|
|
|
AND tet.is_del = 0 |
|
|
|
AND t.is_del = 0 |
|
|
|
|
|
|
|
AND report.isdel = 0 |
|
|
|
|
|
|
|
AND r.isdel = 0 |
|
|
|
|
|
|
|
AND u.isdel = 0 |
|
|
|
|
|
|
|
AND s.isdel = 0 |
|
|
|
|
|
|
|
AND stu.isdel = 0; |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|