|
@@ -213,12 +213,14 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
" lu.head_img,\n" +
|
|
" lu.head_img,\n" +
|
|
|
" lu.nick_name,\n" +
|
|
" lu.nick_name,\n" +
|
|
|
" lu.personal_introduction,\n" +
|
|
" lu.personal_introduction,\n" +
|
|
|
- " lu.commission_rate,\n" +
|
|
|
|
|
|
|
+ " lf.platform_commission_ratio as commission_rate,\n" +
|
|
|
" lea.expertise_area_info,\n" +
|
|
" lea.expertise_area_info,\n" +
|
|
|
" lur.user_name client_user_name,\n" +
|
|
" lur.user_name client_user_name,\n" +
|
|
|
" lur.user_phone client_user_phone\n" +
|
|
" lur.user_phone client_user_phone\n" +
|
|
|
|
|
+ " COALESCE(lco.order_amount, 0) - COALESCE(lco.consultation_fee, 0) as lawyerEarnings\n" +
|
|
|
" FROM lawyer_consultation_order lco\n" +
|
|
" FROM lawyer_consultation_order lco\n" +
|
|
|
" LEFT JOIN lawyer_user lu ON lco.lawyer_user_id = lu.id AND lu.delete_flag = 0\n" +
|
|
" LEFT JOIN lawyer_user lu ON lco.lawyer_user_id = lu.id AND lu.delete_flag = 0\n" +
|
|
|
|
|
+ " LEFT JOIN law_firm lf on lf.id = lu.firm_id\n" +
|
|
|
" left join lawyer_expertise_area lea on lea.id = lu.lawyer_expertise_area_id and lea.delete_flag = 0 " +
|
|
" left join lawyer_expertise_area lea on lea.id = lu.lawyer_expertise_area_id and lea.delete_flag = 0 " +
|
|
|
" left join life_user lur on lur.id = lco.client_user_id " +
|
|
" left join life_user lur on lur.id = lco.client_user_id " +
|
|
|
" ${ew.customSqlSegment}")
|
|
" ${ew.customSqlSegment}")
|