Pārlūkot izejas kodu

订单列表页面,加入律师领域信息

zhangchen 1 mēnesi atpakaļ
vecāks
revīzija
8281e4d389

+ 5 - 0
alien-entity/src/main/java/shop/alien/entity/store/LawyerUser.java

@@ -268,6 +268,11 @@ public class LawyerUser extends Model<LawyerUser> {
     @TableField("order_receiving_status")
     private Integer orderReceivingStatus;
 
+    @ApiModelProperty(value = "领域ID, 0:不接单, 1:接单中")
+    @TableField("lawyer_expertise_area_id")
+    private Integer lawyerExpertiseAreaId;
+
+
     @TableField(exist = false)
     private String userName;
 

+ 4 - 1
alien-entity/src/main/java/shop/alien/entity/store/vo/LawyerConsultationOrderVO.java

@@ -138,7 +138,10 @@ public class LawyerConsultationOrderVO implements Serializable {
     @ApiModelProperty(value = "个人简介(详细)")
     private String personalIntroduction;
 
-    @ApiModelProperty(value = "领域列表")
+    @ApiModelProperty(value = "问题场景列表")
     private List<String> lawyerLegalProblemScenarioList;
+
+    @ApiModelProperty(value = "领域信息")
+    private String expertiseAreaInfo;
 }
 

+ 4 - 1
alien-entity/src/main/resources/mapper/LawyerConsultationOrderMapper.xml

@@ -77,6 +77,7 @@
         <result column="head_img" property="headImg" />
         <result column="nick_name" property="nickName" />
         <result column="personal_introduction" property="personalIntroduction" />
+        <result column="expertise_area_info" property="expertiseAreaInfo" />
     </resultMap>
 
     <!-- 分頁查詢訂單列表,聯查律師信息 -->
@@ -185,9 +186,11 @@
         lu.address,
         lu.head_img,
         lu.nick_name,
-        lu.personal_introduction
+        lu.personal_introduction,
+        lea.expertise_area_info
         FROM lawyer_consultation_order lco
         LEFT JOIN lawyer_user lu ON lco.lawyer_user_id = lu.id AND lu.delete_flag = 0
+        left join lawyer_expertise_area lea on lea.id = lu.lawyer_expertise_area_id and lea.delete_flag = 0
         WHERE lco.delete_flag = 0
         <if test="userId != null and userId !=''">
             AND lco.client_user_id = #{userId}