소스 검색

Merge branch 'maintenance_feature' into online1

周箭河 4 년 전
부모
커밋
75c051833a
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[
         UPDATE student_instrument
         SET status_ = 0
-        WHERE end_time_ <= NOW()
+        WHERE status_ = 0
+          AND end_time_ <= NOW()
         ]]>
     </update>
     <select id="getListByEndTime" resultMap="StudentInstrument">