|
@@ -2,6 +2,9 @@ package com.zbkj.service.dao;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.zbkj.common.model.merchant.Merchant;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -12,5 +15,12 @@ import com.zbkj.common.model.merchant.Merchant;
|
|
|
* @since 2022-07-20
|
|
|
*/
|
|
|
public interface MerchantDao extends BaseMapper<Merchant> {
|
|
|
+ /**
|
|
|
+ * 通过经纬度获取最近门店
|
|
|
+ * @param latitude 纬度
|
|
|
+ * @param longitude 经度
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<Merchant> selectMerchantByLatAndLon(@Param("latitude") Double latitude,@Param("longitude") Double longitude,@Param("recomdProdsNum") Integer recomdProdsNum);
|
|
|
|
|
|
}
|