【修改】试卷任务,【新增】试题交互,定时试题交互
This commit is contained in:
@@ -41,7 +41,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="sort" column="sort"/>
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="pc.exam.pp.module.exam.controller.admin.question.vo.TenantVo" id="TenantVoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="ququeName" column="queue_name" />
|
||||
</resultMap>
|
||||
<sql id="selectExamQuestionVo">
|
||||
select qu_id, qu_bank_id, qu_bank_name, chapterId_dict_text,subject_name, qu_level,
|
||||
content, content_text, analysis, point_names, keywords, manual, create_time, creator, update_time, updater, deleted ,status,audit ,course_name, specialty_name from exam_question
|
||||
@@ -75,6 +79,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
CASE WHEN a.sort IS NOT NULL THEN 0 ELSE 1 END,
|
||||
a.sort ASC
|
||||
</select>
|
||||
<select id="getSchoolName" resultMap="TenantVoResult">
|
||||
SELECT id, name, queue_name
|
||||
FROM system_tenant
|
||||
WHERE deleted = 0
|
||||
<if test="name != null and name != ''">
|
||||
AND name LIKE CONCAT('%', #{name}, '%')
|
||||
</if>
|
||||
LIMIT #{pageSize} OFFSET #{offset}
|
||||
</select>
|
||||
<select id="getSchoolNameTotal" resultType="java.lang.Long">
|
||||
SELECT count(*)
|
||||
FROM system_tenant
|
||||
WHERE id != 1 AND deleted = 0
|
||||
<if test="name != null and name != ''">
|
||||
AND name LIKE CONCAT('%', #{name}, '%')
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectExamQuestionByQuIdAndTenantId"
|
||||
resultMap="ExamQuestionResult">
|
||||
<include refid="selectExamQuestionVo"/>
|
||||
where qu_id = #{quId} and tenant_id= #{source}
|
||||
|
||||
</select>
|
||||
<select id="seleAllQueueName" resultType="java.lang.String">
|
||||
SELECT queue_name
|
||||
FROM system_tenant
|
||||
WHERE deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertExamQuestion" parameterType="ExamQuestion">
|
||||
@@ -170,6 +202,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="setQuestionAuditByids">
|
||||
UPDATE exam_question
|
||||
SET audit = '2'
|
||||
WHERE qu_id IN
|
||||
<foreach collection="quIds" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="auditQueByIds">
|
||||
UPDATE exam_question
|
||||
SET audit = '0'
|
||||
WHERE qu_id IN
|
||||
<foreach collection="quIds" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="noAuditQue">
|
||||
|
||||
UPDATE exam_question
|
||||
SET audit = '3'
|
||||
WHERE qu_id IN
|
||||
<foreach collection="quIds" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user