Przeglądaj źródła

中台部分,产品需求变更,原bug1059

ldz 1 miesiąc temu
rodzic
commit
af4d02936d

+ 3 - 0
alien-entity/src/main/java/shop/alien/entity/store/vo/LifeAppealManageVo.java

@@ -33,4 +33,7 @@ public class LifeAppealManageVo extends LifeAppealManage {
     @ApiModelProperty(value = "用户电话")
     private String userPhone;
 
+    @ApiModelProperty(value = "评论图片")
+    private String commentImage;
+
 }

+ 2 - 0
alien-entity/src/main/resources/mapper/LifeAppealManageMapper.xml

@@ -27,6 +27,7 @@
         appeal.appeal_reason,
         appeal.appeal_status AS appeal_type,
         si.img_url as appeal_image,
+        sg.img_url AS commentImage,
         CASE
         appeal.appeal_status
         WHEN 0 THEN
@@ -54,6 +55,7 @@
         LEFT JOIN store_comment `comment` ON `comment`.id = appeal.comment_id
         LEFT JOIN life_user lu ON `comment`.user_id = lu.id
         LEFT JOIN store_img si ON appeal.img_id = si.id
+        LEFT JOIN store_img sg ON sg.id = `comment`.img_id
         WHERE
         1 = 1
         <if test="storeName != null and storeName != ''">