|
|
@@ -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);
|