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},
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},
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}
su.user_type_ = 'STUDENT'
AND FIND_IN_SET(su.organ_id_,#{organId})
AND (su.phone_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%') OR su.id_ LIKE CONCAT('%',#{search},'%'))
AND su.password_ is not null
AND su.password_ is null
AND su.id_ IN
#{item}
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
AND cgsm.status_ != 'QUIT'
and cgsm.user_id_ = #{studentId}
and cg.music_group_id_ = #{musicGroupId} AND cg.group_type_='MUSIC'
and cg.type_ = #{classGroupType}
and cs.status_=#{courseStatus}
and cg.name_ like CONCAT("%",#{classGroupName},"%")
and su.username_ like CONCAT("%",#{teacherName},"%")
and cg.music_group_id_ = #{vipGroupId} AND cg.group_type_='VIP'
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
AND CONCAT(cs.class_date_," ",cs.start_class_time_) < NOW()
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},"%")
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
AND cs.id_ IS NOT NULL AND CONCAT(cs.class_date_,' ',cs.start_class_time_) < NOW()
AND cs.type_ = #{classGroupType}
AND cs.name_ = #{classGroupName}
AND sa.status_ = #{attendanceStatus}
AND cssp.user_id_ = #{studentId}
AND (su.username_ 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}
and su.password_ is not null
and su.password_ is null
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
AND sa.music_group_id_ = #{musicGroupId}
AND cs.name_ LIKE CONCAT('%',#{courseScheduleName},'%')
AND sa.create_time_ >= #{startTime}
AND sa.create_time_ <= #{endTime}
AND sa.status_ = #{signStatus}
AND su.username_ LIKE CONCAT('%',#{userName},'%')
AND sa.class_group_id_ = #{classGroupId}
AND FIND_IN_SET(su.organ_id_,#{organId})
AND (su.phone_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%') OR su.id_ LIKE CONCAT('%',#{search},'%'))
and su.password_ is not null
and su.password_ is null
su.user_type_ = 'STUDENT'
AND FIND_IN_SET(su.organ_id_,#{organId})
AND (su.phone_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%') OR su.id_ LIKE CONCAT('%',#{search},'%'))
and su.password_ is not null
and su.password_ is null