| | |
| | | return fail("开挖深度过小", null); |
| | | } |
| | | |
| | | List<CountEntity> rs = mainService.countByRange(BigDecimal.valueOf(z), BigDecimal.valueOf(z + deep), wkt); |
| | | List<CountEntity> rs = mainService.countByRange(z, z + deep, wkt); |
| | | |
| | | return success("成功", null == rs ? 0 : rs.size(), rs); |
| | | } catch (Exception ex) { |
| | |
| | | @Select("select ctype, sum(volume) \"volume\", sum(coal_prod) \"coal_prod\", sum(gangue_prod) \"gangue_prod\", 0 \"soil_prod\" from public.coal2000 " + |
| | | "where (top between #{top} and #{bottom} or bottom between #{top} and #{bottom}) and ST_Intersects(geom, ST_PolygonFromText(#{wkt}, 4490))" + |
| | | "group by ctype order by ctype") |
| | | public List<CountEntity> countByRange(@Param("top") BigDecimal top, @Param("bottom") BigDecimal bottom, @Param("wkt") String wkt); |
| | | public List<CountEntity> countByRange(@Param("top") Double top, @Param("bottom") Double bottom, @Param("wkt") String wkt); |
| | | } |
| | |
| | | Coal54Mapper coal54Mapper; |
| | | |
| | | @Override |
| | | public List<CountEntity> countByRange(BigDecimal top, BigDecimal bottom, String wkt) { |
| | | public List<CountEntity> countByRange(Double top, Double bottom, String wkt) { |
| | | return mainMapper.countByRange(top, bottom, wkt); |
| | | } |
| | | |