|
@@ -9,6 +9,7 @@
|
|
<resultMap type="com.ym.mec.biz.dal.entity.Student" id="Student">
|
|
<resultMap type="com.ym.mec.biz.dal.entity.Student" id="Student">
|
|
<result column="user_id_" property="userId"/>
|
|
<result column="user_id_" property="userId"/>
|
|
<result column="subject_id_list_" property="subjectIdList"/>
|
|
<result column="subject_id_list_" property="subjectIdList"/>
|
|
|
|
+ <result column="subject_name_" property="subjectNames"/>
|
|
<result column="service_tag_" property="serviceTag"/>
|
|
<result column="service_tag_" property="serviceTag"/>
|
|
<result column="operating_tag_" property="operatingTag"/>
|
|
<result column="operating_tag_" property="operatingTag"/>
|
|
<result column="operating_temp_tag_" property="operatingTempTag"/>
|
|
<result column="operating_temp_tag_" property="operatingTempTag"/>
|
|
@@ -1377,9 +1378,10 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="queryStudent" resultMap="Student">
|
|
<select id="queryStudent" resultMap="Student">
|
|
- SELECT s.*,su.username_,su.phone_,o.name_ organ_name_ FROM student s
|
|
|
|
|
|
+ SELECT s.*,su.username_,su.phone_,o.name_ organ_name_,sb.name_ subject_name_ FROM student s
|
|
LEFT JOIN sys_user su ON su.id_ = s.user_id_
|
|
LEFT JOIN sys_user su ON su.id_ = s.user_id_
|
|
LEFT JOIN organization o ON o.id_ = su.organ_id_
|
|
LEFT JOIN organization o ON o.id_ = su.organ_id_
|
|
|
|
+ LEFT JOIN subject sb ON sb.id_ = s.subject_id_list_
|
|
<where>
|
|
<where>
|
|
<if test="studentIds != null and studentIds.size > 0">
|
|
<if test="studentIds != null and studentIds.size > 0">
|
|
AND s.user_id_ IN
|
|
AND s.user_id_ IN
|