Selaa lähdekoodia

add:食品经营许可

lyx 2 kuukautta sitten
vanhempi
commit
92ad64e566

+ 3 - 2
alien-entity/src/main/java/shop/alien/entity/store/vo/StoreInfoVo.java

@@ -1,6 +1,5 @@
 package shop.alien.entity.store.vo;
 
-import com.baomidou.mybatisplus.annotation.TableField;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonInclude;
 import io.swagger.annotations.ApiModel;
@@ -8,7 +7,6 @@ import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
-import shop.alien.entity.store.LifeCoupon;
 import shop.alien.entity.store.StoreBusinessInfo;
 import shop.alien.entity.store.StoreInfo;
 import shop.alien.entity.store.StoreStaffConfig;
@@ -210,4 +208,7 @@ public class StoreInfoVo extends StoreInfo {
 
     private String commitCount;
 
+    @ApiModelProperty(value = "食品经营许可")
+    private String foodLicenceImageUrl;
+
 }

+ 2 - 1
alien-entity/src/main/java/shop/alien/mapper/StoreInfoMapper.java

@@ -60,7 +60,7 @@ public interface StoreInfoMapper extends BaseMapper<StoreInfo> {
      * @param queryWrapper 查询条件
      * @return IPage<StoreInfoVo>
      */
-    @Select("select a.*, img.img_url entranceImage,b.name store_contact, b.phone store_phone, b.id_card idCard, b.password, c.dict_detail store_status_str, d.dict_detail business_status_str, e.dict_detail store_type_str,  " +
+    @Select("select a.*, img.img_url entranceImage,img1.img_url foodLicenceImageUrl,b.name store_contact, b.phone store_phone, b.id_card idCard, b.password, c.dict_detail store_status_str, d.dict_detail business_status_str, e.dict_detail store_type_str,  " +
             "( " +
             " select ifnull(round(avg(score), 1), 0) " +
             " from store_evaluation eval " +
@@ -69,6 +69,7 @@ public interface StoreInfoMapper extends BaseMapper<StoreInfo> {
             "from store_info a " +
             "left join store_user b on a.id = b.store_id and a.delete_flag = 0 and b.delete_flag = 0 " +
             "left join store_img img on img.store_id = a.id and img.img_type = 1 and img.delete_flag = 0 " +
+            "left join store_img img1 on img1.store_id = a.id and img1.img_type = 24 and img1.delete_flag = 0 " +
             "left join store_dictionary c on a.store_status = c.dict_id and c.type_name = 'storeState' and c.delete_flag = 0 " +
             "left join store_dictionary d on a.business_status = d.dict_id and d.type_name = 'businessStatus' and d.delete_flag = 0 " +
             "left join store_dictionary e on e.type_name = 'storeType' and e.dict_id = a.store_type and e.delete_flag = 0 " +