|
@@ -9,7 +9,7 @@
|
|
|
</sql>
|
|
|
|
|
|
<select id="listNearbyMerchants" resultType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
|
- select mt.id, mt.name, mt.logo, mt.score, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
+ select mt.id, mt.name, mt.logo, mt.score, mt.sale,mt.opening, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
round(st_distance_sphere(
|
|
|
point(mt.longitude, mt.latitude), point(#{param.longitude}, #{param.latitude})
|
|
|
)) distance
|
|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
|
|
|
<select id="listNearbyMerchantPaging" resultType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
|
- select mt.id, mt.name, mt.logo, mt.score, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
+ select mt.id, mt.name, mt.logo, mt.score, mt.sale,mt.opening, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
round(st_distance_sphere(
|
|
|
point(mt.longitude, mt.latitude), point(#{param.longitude}, #{param.latitude})
|
|
|
)) distance
|
|
@@ -30,7 +30,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="listRecommendMerchants" resultType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
|
- select mt.id, mt.name, mt.logo, mt.score, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
+ select mt.id, mt.name, mt.logo, mt.score,mt.opening, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
round(st_distance_sphere(
|
|
|
point(mt.longitude, mt.latitude), point(#{param.longitude}, #{param.latitude})
|
|
|
)) distance
|
|
@@ -41,7 +41,7 @@
|
|
|
|
|
|
|
|
|
<select id="listRecommendMerchantPaging" resultType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
|
- select mt.id, mt.name, mt.logo, mt.score, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
+ select mt.id, mt.name, mt.logo, mt.score, mt.opening,mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
round(st_distance_sphere(
|
|
|
point(mt.longitude, mt.latitude), point(#{param.longitude}, #{param.latitude})
|
|
|
)) distance
|
|
@@ -51,7 +51,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="listSimpleMerchants" resultType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
|
- select mt.id, mt.name, mt.logo, mt.score, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
+ select mt.id, mt.name, mt.logo, mt.score,mt.opening, mt.sale, mt.address,mt.business_status,c.name as mainBusinessName,mt.main_business,
|
|
|
round(st_distance_sphere(
|
|
|
point(mt.longitude, mt.latitude), point(#{longitude}, #{latitude})
|
|
|
)) distance
|