|
|
@@ -311,6 +311,10 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
" lco.order_str,\n" +
|
|
|
" lco.apply_refund_status,\n" +
|
|
|
" lco.reject_refund_reason,\n" +
|
|
|
+ " CASE\n" +
|
|
|
+ " WHEN EXISTS (SELECT 1 FROM lawyer_order_review lor WHERE lor.order_id = lco.id) THEN '1'\n" +
|
|
|
+ " ELSE '2'\n" +
|
|
|
+ " END AS isHasCommon,\n" +
|
|
|
" lu.name AS lawyer_name,\n" +
|
|
|
" lu.phone AS lawyer_phone,\n" +
|
|
|
" lu.email AS lawyer_email,\n" +
|
|
|
@@ -377,6 +381,10 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
" lco.alipay_no,\n" +
|
|
|
" lco.order_str,\n" +
|
|
|
" lco.apply_refund_status,\n" +
|
|
|
+ " CASE\n" +
|
|
|
+ " WHEN EXISTS (SELECT 1 FROM lawyer_order_review lor WHERE lor.order_id = lco.id) THEN '1'\n" +
|
|
|
+ " ELSE '2'\n" +
|
|
|
+ " END AS isHasCommon,\n" +
|
|
|
" lu.name AS lawyer_name,\n" +
|
|
|
" lu.phone AS lawyer_phone,\n" +
|
|
|
" lu.email AS lawyer_email,\n" +
|