|
@@ -68,6 +68,8 @@
|
|
|
<result column="care_package_" property="carePackage"/>
|
|
|
<result column="come_on_package_" property="comeOnPackage"/>
|
|
|
<result column="grade_type_" property="gradeType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
+ <result column="cooperation_organ_id_" property="cooperationOrganId"/>
|
|
|
+ <result column="cooperation_organ_name_" property="cooperationOrganName"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="queryCondition">
|
|
@@ -158,13 +160,15 @@
|
|
|
tu.`real_name_` teacher_name_,CASE s.service_tag_ WHEN 2 THEN 0 ELSE s.service_tag_ END service_tag_ ,s.`operating_tag_` ,
|
|
|
s.care_package_, s.come_on_package_, suca.`course_balance_` ,suca.balance_,
|
|
|
sub.`name_` music_group_subject_ ,su.birthdate_,s.subject_id_list_,s.teacher_id_,s.current_grade_num_,s.current_class_,
|
|
|
- case when su.password_ is null then false else true end isActive_,s.is_new_user_,case when sut.user_id_ is null then 0 else 1 end is_signed_contract_
|
|
|
+ case when su.password_ is null then false else true end isActive_,s.is_new_user_,case when sut.user_id_ is null then 0 else 1 end is_signed_contract_,
|
|
|
+ s.cooperation_organ_id_,co.name_ cooperation_organ_name_
|
|
|
FROM `student` s LEFT JOIN `sys_user` su on s.`user_id_` = su.`id_`
|
|
|
LEFT JOIN `organization` o on o.`id_` = su.`organ_id_`
|
|
|
LEFT JOIN `sys_user` tu on tu.`id_` = s.`teacher_id_`
|
|
|
LEFT JOIN `sys_user_cash_account` suca on suca.`user_id_` = s.`user_id_`
|
|
|
LEFT JOIN `subject` sub on sub.id_ = s.`subject_id_list_`
|
|
|
left join sys_user_tsign sut on sut.user_id_ = s.user_id_
|
|
|
+ LEFT JOIN cooperation_organ co ON s.cooperation_organ_id_=co.id_
|
|
|
<include refid="findStudentsByOrganIdSql"/>
|
|
|
ORDER BY su.create_time_ DESC
|
|
|
<include refid="global.limit"/>
|