Browse Source

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

tags/正式3.11.0
王宁 1 year ago
parent
commit
2c15c353d0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sstudy/src/main/resources/mapper/question/QuestionMapper.xml

+ 2
- 2
sstudy/src/main/resources/mapper/question/QuestionMapper.xml View File

@@ -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…
Cancel
Save