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
     </select>
273
     </select>
274
     <!--修改试题状态-->
274
     <!--修改试题状态-->
275
     <update id="updateQuestionState">
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
     </update>
277
     </update>
278
     <!--更新单个试题状态-->
278
     <!--更新单个试题状态-->
279
     <update id="updateState">
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
     </update>
281
     </update>
282
     <!--更新组题次数-->
282
     <!--更新组题次数-->
283
     <update id="updateCount">
283
     <update id="updateCount">

Loading…
Cancel
Save