霍林河露天煤矿生产一体化平台
1
13693261870
2023-04-10 dd50418315218979f8d596f34f185ae4a28adc4a
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8" ?>
<!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(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;
    </select>
</mapper>