1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.oying.modules.pc.store.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.oying.modules.pc.store.domain.Store;
import com.oying.modules.pc.search.domain.dto.NearbyStoreQueryCriteria;
import com.oying.modules.pc.store.domain.dto.StoreCustomerQueryCriteria;
import com.oying.modules.pc.store.domain.dto.StoreQueryCriteria;
import com.oying.modules.pc.search.domain.dto.StoreSearchDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 店铺Mapper接口
 *
 * @author lzp
 * @date 2025-04-22
 */
@Mapper
public interface StoreMapper extends BaseMapper<Store> {
 
    List<Store> selectStoreList(@Param("criteria") StoreQueryCriteria criteria, Page<Store> page);
 
    List<Store> selectStoreList(@Param("criteria") StoreQueryCriteria criteria);
 
    Store selectStoreByMerchantId(@Param("merchantId") Long merchantId);
 
    IPage<StoreSearchDto> queryNearStores(@Param("criteria") NearbyStoreQueryCriteria criteria, Page<StoreSearchDto> page);
 
    IPage<StoreSearchDto> queryNearStoreWithProduct(@Param("criteria") NearbyStoreQueryCriteria criteria, Page<StoreSearchDto> page);
 
    List<Long> queryStoreIds(@Param("criteria") StoreQueryCriteria criteria);
 
    List<Store> queryUserStores(@Param("userId") Long userId);
 
}