odmTj.xml 2.5 KB
<?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>