cgsm.user_id_ IS NOT NULL
AND s.organ_id_=#{organID}
and mg.id_ = #{musicGroupId}
and cgsm.status_ = #{studentStatus, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
and (su.username_ like CONCAT("%",#{queryString},"%")
or su.phone_ like CONCAT("%",#{queryString},"%")
)
UPDATE sys_user
del_flag_ = #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
wx_openid_ = #{wxOpenid},
avatar_ = #{avatar},
email_ = #{email},
gender_ = #{gender},
salt_ = #{salt},
username_ = #{username},
user_type_ = #{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
update_time_ = NOW(),
lock_flag_ = #{lockFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
birthdate_ = #{birthdate},
phone_ = #{phone},
qq_openid_ = #{qqOpenid},
nation_ = #{nation},
organ_id_ = #{organId},
im_token_ = #{imToken},
id_card_no_ = #{idCardNo},
wechat_id_ = #{wechatId},
real_name = #{realName},
WHERE id_ = #{id}
AND su.organ_id_=#{organId}
AND su.username_ LIKE CONCAT('%',#{studentName},'%')
AND (sr.parents_name_ LIKE CONCAT('%',#{search},'%') OR sr.parents_phone_ LIKE CONCAT('%',#{search},'%'))
and cgsm.user_id_=#{studentId}
and cg.music_group_id_=#{musicGroupId}
and cg.type_=#{classGroupType}
and cs.status_=#{courseStatus}
and cg.name_ like CONCAT("%",#{classGroupName},"%")
and su.username_ like CONCAT("%",#{teacherName},"%")
and vgcgm.vip_group_id_=#{vipGroupId}
and sa.user_id_=#{studentId}
and cg.type_=#{classGroupType}
and sa.status_=#{attendanceStatus, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
and cg.name_ like CONCAT("%",#{classGroupName},"%")
and su.real_name_ like CONCAT("%",#{teacherName},"%")
AND cs.type_ = #{classGroupType}
AND cs.name_ = #{classGroupName}
AND sa.status_ = #{attendanceStatus}
AND cssp.user_id_ = #{studentId}
AND (su.real_name_ like CONCAT("%",#{search},"%") OR sr.parents_phone_ like CONCAT("%",#{search},"%"))
AND sr.actual_subject_id_ = #{subjectId}
AND sr.music_group_status_ = #{studentStatus}
AND mgsf.payment_status_ = #{paymentStatus}
AND sr.music_group_id_ = #{musicGroupId}