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

	
    <resultMap class="com.hst.taxService.domain.ctais2.GpyxxDomain" id="qgpyListResMap">
    	<result property="fpjbr" column="FPJBR"/>
    	<result property="jbrzjlxDm" column="JBRZJLX_DM"/>
    	<result property="zjhm" column="ZJHM"/>
    </resultMap>
    <resultMap class="com.hst.taxService.domain.ctais2.FppzxxDomain" id="dataListResMap">
   	 	<result property="fpzlDm" column="FPZL_DM"/>
    	<result property="mygpzgsl" column="MYGPZGSL"/>
    	<result property="zdfpje" column="ZDFPJE"/>
    	<result property="lgsl" column="LGSL"/>
    	<result property="cpzgsl" column="CPZGSL"/>
    	<result property="lcpbbz" column="LCPBBZ"/>
    	<result property="fpBgfsDm" column="FP_BGFS_DM"/>
    	<result property="fpGpfsDm" column="FP_GPFS_DM"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryFppzjbxxcxMap">
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="gpyList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="qgpyListResMap" />
	    <parameter property="dataList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="dataListResMap" />
    </parameterMap>
    
    <procedure id="queryFppzjbxxcx" parameterMap="queryFppzjbxxcxMap" >
    	{call P_WEBJK_CTAIS2_31_PZXX(?,?,?)}
    </procedure>
    
    <resultMap class="com.hst.taxService.domain.ctais2.FpxxDomain" id="nsrfpjcListResMap">
   	 	<result property="nsrsbh" column="NSRSBH"/>
   	 	<result property="fpzlDm" column="FPZL_DM"/>
   	 	<result property="fpDm" column="FP_DM"/>
   	 	<result property="fpzlMc" column="FPZL_Mc"/>
    	<result property="fs" column="FS"/>
    	<result property="fpqh" column="FPQH"/>
    	<result property="fpzh" column="FPZH"/>
    	<result property="fpKcztDm" column="FP_KCZT_DM"/>
    	<result property="xgrq" column="XGRQ"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryNsrfpjcListMap">
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="nsrfpjcList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="nsrfpjcListResMap" />
    </parameterMap>
    <procedure id="queryNsrfpjcList" parameterMap="queryNsrfpjcListMap" >
    	{call P_WEBJK_CTAIS2_38_NSRFPJC(?,?)}
    </procedure>
   
    <parameterMap class="java.util.Map" id="queryPFplgbdyhsMap">
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="bz"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="fplb"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="hs" javaType="java.lang.String" jdbcType="VARCHAR" mode="OUT"/>
    </parameterMap>
    
    <procedure id="queryPFplgbdyhs" parameterMap="queryPFplgbdyhsMap" >
    	{call P_WEBJK_CTAIS2_37_FPLGBDYHS(?,?,?,?)}
    </procedure>
          
     <resultMap class="com.hst.taxService.domain.ctais2.FpfskcxxDomain" id="fpkcxxListResMap">
   	 	<result property="fpzlDm" column="FPZL_DM"/>
   	 	<result property="fpDm" column="FP_DM"/>
    	<result property="bz" column="Bz"/>
    	<result property="fpMc" column="FP_MC"/>
   	 	<result property="fpqh" column="FPQH"/>
    	<result property="fpzh" column="FPZH"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryPFpkcxxMap">
    	<parameter property="czryDm"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="fpkcxxList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="fpkcxxListResMap" />
    </parameterMap>
    
    <procedure id="queryPFpkcxx" parameterMap="queryPFpkcxxMap" >
    	{call P_WEBJK_CTAIS2_311_FPKCXX(?,?,?)}
    </procedure>
   
     <resultMap class="com.hst.taxService.domain.ctais2.FplgxxDomain" id="nsrFplgxxListResMap">
   	 	<result property="fpzlDm" column="FPZL_DM"/>
   	 	<result property="fpDm" column="FP_DM"/>
   	 	<result property="fs" column="FS"/>
    	<result property="fpqh" column="FPQH"/>
    	<result property="fpzh" column="FPZH"/>
    	<result property="rq" column="RQ"/>
    
    </resultMap>
    <parameterMap class="java.util.Map" id="queryNsrFplgxxListMap">
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="ssyf"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="nsrFplgxxList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="nsrFplgxxListResMap" />
    </parameterMap>
    
    <procedure id="queryNsrFplgxxList" parameterMap="queryNsrFplgxxListMap" >
    	{call P_WEBJK_CTAIS2_310_FPLGXX(?,?,?)}
    </procedure> 
   
	<select id="selectFplbDmByFpzlDm"  parameterClass="java.util.Map" resultClass="java.lang.String">
		SELECT DECODE(FPLB_DM, '1', 'YB', '8', 'P1') FROM HX_DM_QG.DM_FP_FPZL A WHERE FWSKBZ='Y'
AND YXBZ='Y' AND XYBZ='Y'
AND   A.FPZL_DM= #fpzlDm#
	</select>
	
	<resultMap id="nsrfpyjxxListResMap" class="com.hst.taxService.domain.ctais2.FpyjDomain" >
   	 	<result property="fpzlDm" column="FPZLDM"/>
   	 	<result property="fpYjjgDm" column="FPYJJGDM"/>
   	 	<result property="fpDm" column="FPDM"/>
    	<result property="fs" column="FS"/>
   	 	<result property="fpqh" column="FPQH"/>
    	<result property="fpzh" column="FPZH"/>
    	<result property="rqQ" column="RQ_Q"/>
    	<result property="rqZ" column="RQ_Z"/>
    	<result property="je" column="JE"/>
    	<result property="se" column="SE"/>
    </resultMap>
    <parameterMap class="java.util.Map" id="queryNsrfpyjxxMap">
    	<parameter property="nsrsbh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="fpzlDm"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="fpDm"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="fpqh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
    	<parameter property="fpzh"  javaType="java.lang.String"   jdbcType="VARCHAR" mode="IN"/>
	    <parameter property="nsrfpyjxxList" javaType="java.sql.ResultSet" jdbcType="ORACLECURSOR" mode="OUT" resultMap="nsrfpyjxxListResMap" />
    </parameterMap>
    
    <procedure id="queryNsrfpyjxx" parameterMap="queryNsrfpyjxxMap" >
    	{call P_WEBJK_CTAIS2_39_NSRFPKJHZ(?,?,?,?,?,?)}
    </procedure>
    <select id="selectCtais2Nsrdjxh" resultClass="java.lang.String"  parameterClass="java.util.Map">
    	SELECT DJXH  djxh FROM hx_dj.DJ_NSRXX DJ 
    	WHERE (DJ.NSRSBH = #nsrsbh# OR DJ.SHXYDM  = #nsrsbh#)
    	<![CDATA[
    	AND DJ.KZZTDJLX_DM <> '1500' AND DJ.NSRZT_DM < '05']]>
    	AND KQCCSZTDJBZ='N'
    </select>
    
</sqlMap>