|
@@ -338,11 +338,17 @@
|
|
|
LEFT JOIN class_group cg on pg.id_ = cg.music_group_id_ AND cg.group_type_ = 'PRACTICE'
|
|
|
WHERE pg.courses_start_date_ <= #{nowDate,jdbcType=DATE}
|
|
|
AND pg.courses_expire_date_ >= #{afterDate,jdbcType=DATE}
|
|
|
- AND DATE_FORMAT(pg.courses_expire_date_, '%d') = DATE_FORMAT(#{afterDate}, '%d')
|
|
|
+ ]]>
|
|
|
+ <if test="afterDateIsLastDay == false">
|
|
|
+ AND DATE_FORMAT(pg.courses_expire_date_, '%d') = DATE_FORMAT(#{afterDate}, '%d')
|
|
|
+ </if>
|
|
|
+ <if test="afterDateIsLastDay == true">
|
|
|
+ <![CDATA[ AND DATE_FORMAT(pg.courses_expire_date_, '%d') >= DATE_FORMAT(#{afterDate}, '%d') ]]>
|
|
|
+ </if>
|
|
|
AND cg.del_flag_ = 0
|
|
|
AND pg.group_status_ != 'CANCEL'
|
|
|
AND pg.group_status_ != 'LOCK'
|
|
|
- ]]>
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<select id="getReportCourseTimes" resultMap="com.ym.mec.biz.dal.dao.ClassGroupDao.ClassGroup">
|