【修改】试题、人员、试卷任务删除提示xx编号不能删除
This commit is contained in:
@@ -127,6 +127,16 @@ select task_id from education_paper where paper_id=#{paperId}
|
||||
<select id="selectPaperIdAndNumByTaskId" resultMap="PaperIdAndNumResult">
|
||||
select paper_id ,num from education_paper where task_id=#{taskId} and deleted ='0'
|
||||
</select>
|
||||
<select id="countPapersByTaskId" resultType="java.lang.Integer">
|
||||
select count(*) from education_paper where task_id =#{taskId}
|
||||
</select>
|
||||
<select id="selectTaskNumByids" resultType="java.lang.String">
|
||||
select task_num from education_paper_task
|
||||
WHERE task_id IN
|
||||
<foreach collection="cannotDeleteTaskIds" item="taskId" open="(" separator="," close=")">
|
||||
#{taskId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEducationPaper" parameterType="EducationPaper">
|
||||
|
@@ -182,6 +182,12 @@
|
||||
AND s.class_id = #{classId}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectNameByids" resultType="java.lang.String">
|
||||
select username from system_users where id in
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEducationPaperPerson" parameterType="EducationPaperPerson">
|
||||
|
@@ -133,6 +133,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectCountQu" resultType="java.lang.Integer">
|
||||
select count(*) from exam_question
|
||||
</select>
|
||||
<select id="selectQuNumBuIds" resultType="java.lang.String">
|
||||
select qu_num from exam_question where qu_id
|
||||
IN
|
||||
<foreach collection="list" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertExamQuestion" parameterType="ExamQuestion">
|
||||
@@ -249,15 +256,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<delete id="deleteExamQuestionByQuId" parameterType="String">
|
||||
UPDATE exam_question set deleted ='2' where qu_id = #{quId}
|
||||
</delete>
|
||||
<delete id="deleteExamQuestionByQuIds">
|
||||
UPDATE exam_question
|
||||
SET deleted = '2'
|
||||
WHERE qu_id IN
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
<update id="deleteExamQuestionByQuIds" parameterType="String">
|
||||
UPDATE exam_question
|
||||
SET deleted = '2'
|
||||
WHERE qu_id IN
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="setQuestionAuditByids">
|
||||
UPDATE exam_question
|
||||
SET audit = '2'
|
||||
|
Reference in New Issue
Block a user