소스 검색

FIX:修复营期开始时间判断错误导致营期异常开启的问题

Long 1 주 전
부모
커밋
6df44cfe50
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      fs-service-system/src/main/resources/mapper/course/FsUserCoursePeriodDaysMapper.xml

+ 3 - 1
fs-service-system/src/main/resources/mapper/course/FsUserCoursePeriodDaysMapper.xml

@@ -160,9 +160,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </update>
 
     <update id="startPeriodCourse">
+    <![CDATA[
         update fs_user_course_period_days ucpd
         set ucpd.status = 1, ucpd.update_time = #{now}
-        where ucpd.status = 0 and ucpd.start_date_time >= #{now}
+        where ucpd.status = 0 and ucpd.start_date_time <= #{now}
+    ]]>
     </update>
 
     <update id="endPeriodCourse">