|
@@ -198,7 +198,7 @@
|
|
AND cs.group_type_ = 'COMM'
|
|
AND cs.group_type_ = 'COMM'
|
|
AND cg.student_num_ = 0
|
|
AND cg.student_num_ = 0
|
|
AND csg.status_='NORMAL'
|
|
AND csg.status_='NORMAL'
|
|
- GROUP BY csg.id_ HAVING MAX(cs.class_date_)<=DATE_FORMAT(#{startDate}, '%Y-%m-%d')
|
|
|
|
|
|
+ GROUP BY csg.id_ HAVING MIN(cs.class_date_)<=DATE_FORMAT(#{startDate}, '%Y-%m-%d')
|
|
</select>
|
|
</select>
|
|
<select id="findNoCoursesGroups" resultMap="CoursesGroup">
|
|
<select id="findNoCoursesGroups" resultMap="CoursesGroup">
|
|
SELECT
|
|
SELECT
|