<?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.BusTaxSjcxAppMapper">

	
    <resultMap class="com.hst.taxService.domain.SjcxNsrxxReturnDomain" id="queryNsrxxResMap">
    	<result property="nsrsbh" column="NSRSBH"/>
    	<result property="nsrmc" column="NSRMC"/>
    	<result property="frxm" column="FRXM"/>
    	<result property="zcdz" column="ZCDZ"/>
    	<result property="jyfw" column="JYFW"/>
    	<result property="nsrzt" column="NSRZT"/>
    	<result property="zgswjg" column="ZGSWJG"/>
    	<result property="xydj" column="XYDJ"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryNsrxxtMap">
    	<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="nsrxxList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="queryNsrxxResMap" />
    </parameterMap>
    
    <procedure id="queryNsrxxList" parameterMap="queryNsrxxtMap" >
    	{call P_WEBJK_WX261_SJCXGETNSRXX(?,?,?,?)}
    </procedure>
    
    <resultMap class="com.hst.taxService.domain.SjcxSbqxDomain" id="querySbqxResMap">
    	<result property="zsxmDm" column="ZSXMDM"/>
    	<result property="zsxmMc" column="ZSXMMC"/>
    	<result property="sbqx" column="SBQX"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="querySbqxMap">
    	<parameter property="sbyf"     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="sbqxList"  javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="querySbqxResMap" />
    </parameterMap>
    
    <procedure id="querySbqxList" parameterMap="querySbqxMap" >
    	{call P_WEBJK_WX262_SJCXGETSBQX(?,?,?,?)}
    </procedure>
   
    <insert id="insertWxYgzPxdj"  parameterClass="com.hst.common.bo.WxYgzPxdj">
    	<selectKey keyProperty="djxh"  resultClass="string" type="pre">
    			select $databaseUsername$.seq_wx_djxh.nextval djxh from dual
    	</selectKey>
    		insert into $databaseUsername$.wx_ygz_pxdj
    		(djxh,xm,sjhm,sfzhm,sflb,nsrsbh,nsrmc,ss_swjg_dm,djrq,yxbz,wxid)
    		values
    		(#djxh#,#xm#,#sjhm#,#sfzhm#,#sflb#,#nsrsbh#,#nsrmc#,#ss_swjg_dm#,sysdate,#yxbz#,#wxid#)
    		
    </insert>
    
    <insert id="insertWxYgzZxd"  parameterClass="com.hst.common.bo.WxYgzZxd">
    	<selectKey keyProperty="djxh"  resultClass="string" type="pre">
    			select $databaseUsername$.seq_wx_djxh.nextval djxh from dual
    	</selectKey>
    		insert into $databaseUsername$.WX_YGZ_ZXD
    		(DJXH,NSRMC,NSRSBH,ZXR,ZXLB_BSLC,ZXLB_ZGLC,ZXLB_ZCFG,ZXNR,SJHM,MAIL,SS_SWJG_DM,DJRQ,YXBZ,WXID,HFBZ)
    		values
    		(#djxh#,#nsrmc#,#nsrsbh#,#zxr#,#zxlb_bslc#,#zxlb_zglc#,#zxlb_zgfg#,#zxnr#,#sjhm#,#mail#,#ss_swjg_dm#,sysdate,'Y',#wxid#,'N')
    </insert>
    
    <resultMap class="com.hst.taxService.domain.SjcxYgzZxdDomain" id="queryYgzZxdResMap">
    	<result property="nsrsbh" column="NSRSBH"/>
    	<result property="nsrmc" column="NSRMC"/>
    	<result property="zxr" column="ZXR"/>
    	<result property="zxlb_bslc" column="BSLC"/>
    	<result property="zxlb_zglc" column="ZGLC"/>
    	<result property="zxlb_zgfg" column="ZGFG"/>
    	<result property="zxnr" column="ZXNR"/>
    	<result property="sjhm" column="SJHM"/>
    	<result property="mail" column="MAIL"/>
    	<result property="hfbz" column="HFBZ"/>
    	<result property="hfnr" column="HFNR"/>
    	<result property="hfr" column="HFR"/>
    	<result property="hfsj" column="HFSJ"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryYgzZxdMap">
    	<parameter property="ssSwjgDm" javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="sjhm"     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="ygzZxdList"  javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="queryYgzZxdResMap" />
    </parameterMap>
    
    <procedure id="queryYgzZxdList" parameterMap="queryYgzZxdMap" >
    	{call P_WEBJK_WX265_SJCXYGZZXDCX(?,?,?,?,?,?,?)}
    </procedure>
   
	
</sqlMap>