| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.terra.coal.mapper.MainMapper"> |
| | | <select id="selectDictTab" resultType="com.terra.coal.entity.CountEntity"> |
| | | select ctype, sum(volume) "volume", sum(volume * density) "v1", sum(volume * density * gangue) "v2" |
| | | from public.coal54 |
| | | where 1 = 1 |
| | | 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 |
| | | order by ctype; |
| | | </select> |
| | | </mapper> |