|
@@ -35,6 +35,7 @@
|
|
<result column="id_" property="id" />
|
|
<result column="id_" property="id" />
|
|
<result column="user_id_" property="userId" />
|
|
<result column="user_id_" property="userId" />
|
|
<result column="name_" property="name" />
|
|
<result column="name_" property="name" />
|
|
|
|
+ <result column="po_name" property="schoolName" />
|
|
<result column="sex_" property="sex" />
|
|
<result column="sex_" property="sex" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="city_" property="city" />
|
|
<result column="city_" property="city" />
|
|
@@ -188,8 +189,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="queryUserPage" resultMap="ApplyInfoPage" parameterType="map">
|
|
<select id="queryUserPage" resultMap="ApplyInfoPage" parameterType="map">
|
|
- SELECT ao.*,cgi.sub_name_ sub_name_ FROM (SELECT ai.*,o.amount amount_ FROM apply_info ai
|
|
|
|
- LEFT JOIN (SELECT * FROM `order` WHERE id IN (SELECT DISTINCT(user_id) FROM `order` WHERE class_id = #{musicTeamId})) o
|
|
|
|
|
|
+ SELECT ao.*,cgi.sub_name_ sub_name_ FROM (SELECT ai.*,o.amount amount_,o.po_name FROM apply_info ai
|
|
|
|
+ LEFT JOIN (SELECT * FROM `order` WHERE id IN (SELECT MAX(id) FROM `order` WHERE class_id = #{musicTeamId} GROUP BY user_id)) o
|
|
ON ai.id_ = o.user_id <include refid="studentsPage"/>) ao
|
|
ON ai.id_ = o.user_id <include refid="studentsPage"/>) ao
|
|
LEFT JOIN course_group_info cgi ON ao.course_id_ = cgi.id_
|
|
LEFT JOIN course_group_info cgi ON ao.course_id_ = cgi.id_
|
|
ORDER BY ao.update_time_ DESC
|
|
ORDER BY ao.update_time_ DESC
|