提交代码

dev-discount
胡锐 3 years ago
parent e84498eba2
commit ddd9b54fb9
  1. 4
      hai-service/src/main/java/com/hai/dao/HighGasOilPriceMapperExt.java

@ -34,7 +34,7 @@ public interface HighGasOilPriceMapperExt {
@Select({" SELECT a.store_key storeKey,ROUND((st_distance_sphere(point(a.longitude, a.latitude) , point(${longitude},${latitude}))/1000),2) as distance" + @Select({" SELECT a.store_key storeKey,ROUND((st_distance_sphere(point(a.longitude, a.latitude) , point(${longitude},${latitude}))/1000),2) as distance" +
" FROM high_merchant_store a,high_gas_oil_price b where a.type = 1 and a.`status` = 1 and a.id = b.merchant_store_id GROUP BY a.id" + " FROM high_merchant_store a,high_gas_oil_price b where a.type = 1 and a.`status` = 1 and a.id = b.merchant_store_id and b.`status` = 1 GROUP BY a.id" +
" ORDER BY distance asc LIMIT 1" }) " ORDER BY distance asc LIMIT 1 "})
Map<String,Object> recentGasStation(@Param("longitude") String longitude,@Param("latitude") String latitude); Map<String,Object> recentGasStation(@Param("longitude") String longitude,@Param("latitude") String latitude);
} }

Loading…
Cancel
Save