<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE sqlMap   
    PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"   
    "http://ibatis.apache.org/dtd/sql-map-2.dtd">  
<sqlMap namespace="com.hst.tmService.dao.BusTaxWxfwhWycxAppMapper">
	<!-- 6.4.3 -->
	<resultMap class="com.hst.taxService.domain.wxfwh.WycxZxzcZcjdListDomain" id="wycxZxzcZcjdListCurrMap">
    	<result property="zcwjDjxh" column="ZCWJ_DJXH"/>
    	<result property="bt" column="BT"/>
    	<result property="fbrq" column="FBRQ"/>
    	<result property="fbdw" column="FBDW"/>
    </resultMap>
   
    <parameterMap class="java.util.Map" id="wycxZxzcZcjdListCurrMap">
    	<parameter property="swjgDm"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="openId"    javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="str"   	   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="rows"   	   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="page"   	   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="code"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT"/>
    	<parameter property="mess"     javaType="java.lang.String"  jdbcType="VARCHAR" mode="OUT" />
	    <parameter property="wycxZxzcZcjdList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="wycxZxzcZcjdListCurrMap" />
    </parameterMap>
    
    <procedure id="wycxZxzcZcjdListCurr" parameterMap="wycxZxzcZcjdListCurrMap" >
    	{call P_WEBJK_WXFW6403_WYCXZCJDLIST(?,?,?,?, ?,?,?,?)}
    </procedure>
    <!-- 6.4.4 -->
   <resultMap class="com.hst.taxService.domain.wxfwh.WycxZxzcZcjdMxDomain" id="wycxZxzcZcjdMxCurrMap">
    	<result property="zcwjDjxh" column="ZCWJ_DJXH"/>
    	<result property="bt" column="BT"/>
    	<result property="fbrq" column="FBRQ"/>
    	<result property="fbdw" column="FBDW"/>
    	<result property="nr" column="NR"/>
    	<result property="url" column="URL"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="wycxZxzcZcjdMxCurrMap">
    	<parameter property="swjgDm"    javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="openId"    javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="zcwjDjxh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="code"      javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT"/>
    	<parameter property="mess"      javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
	    <parameter property="wycxZxzcZcjdMxList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="wycxZxzcZcjdMxCurrMap" />
    </parameterMap>
    
    <procedure id="wycxZxzcZcjdMxCurr" parameterMap="wycxZxzcZcjdMxCurrMap" >
    	{call P_WEBJK_WXFW6404_WYCXZCJDMX(?,?,?,?, ?,?)}
    </procedure>


   <!-- 6.4.1获取最新政策最新文件列表 -->
  	<resultMap class="com.hst.taxService.domain.wxfwh.WycxZxzcZxwjListDomain" id="WycxZxzcZxwjListCurrResMap">
		<result property="zcwjDjxh" column="ZCWJ_DJXH" />
		<result property="bt"       column="BT" />
		<result property="wjh"      column="WJH" />
		<result property="fbrq"      column="FBRQ" />
		<result property="fbdw"      column="FBDW" />
    </resultMap>
    <parameterMap class="java.util.Map" id="WycxZxzcZxwjListCurrMap">
    	<parameter property="swjgDm"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="openId"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="str"      javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="rows"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="page"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	
    	<parameter property="code"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
	    <parameter property="mess"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
    	<parameter property="dataList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="WycxZxzcZxwjListCurrResMap" />
    </parameterMap>
    
    <procedure id="WycxZxzcZxwjListCurr" parameterMap="WycxZxzcZxwjListCurrMap" >
    	{call P_WEBJK_WXFW6401_WYCXZXWJLIST(?,?,?,?,?, ?,?,?)}
    </procedure>
    
    <!-- 6.4.2获取最新政策最新文件详细内容-->
  	<resultMap class="com.hst.taxService.domain.wxfwh.WycxZxzcZxwjMxDomain" id="WycxZxzcZxwjMxCurrResMap">
		<result property="zcwjDjxh" column="ZCWJ_DJXH" />
		<result property="bt"       column="BT" />
		<result property="wjh"       column="WJH" />
		<result property="fbdw"     column="FBDW" />
		<result property="fbrq"     column="FBRQ" />
		<result property="wjh"      column="WJH" />
		<result property="nr"       column="NR" />
		<result property="url"      column="URL" />
    </resultMap>
    <parameterMap class="java.util.Map" id="WycxZxzcZxwjMxCurrMap">
    	<parameter property="swjgDm"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="openId"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="zcwjDjxh" javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	 	
    	<parameter property="code"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
	    <parameter property="mess"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
    	<parameter property="dataList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="WycxZxzcZxwjMxCurrResMap" />
    </parameterMap>
    
    <procedure id="WycxZxzcZxwjMxCurr" parameterMap="WycxZxzcZxwjMxCurrMap" >
    	{call P_WEBJK_WXFW6402_WYCXZXWJMX(?,?,?,?,?, ?)}
    </procedure>
    
    <!-- 6.4.5纳税信用等级查询-->
  	<resultMap class="com.hst.taxService.domain.wxfwh.WycxNsrxydjcxDomain" id="WycxNsrxydjcxCurrResMap">
		<result property="nd"     column="SSND" />
		<result property="xydj"   column="XYDJ" />
		<result property="dqbz"   column="DQBZ" />	
    </resultMap>
    <parameterMap class="java.util.Map" id="WycxNsrxydjcxCurrMap">
    	<parameter property="swjgDm"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="openId"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="nsrsbh"   javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	 	
    	<parameter property="code"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
	    <parameter property="mess"     javaType="java.lang.String"   jdbcType="VARCHAR" mode="OUT" />
    	<parameter property="dataList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="WycxNsrxydjcxCurrResMap" />
    </parameterMap>
    
    <procedure id="WycxNsrxydjcxCurr" parameterMap="WycxNsrxydjcxCurrMap" >
    	{call P_WEBJK_WXFW6405_WYCXNSRXYDJCX(?,?,?,?,?, ?)}
    </procedure>
	
	<select id="queryGywmJkjs"  parameterClass="java.util.Map" resultClass="com.hst.taxService.domain.wxfwh.GywmJkjsReturnDomain">
		SELECT JKJS jkjs FROM $databaseUsername$.FWH_GYWM_JKJS WHERE SWJG_DM = #swjgDm#
	</select>
	
	<select id="queryGywmZyzn"  parameterClass="java.util.Map" resultClass="com.hst.taxService.domain.wxfwh.GywmZyznReturnDomain">
		SELECT ZYZN zyzn FROM $databaseUsername$.FWH_GYWM_ZYZN WHERE SWJG_DM = #swjgDm#
	</select>
	
	<select id="queryGywmLdzl"  parameterClass="java.util.Map" resultClass="com.hst.taxService.domain.wxfwh.GywmLdzlDomain">
		SELECT XH xh,XM xm,ZW zw ,XB xb,CSNY csny, GRJL grjl,BGDH bgdh ,HEAD_PIC headPic FROM $databaseUsername$.FWH_GYWM_LDZL WHERE SWJG_DM = #swjgDm# AND YXBZ = 'Y' ORDER BY PXXH
	</select>
	
	<select id="queryGywmJgsz"  parameterClass="java.util.Map" resultClass="com.hst.taxService.domain.wxfwh.GywmJgszDomain">
		SELECT XH xh,BMMC bmmc,CSRQ csrq,FZR fzr,DH dh, BMJS bmjs,PIC_NAME picName FROM $databaseUsername$.FWH_GYWM_JGSZ WHERE SWJG_DM = #swjgDm# AND YXBZ = 'Y' ORDER BY PXXH
	</select>
	
	<select id="queryGywmGzdt"  parameterClass="java.util.Map" resultClass="com.hst.taxService.domain.wxfwh.GywmGzdtDomain">
		SELECT GZDT_WHXH gzdtWhxh,BT bt,CBBM cbbm,FBSJ fbsj,NR nr,TOP_PIC topPic FROM $databaseUsername$.FWH_GYWM_GZDT WHERE SWJG_DM = #swjgDm# AND YXBZ = 'Y' ORDER BY PXXH
	</select>
	
</sqlMap>