e42b9295e6da140c70dc8ff48fcc8d1a8e118f86.svn-base
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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="odm.tj">
<select id="selectZdjbxxCount" resultType="java.util.Map">
select count( zd.bdcdyh) num,sum(zd.zdmj) zdmj
from reg_base_zdjbxx zd
where zd.del_flag = '0' and zd.ISLOGOUT = '0'
</select>
<select id="selectHxxCount" resultType="java.util.Map">
SELECT COUNT(BDCDYH) NUM
,SUM(H.SCJZMJ) SCJZMJ
FROM REG_BASE_H H
WHERE H.DEL_FLAG = '0'
AND H.RIGHTS != '3'
</select>
<select id="selectHFwytCountList" resultType="java.util.Map">
select
COUNT(BDCDYH) NUM ,SUM(H.SCJZMJ) SCJZMJ,
decode(h.FWYT1,'10','住宅','11','住宅','111','住宅','112','住宅','12','住宅','13','住宅',
'20','工业','21','工业',
'29','商业', '30','商业', '31','商业', '32','商业', '33','商业', '34','商业', '35','商业',
'60','办公',
'27','仓储','28','仓储',
'85','车库',
'其他') ytlx
from reg_base_h h where h.DEL_FLAG = '0' and h.RIGHTS != '3'
group by decode(h.FWYT1,'10','住宅','11','住宅','111','住宅','112','住宅','12','住宅','13','住宅',
'20','工业','21','工业',
'29','商业', '30','商业', '31','商业', '32','商业', '33','商业', '34','商业', '35','商业',
'60','办公',
'27','仓储','28','仓储',
'85','车库',
'其他')
</select>
<select id="selectDjxxQllxCountList" resultType="java.util.Map">
select
count(bdcdyh) num,sum(mj) mj,
decode(djxx.qllx,'1','集体土地所有权',
'33','房屋所有权','34','房屋所有权','4','房屋所有权','6','房屋所有权','8','房屋所有权',
'10','林地所有权',
'35','耕林经营权','36','耕林经营权',
'3','国有建设用地使用权',
'7','集体建设用地使用权',
'5','宅基地使用权',
'24','抵押权',
'19','地役权',
'其他') qllx
from REG_BUS_BDCQZSDJXX djxx where djxx.DEL_FLAG = '0' and djxx.ISLOGOUT='0'
group by
decode(djxx.qllx,'1','集体土地所有权',
'33','房屋所有权','34','房屋所有权','4','房屋所有权','6','房屋所有权','8','房屋所有权',
'10','林地所有权',
'35','耕林经营权','36','耕林经营权',
'3','国有建设用地使用权',
'7','集体建设用地使用权',
'5','宅基地使用权',
'24','抵押权',
'19','地役权',
'其他')
</select>
</mapper>