瀏覽代碼

Merge remote-tracking branch 'origin/ywx' into wn

tags/正式3.11.0
王宁 1 年之前
父節點
當前提交
2c15c353d0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      sstudy/src/main/resources/mapper/question/QuestionMapper.xml

+ 2
- 2
sstudy/src/main/resources/mapper/question/QuestionMapper.xml 查看文件

@@ -273,11 +273,11 @@
273 273
     </select>
274 274
     <!--修改试题状态-->
275 275
     <update id="updateQuestionState">
276
-        update t_question set qstate=#{qstate} where questionid in (${questionIds})
276
+        update t_question set qstate=#{qstate} where questionid in (${questionIds}) or shareqid in (${questionIds})
277 277
     </update>
278 278
     <!--更新单个试题状态-->
279 279
     <update id="updateState">
280
-        update t_question set qstate=#{qstate} where questionid=#{questionid}
280
+        update t_question set qstate=#{qstate} where questionid=#{questionid} or shareqid=#{questionid}
281 281
     </update>
282 282
     <!--更新组题次数-->
283 283
     <update id="updateCount">

Loading…
取消
儲存