|
@@ -19,10 +19,10 @@ public interface LandRepository extends JpaPlusRepository<Land, Long> {
|
|
@Query(value = "select district_code,parcel_type,sum(area),count(id) from leizhou_land where district_code is not null and district_code like ?1 group by district_code,parcel_type",nativeQuery = true)
|
|
@Query(value = "select district_code,parcel_type,sum(area),count(id) from leizhou_land where district_code is not null and district_code like ?1 group by district_code,parcel_type",nativeQuery = true)
|
|
List<Object[]> statDistrictParcelTypeAll(String likeCity);
|
|
List<Object[]> statDistrictParcelTypeAll(String likeCity);
|
|
|
|
|
|
- @Query(value = "select district_code, sum(area * dan_chan) from leizhou_land where district_code is not null and district_code like ?1 and crop_type = ?2 group by district_code",nativeQuery = true)
|
|
|
|
|
|
+ @Query(value = "select district_code, sum(area * dan_chan),sum(area) as areasum from leizhou_land where district_code is not null and district_code like ?1 and crop_type = ?2 group by district_code",nativeQuery = true)
|
|
List<Object[]> statDistrictEstimate(String likeCity, String crop_type);
|
|
List<Object[]> statDistrictEstimate(String likeCity, String crop_type);
|
|
|
|
|
|
- @Query(value = "select town_id,sum(area * dan_chan) from leizhou_land where district_code = ?1 and town_id is not null and crop_type = ?2 group by town_id",nativeQuery = true)
|
|
|
|
|
|
+ @Query(value = "select town_id,sum(area * dan_chan),sum(area) as areasum from leizhou_land where district_code = ?1 and town_id is not null and crop_type = ?2 group by town_id",nativeQuery = true)
|
|
List<Object[]> statTownEstimate(String districtCode, String crop_type);
|
|
List<Object[]> statTownEstimate(String districtCode, String crop_type);
|
|
|
|
|
|
|
|
|