|
@@ -25,7 +25,7 @@
|
|
|
<select id="detail" resultType="com.yonge.cooleshow.biz.dal.vo.MusicianAuthEntryRecordVo">
|
|
|
select
|
|
|
<include refid="baseColumns"/>,
|
|
|
- u.real_name_ as realName,
|
|
|
+ ifnull(u.real_name_,u.username_) as realName,
|
|
|
u.id_card_no_ as idCardNo,
|
|
|
(
|
|
|
SELECT u.username_ FROM sys_user u WHERE u.id_ = t.verify_user_id_
|
|
@@ -37,9 +37,9 @@
|
|
|
, te.grad_certificate_ as "gradCertificate"
|
|
|
, te.degree_certificate_ as "degreeCertificate"
|
|
|
, te.teacher_certificate_ as "teacherCertificate"
|
|
|
- from teacher_auth_entry_record t
|
|
|
+ from teacher_auth_musician_record t
|
|
|
+ left join teacher_auth_entry_record te on t.user_id_ = te.user_id_ and te.teacher_auth_status_ in ('DOING','PASS')
|
|
|
left join sys_user u on t.user_id_ = u.id_
|
|
|
- left join teacher te on t.user_id_ = te.user_id_
|
|
|
where t.id_ = #{id}
|
|
|
</select>
|
|
|
|
|
@@ -47,7 +47,7 @@
|
|
|
<select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicianAuthEntryRecordVo">
|
|
|
SELECT
|
|
|
<include refid="baseColumns"/>,
|
|
|
- u.real_name_ as realName,
|
|
|
+ ifnull(u.real_name_,u.username_) as realName,
|
|
|
u.id_card_no_ as idCardNo,
|
|
|
u.phone_ as phone,
|
|
|
v.username_ as verifyUser
|