Эх сурвалжийг харах

bugfix:打卡店铺入口图

lyx 3 сар өмнө
parent
commit
94198a5fb4

+ 2 - 0
alien-entity/src/main/java/shop/alien/entity/store/vo/StoreClockInVo.java

@@ -60,6 +60,8 @@ public class StoreClockInVo extends StoreClockIn {
     @ApiModelProperty(value = "经营类型")
     private String businessTypesName;
 
+    @ApiModelProperty(value = "商家入口图")
+    private String entranceImage;
     //    @ApiModelProperty(value = "商家是否打卡")
 //    @ApiModelProperty(value = "该用户是否在该店铺打过卡")
 //    private String clockInStore;

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

@@ -23,7 +23,7 @@ import java.util.Map;
 public interface StoreClockInMapper extends BaseMapper<StoreClockIn> {
 
     @Select("select clock.id, clock.user_id, clock.store_id, clock.permission, user.user_name, store.store_name,store.score_avg score, clock.like_count, store.store_position, clock.content, clock.created_time, clock.img_url clockImg, img.img_url storeImg, user.user_image userImg," +
-            "store.administrative_region_district_name region, dict.dict_detail storeType, concat('user_', user.user_phone) phoneId, store.business_section,business_types_name," +
+            "store.administrative_region_district_name region, dict.dict_detail storeType, concat('user_', user.user_phone) phoneId, store.business_section,business_types_name,img1.img_url entranceImage," +
             "( " +
             " select ifnull(round(sum(uorder.price) / count(1), 0), 0) " +
             " from life_user_order uorder " +
@@ -38,6 +38,7 @@ public interface StoreClockInMapper extends BaseMapper<StoreClockIn> {
             "join life_user user on user.id = clock.user_id " +
             "join store_info store on store.id = clock.store_id " +
             "left join store_img img on img.store_id = clock.store_id and img.img_type = '10' and img.delete_flag = 0 " +
+            "left join store_img img1 on img1.store_id = clock.store_id and img1.img_type = '1' and img1.delete_flag = 0 " +
             "left join store_dictionary dict on dict.type_name = 'storeType' and store.store_type = dict.dict_id and dict.delete_flag = 0 " +
             "${ew.customSqlSegment} ")
     IPage<StoreClockInVo> getStoreClockInList(IPage<StoreClockIn> page, @Param(Constants.WRAPPER) QueryWrapper<StoreClockIn> queryWrapper);