仪表盘
版本库
文件存储
活动
搜索
登录
admin
/
coal
霍林河露天煤矿生产一体化平台
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
1
13693261870
2023-04-07
51dd6f6129fec5a8301efafcb28d01a3d5734bea
[~admin/coal.git]
/
src
/
main
/
resources
/
mapper
/
MainMapper.xml
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>