【修改】拉取试题id,获取服务器列表【新增】试题审核时间、审核人

This commit is contained in:
YOHO\20373
2025-05-16 17:05:18 +08:00
parent 86188a7a54
commit 3a9e353359
6 changed files with 51 additions and 9 deletions

View File

@@ -107,6 +107,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM system_tenant
WHERE deleted = 0
</select>
<select id="selectExamQuestionCountByQuId" resultType="java.lang.Integer">
select count(*) from exam_question where qu_id=#{quId}
</select>
<select id="getSchoolNameNaPage" resultMap="TenantVoResult">
SELECT id, name, queue_name
FROM system_tenant
WHERE deleted = 0
</select>
<insert id="insertExamQuestion" parameterType="ExamQuestion">
@@ -227,6 +235,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</update>
<update id="updateExamQuestionByIds">
UPDATE exam_question
SET updater = #{updater},
update_time = now()
WHERE qu_id IN
<foreach collection="quIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -16,10 +16,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
create_teacher = VALUES(create_teacher),
type = VALUES(type),
create_time=now()
</insert>
<select id="selectSchoolName" resultType="java.lang.String">
select name from system_tenant where id =#{source}