|
@@ -189,13 +189,13 @@
|
|
|
<where>
|
|
|
cgsm.status_ != 'QUIT'
|
|
|
<if test="studentId!=null">
|
|
|
- and cgsm.user_id_=#{studentId}
|
|
|
+ and cgsm.user_id_ = #{studentId}
|
|
|
</if>
|
|
|
<if test="musicGroupId!=null">
|
|
|
- and cg.music_group_id_=#{musicGroupId} AND cg.group_type_='MUSIC'
|
|
|
+ and cg.music_group_id_ = #{musicGroupId} AND cg.group_type_='MUSIC'
|
|
|
</if>
|
|
|
<if test="classGroupType!=null">
|
|
|
- and cg.type_=#{classGroupType}
|
|
|
+ and cg.type_ = #{classGroupType}
|
|
|
</if>
|
|
|
<if test="courseStatus!=null">
|
|
|
and cs.status_=#{courseStatus}
|
|
@@ -207,7 +207,7 @@
|
|
|
and su.username_ like CONCAT("%",#{teacherName},"%")
|
|
|
</if>
|
|
|
<if test="vipGroupId!=null">
|
|
|
- and cg.music_group_id_=#{vipGroupId} AND cg.group_type_='VIP'
|
|
|
+ and cg.music_group_id_ = #{vipGroupId} AND cg.group_type_='VIP'
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
@@ -239,14 +239,15 @@
|
|
|
|
|
|
<sql id="studentManageAttendanceQueryCondition">
|
|
|
<where>
|
|
|
+ CONCAT(cs.class_date_," ",cs.start_class_time_) < NOW()
|
|
|
<if test="studentId!=null">
|
|
|
- and sa.user_id_=#{studentId}
|
|
|
+ and sa.user_id_ = #{studentId}
|
|
|
</if>
|
|
|
<if test="classGroupType!=null">
|
|
|
- and cg.type_=#{classGroupType}
|
|
|
+ and cg.type_ = #{classGroupType}
|
|
|
</if>
|
|
|
<if test="attendanceStatus!=null">
|
|
|
- and sa.status_=#{attendanceStatus, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ and sa.status_ = #{attendanceStatus, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
<if test="classGroupName!=null">
|
|
|
and cg.name_ like CONCAT("%",#{classGroupName},"%")
|