|
@@ -13,7 +13,7 @@ public interface LandRepository extends JpaPlusRepository<Land, Long> {
|
|
|
@Query(value = "select crop_type,sum(area) from leizhou_land where St_within(geom,st_geomfromtext(?1,4326)) group by crop_type",nativeQuery = true)
|
|
|
List<Object[]> statCropType(String wkt);
|
|
|
|
|
|
- @Query(value = "select crop_type,sum(area) from leizhou_land group by majority",nativeQuery = true)
|
|
|
+ @Query(value = "select majority,sum(area) from leizhou_land group by majority",nativeQuery = true)
|
|
|
List<Object[]> statMajorityAll();
|
|
|
|
|
|
@Query(value = "select majority,sum(area) from leizhou_land where St_within(geom,st_geomfromtext(?1,4326)) group by majority",nativeQuery = true)
|