|
|
@@ -1,7 +1,9 @@
|
|
|
package shop.alien.mapper;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
@@ -10,6 +12,7 @@ import shop.alien.entity.store.vo.LawyerConsultationOrderVO;
|
|
|
|
|
|
import java.util.List;
|
|
|
import shop.alien.entity.store.dto.LawyerConsultationOrderDto;
|
|
|
+import shop.alien.entity.store.vo.LifeCouponVo;
|
|
|
import shop.alien.entity.store.vo.LifeUserExpertOrderVo;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -159,6 +162,57 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
"</script>")
|
|
|
int updateOrder(LawyerConsultationOrderDto order);
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询咨询订单(律师端)
|
|
|
+ *
|
|
|
+ * @param page 分页
|
|
|
+ * @param queryWrapper 查询对象
|
|
|
+ * @return 列表结果
|
|
|
+ */
|
|
|
+ @Select(" SELECT\n" +
|
|
|
+ " lco.id,\n" +
|
|
|
+ " lco.order_number,\n" +
|
|
|
+ " lco.client_user_id,\n" +
|
|
|
+ " lco.lawyer_user_id,\n" +
|
|
|
+ " lco.problem_scenario_id,\n" +
|
|
|
+ " lco.problem_description,\n" +
|
|
|
+ " ROUND(IFNULL(lco.order_amount, 0) / 100, 2) as order_amount,\n" +
|
|
|
+ " lco.consultation_fee,\n" +
|
|
|
+ " lco.start_time,\n" +
|
|
|
+ " lco.end_time,\n" +
|
|
|
+ " lco.order_status,\n" +
|
|
|
+ " lco.payment_status,\n" +
|
|
|
+ " lco.order_time,\n" +
|
|
|
+ " lco.payment_time,\n" +
|
|
|
+ " lco.validity_period,\n" +
|
|
|
+ " lco.rating,\n" +
|
|
|
+ " lco.comment,\n" +
|
|
|
+ " lco.created_time,\n" +
|
|
|
+ " lu.name AS lawyer_name,\n" +
|
|
|
+ " lu.phone AS lawyer_phone,\n" +
|
|
|
+ " lu.email AS lawyer_email,\n" +
|
|
|
+ " lu.lawyer_certificate_no,\n" +
|
|
|
+ " lu.law_firm,\n" +
|
|
|
+ " lu.practice_years,\n" +
|
|
|
+ " lu.specialty_fields,\n" +
|
|
|
+ " lu.certification_status,\n" +
|
|
|
+ " lu.service_score,\n" +
|
|
|
+ " lu.service_count,\n" +
|
|
|
+ " lu.consultation_fee AS lawyer_consultation_fee,\n" +
|
|
|
+ " lu.province,\n" +
|
|
|
+ " lu.city,\n" +
|
|
|
+ " lu.district,\n" +
|
|
|
+ " lu.address,\n" +
|
|
|
+ " lu.head_img,\n" +
|
|
|
+ " lu.nick_name,\n" +
|
|
|
+ " lu.personal_introduction,\n" +
|
|
|
+ " lea.expertise_area_info\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_expertise_area lea on lea.id = lu.lawyer_expertise_area_id and lea.delete_flag = 0 ${ew.customSqlSegment}")
|
|
|
+ IPage<LawyerConsultationOrderVO> getLawyerConsultationOrderList(
|
|
|
+ IPage<LawyerConsultationOrderVO> page, @Param(Constants.WRAPPER) QueryWrapper<LawyerConsultationOrderVO> queryWrapper
|
|
|
+ );
|
|
|
|
|
|
|
|
|
}
|