|
@@ -81,22 +81,24 @@ WHERE
|
|
|
|
|
|
DROP VIEW IF EXISTS v_coach_info;
|
|
|
|
|
|
-CREATE VIEW v_coach_info AS
|
|
|
+CREATE OR REPLACE VIEW v_coach_info AS
|
|
|
SELECT
|
|
|
- cir.id AS info_record_id ,
|
|
|
+ cir.id AS id ,
|
|
|
cu.id AS coach_id ,
|
|
|
- cir.nickname AS nickname ,
|
|
|
+ cir.nickname AS nickname ,
|
|
|
cir.gender AS gender ,
|
|
|
- cir.mobile AS phone ,
|
|
|
- cir.intention_city AS intention_city ,
|
|
|
+ cir.mobile AS mobile ,
|
|
|
+ cir.birthday AS birthday ,
|
|
|
+ cir.intention_city AS intention_city ,
|
|
|
cir.introduction AS introduction ,
|
|
|
cu.state AS coach_state ,
|
|
|
- cir.state AS info_record_state ,
|
|
|
- cir.portrait_images AS portrait_images ,
|
|
|
- cir.life_photos AS life_photos ,
|
|
|
+ cir.state AS info_record_state ,
|
|
|
+ cir.portrait_images AS avatar ,
|
|
|
+ cir.life_photos AS life_photos ,
|
|
|
cir.auditor AS auditor ,
|
|
|
cir.audit_time AS audit_time ,
|
|
|
- cir.audit_remark AS audit_remark
|
|
|
+ cir.audit_remark AS audit_remark ,
|
|
|
+ cir.work_years AS work_years
|
|
|
FROM
|
|
|
coach_info_records cir
|
|
|
LEFT JOIN coach_users cu ON cu.id = cir.coach_id
|
|
@@ -122,13 +124,13 @@ SELECT
|
|
|
cir.mobile AS phone ,
|
|
|
cir.intention_city AS intention_city ,
|
|
|
cir.introduction AS introduction ,
|
|
|
- cir.portrait_images AS portrait_images ,
|
|
|
- cir.life_photos AS life_photos ,
|
|
|
+ cir.portrait_images AS avatar ,
|
|
|
+ cir.life_photos AS life_photos ,
|
|
|
cqr.business_license AS business_license ,
|
|
|
cqr.health_cert AS health_certificate ,
|
|
|
cr.id_card_front_photo AS id_card_front_photo ,
|
|
|
- cr.id_card_back_photo AS id_card_back_photo ,
|
|
|
- cr.id_card_hand_photo AS id_card_hand_photo ,
|
|
|
+ cr.id_card_back_photo AS id_card_back_photo ,
|
|
|
+ cr.id_card_hand_photo AS id_card_hand_photo ,
|
|
|
cqr.auditor AS auditor ,
|
|
|
cqr.audit_time AS audit_time ,
|
|
|
cqr.audit_remark AS audit_remark
|