霍林河露天煤矿生产一体化平台
1
13693261870
2023-04-07 51dd6f6129fec5a8301efafcb28d01a3d5734bea
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(volume * density) "v1", sum(volume * density * gangue) "v2"
        from public.coal54
        where 1 = 1
        group by ctype
        order by ctype
    </select>
</mapper>