|
|
@@ -395,6 +395,11 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
" lu.account_blurb,\n" +
|
|
|
" lu.personal_introduction,\n" +
|
|
|
" lf.platform_commission_ratio as commission_rate,\n" +
|
|
|
+ " luv.processing_status,\n" +
|
|
|
+ " CASE\n" +
|
|
|
+ " WHEN luv.processing_status IS NOT NULL THEN 1\n" +
|
|
|
+ " ELSE 2\n" +
|
|
|
+ " END AS isViolation,\n" +
|
|
|
" lf.firm_name,\n" +
|
|
|
" CONCAT(TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(lf.platform_commission_ratio AS CHAR))), '%') AS commissionRateStr, \n" +
|
|
|
" lea.expertise_area_info,\n" +
|
|
|
@@ -402,6 +407,7 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
" lur.user_phone client_user_phone,\n" +
|
|
|
" lco.order_amount - lco.consultation_fee as lawyerEarnings\n" +
|
|
|
" FROM lawyer_consultation_order lco\n" +
|
|
|
+ " LEFT JOIN lawyer_user_violation luv ON luv.order_number = lco.order_number and luv.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 " +
|