浏览代码

Merge remote-tracking branch 'origin/online1' into online1

Joburgess 4 年之前
父节点
当前提交
1e3989a446
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mec-biz/src/main/resources/config/mybatis/StudentInstrumentMapper.xml

+ 2 - 1
mec-biz/src/main/resources/config/mybatis/StudentInstrumentMapper.xml

@@ -164,7 +164,8 @@
    <![CDATA[
    <![CDATA[
         UPDATE student_instrument
         UPDATE student_instrument
         SET status_ = 0
         SET status_ = 0
-        WHERE end_time_ <= NOW()
+        WHERE status_ = 1
+          AND end_time_ <= NOW()
         ]]>
         ]]>
     </update>
     </update>
     <select id="getListByEndTime" resultMap="StudentInstrument">
     <select id="getListByEndTime" resultMap="StudentInstrument">