|
|
@@ -239,9 +239,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="checkCrossLiveTime" parameterType="map" resultType="long">
|
|
|
- SELECT count(*) from course_section cs where (#{startTime} >= cs.live_start_time and cs.live_end_time >= #{startTime})
|
|
|
+ SELECT count(*) from course_section cs where ((#{startTime} >= cs.live_start_time and cs.live_end_time >= #{startTime})
|
|
|
or (cs.live_end_time >= #{endTime} and #{endTime} >= cs.live_start_time) or (cs.live_start_time >= #{startTime} and
|
|
|
- #{endTime} >= cs.live_end_time)
|
|
|
+ #{endTime} >= cs.live_end_time))
|
|
|
<if test="sectionId != null and sectionId != ''">
|
|
|
AND cs.section_id != #{sectionId}
|
|
|
</if>
|