【修改】word、excel补全,判分修改,超级管理员可以直接删除试卷任务

This commit is contained in:
huababa1
2025-08-17 23:24:09 +08:00
parent 0175ccef67
commit dfefc08fd6
21 changed files with 4040 additions and 525 deletions

View File

@@ -43,6 +43,7 @@
LEFT JOIN education_paper_person pp ON s.id = pp.person_id
WHERE
s.user_type = #{userType}
and s.deleted = 0
AND s.id IN (
SELECT person_id FROM education_paper_person WHERE
session_id ='' and
@@ -83,6 +84,7 @@
LEFT JOIN education_paper_person pp ON s.id = pp.person_id
WHERE
s.user_type = #{userType}
and s.deleted = 0
AND s.id NOT IN (
SELECT person_id FROM education_paper_person WHERE task_id =#{taskId}
)
@@ -138,6 +140,7 @@
LEFT JOIN education_paper_person pp ON s.id = pp.person_id
WHERE
s.user_type = #{userType}
and s.deleted = 0
AND s.id IN (
SELECT person_id FROM education_paper_person WHERE
session_id ='' and
@@ -164,6 +167,7 @@
LEFT JOIN education_paper_person pp ON s.id = pp.person_id
WHERE
s.user_type = #{userType}
and s.deleted = 0
AND s.id NOT IN (
SELECT person_id FROM education_paper_person WHERE task_id =#{taskId}
)

View File

@@ -40,12 +40,17 @@
LIMIT 1;
</select>
<select id="selectUsedQuestionIds" resultType="java.lang.String">
SELECT DISTINCT qu_id
FROM education_paper_qu
WHERE qu_id IN
SELECT DISTINCT epq.qu_id
FROM education_paper_qu epq
JOIN education_paper ep ON ep.paper_id = epq.paper_id
JOIN education_paper_task ept ON ept.task_id = ep.task_id
WHERE epq.qu_id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
AND ept.task_type IN ('0','1','3')
and ep.deleted ='0'
and ept.deleted ='0';
</select>
<select id="selectByPaperIdAndType" resultType="java.lang.String">
SELECT epq.qu_id

View File

@@ -192,6 +192,17 @@
and course.deleted ='0'
GROUP BY course.sp_id, course.sp_name, major.sp_name
</select>
<select id="selectUserRoleId" resultType="java.lang.String">
select role_id from system_user_role where user_id =#{loginUserId}
</select>
<select id="selectUserRole" resultType="java.lang.String">
select name
from system_role
where id in
<foreach collection="list" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</select>
<insert id="insertEducationPaperTask" parameterType="EducationPaperTask">