|
@@ -668,12 +668,6 @@
|
|
|
GROUP BY mg.organ_id_
|
|
|
</select>
|
|
|
|
|
|
-
|
|
|
- <resultMap id="UserGroupDto" type="com.ym.mec.biz.dal.dto.UserGroupDto">
|
|
|
- <result column="user_id_" property="userId"/>
|
|
|
- <result column="group_id_" property="groupId"/>
|
|
|
- <result column="group_name_" property="groupName"/>
|
|
|
- </resultMap>
|
|
|
<select id="getUserGroups" resultMap="UserGroupDto">
|
|
|
SELECT DISTINCT sr.user_id_, mg.id_ group_id_, mg.name_ group_name_ FROM student_registration sr
|
|
|
LEFT JOIN music_group mg ON sr.music_group_id_=mg.id_
|