| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
- <mapper namespace="PLXGZSFS">
- <!-- 通用配置 -->
-
- <!-- ** YS_TEMP_PLXGZSFS 批量修改征收方式临时资料 ******-->
- <!-- begin YS_TEMP_PLXGZSFS -->
-
- <!-- *** 所有字段 -->
- <sql id="YS_TEMP_PLXGZSFS_COL">
- YWLSH, DRPH, GRSXH, DWSXH,
- GRBH, GMSFHM, XM, BGQZ, BGHZ,
- JFYHHH, JFYHHM, JFYHZH, JFYHMC, JYZT,
- JYSM, TJFHBZ
- </sql>
-
- <!-- *** 选择字段 -->
- <sql id="YS_TEMP_PLXGZSFS_COLSEL">
- <trim suffixOverrides=",">
- <if test="YWLSH != null"> YWLSH ,</if>
- <if test="DRPH != null"> DRPH ,</if>
- <if test="GRSXH != null"> GRSXH ,</if>
- <if test="GRBH != null"> GRBH ,</if>
- <if test="GMSFHM != null"> GMSFHM ,</if>
- <if test="XM != null"> XM ,</if>
- <if test="BGQZ != null"> BGQZ ,</if>
- <if test="BGHZ != null"> BGHZ ,</if>
- <if test="JFYHHH != null"> JFYHHH ,</if>
- <if test="JFYHHM != null"> JFYHHM ,</if>
- <if test="JFYHZH != null"> JFYHZH ,</if>
- <if test="JFYHMC != null"> JFYHMC ,</if>
- <if test="JYZT != null"> JYZT ,</if>
- <if test="JYSM != null"> JYSM ,</if>
- <if test="TJFHBZ != null"> TJFHBZ ,</if>
- </trim>
- </sql>
-
- <!-- *** 记录数 -->
- <select id="YS_TEMP_PLXGZSFS_CNT" resultType="long" parameterType="hashmap">
- select count(1)
- from YS_TEMP_PLXGZSFS
- <where>
- YWLSH = #{W_YWLSH}
- <if test="W_JYZT != null">
- and JYZT = #{W_JYZT}
- </if>
- <if test="W_TJFHBZ != null">
- and TJFHBZ = #{W_TJFHBZ}
- </if>
- <if test="W_DRPH != null">
- and DRPH = #{W_DRPH}
- </if>
- </where>
- </select>
-
- <!-- *** 全字段查询 -->
- <select id="YS_TEMP_PLXGZSFS_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YS_TEMP_PLXGZSFS_COL" /> <!-- 引用前边定义的所有字段 -->
- from YS_TEMP_PLXGZSFS
- <where>
- YWLSH = #{W_YWLSH}
- <if test="W_JYZT != null">
- and JYZT = #{W_JYZT}
- </if>
- <if test="W_TJFHBZ != null">
- and TJFHBZ = #{W_TJFHBZ}
- </if>
- <if test="W_DRPH != null">
- and DRPH = #{W_DRPH}
- </if>
- </where>
- </select>
-
- <!-- *** 选择修改 -->
- <update id="YS_TEMP_PLXGZSFS_US" parameterType="hashmap">
- update YS_TEMP_PLXGZSFS
- <set>
- <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
- <if test="DRPH != null"> DRPH =#{DRPH } ,</if>
- <if test="GRSXH != null"> GRSXH =#{GRSXH } ,</if>
- <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
- <if test="GRBH != null"> GRBH =#{GRBH } ,</if>
- <if test="GMSFHM != null"> GMSFHM =#{GMSFHM } ,</if>
- <if test="XM != null"> XM =#{XM } ,</if>
- <if test="BGQZ != null"> BGQZ =#{BGQZ } ,</if>
- <if test="BGHZ != null"> BGHZ =#{BGHZ } ,</if>
- <if test="JFYHHH != null"> JFYHHH =#{JFYHHH } ,</if>
- <if test="JFYHHM != null"> JFYHHM =#{JFYHHM } ,</if>
- <if test="JFYHZH != null"> JFYHZH =#{JFYHZH } ,</if>
- <if test="JFYHMC != null"> JFYHMC =#{JFYHMC } ,</if>
- <if test="JYZT != null"> JYZT =#{JYZT } ,</if>
- <if test="JYSM != null"> JYSM =#{JYSM } ,</if>
- <if test="TJFHBZ != null"> TJFHBZ =#{TJFHBZ }</if>
- </set>
- <where>
- <choose>
- <when test="W_YWLSH != null">
- YWLSH = #{W_YWLSH}
- </when>
- <otherwise>
- DRPH = #{W_DRPH}
- </otherwise>
- </choose>
- <if test="W_GRBH != null">
- and GRBH = #{W_GRBH}
- </if>
- </where>
- </update>
-
- <!-- 根据导入批号选择更新 -->
- <update id="YS_TEMP_PLXGZSFS_YWLSH_US" parameterType="hashmap">
- update YS_TEMP_PLXGZSFS
- <set>
- <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
- <if test="GRSXH != null"> GRSXH =#{GRSXH } ,</if>
- <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
- <if test="GRBH != null"> GRBH =#{GRBH } ,</if>
- <if test="GMSFHM != null"> GMSFHM =#{GMSFHM } ,</if>
- <if test="XM != null"> XM =#{XM } ,</if>
- <if test="BGQZ != null"> BGQZ =#{BGQZ } ,</if>
- <if test="BGHZ != null"> BGHZ =#{BGHZ } ,</if>
- <if test="JFYHHH != null"> JFYHHH =#{JFYHHH } ,</if>
- <if test="JFYHHM != null"> JFYHHM =#{JFYHHM } ,</if>
- <if test="JFYHZH != null"> JFYHZH =#{JFYHZH } ,</if>
- <if test="JFYHMC != null"> JFYHMC =#{JFYHMC } ,</if>
- <if test="JYZT != null"> JYZT =#{JYZT } ,</if>
- <if test="JYSM != null"> JYSM =#{JYSM } ,</if>
- <if test="TJFHBZ != null"> TJFHBZ =#{TJFHBZ }</if>
- </set>
- <where>
- DRPH = #{W_DRPH}
- </where>
- </update>
-
- <!-- end YS_TEMP_PLXGZSFS-->
-
-
- <!-- ** YS_TEMP_PLXGZSFS_HZ 批量修改征收方式临时汇总资料 ******-->
- <!-- begin YS_TEMP_PLXGZSFS_HZ -->
-
- <!-- *** 所有字段 -->
- <sql id="YS_TEMP_PLXGZSFS_HZ_COL">
- YWLSH, SBND, DRPH, DRZRS, DRCGRS,
- DRSBRS, DWSXH, DWMC, DWBH, ZSFS,
- SPR, SPBZ, BAE001, BAE002, BAE003,
- BAE004, BAE005, BAE006, CHTGRS
- </sql>
-
- <!-- *** 选择字段 -->
- <sql id="YS_TEMP_PLXGZSFS_HZ_COLSEL">
- <trim suffixOverrides=",">
- <if test="YWLSH != null"> YWLSH ,</if>
- <if test="DRPH != null"> DRPH ,</if>
- <if test="SBND != null"> SBND ,</if>
- <if test="DRZRS != null"> DRZRS ,</if>
- <if test="DRCGRS != null"> DRCGRS ,</if>
- <if test="DRSBRS != null"> DRSBRS ,</if>
- <if test="DWSXH != null"> DWSXH ,</if>
- <if test="DWMC != null"> DWMC ,</if>
- <if test="DWBH != null"> DWBH ,</if>
- <if test="ZSFS != null"> ZSFS ,</if>
- <if test="SPR != null"> SPR ,</if>
- <if test="SPBZ != null"> SPBZ ,</if>
- <if test="BAE001 != null"> BAE001 ,</if>
- <if test="BAE002 != null"> BAE002 ,</if>
- <if test="BAE003 != null"> BAE003 ,</if>
- <if test="BAE004 != null"> BAE004 ,</if>
- <if test="BAE005 != null"> BAE005 ,</if>
- <if test="BAE006 != null"> BAE006 ,</if>
- <if test="CHTGRS != null"> CHTGRS </if>
- </trim>
- </sql>
-
- <!-- *** 全字段查询 -->
- <select id="YS_TEMP_PLXGZSFS_HZ_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YS_TEMP_PLXGZSFS_HZ_COL" /> <!-- 引用前边定义的所有字段 -->
- from YS_TEMP_PLXGZSFS_HZ
- <where>
- YWLSH = #{W_YWLSH}
- <if test="W_DRPH != null">
- and DRPH = #{W_DRPH}
- </if>
- </where>
- </select>
-
- <!-- *** 插入 -->
- <insert id="YS_TEMP_PLXGZSFS_HZ_I" parameterType="hashmap">
- insert into YS_TEMP_PLXGZSFS_HZ(
- YWLSH, SBND, DRPH, DRZRS, DRCGRS,
- DRSBRS, DWSXH, DWMC, DWBH, ZSFS,
- SPR, SPBZ, BAE001, BAE002, BAE003,
- BAE004, BAE005, BAE006, CHTGRS
- )values(
- #{YWLSH}, #{SBND}, #{DRPH},
- #{DRZRS,javaType=long,jdbcType=NUMERIC},
- #{DRCGRS,javaType=long,jdbcType=NUMERIC},
- #{DRSBRS,javaType=long,jdbcType=NUMERIC},
- #{DWSXH,javaType=long,jdbcType=NUMERIC},
- #{DWMC}, #{DWBH}, #{ZSFS},#{SPR},
- #{SPBZ}, #{BAE001}, #{BAE002}, #{BAE003},
- #{BAE004}, #{BAE005}, #{BAE006}, #{CHTGRS}
- )
- </insert>
- <!-- *** 根据DRPH 选择修改 -->
- <update id="YS_TEMP_PLXGZSFS_HZ_US" parameterType="hashmap">
- update YS_TEMP_PLXGZSFS_HZ
- <set>
- <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
- <if test="SBND != null"> SBND =#{SBND } ,</if>
- <if test="DRZRS != null"> DRZRS =#{DRZRS } ,</if>
- <if test="DRCGRS != null"> DRCGRS =#{DRCGRS } ,</if>
- <if test="DRSBRS != null"> DRSBRS =#{DRSBRS } ,</if>
- <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
- <if test="DWMC != null"> DWMC =#{DWMC } ,</if>
- <if test="DWBH != null"> DWBH =#{DWBH } ,</if>
- <if test="ZSFS != null"> ZSFS =#{ZSFS } ,</if>
- <if test="SPR != null"> SPR =#{SPR } ,</if>
- <if test="SPBZ != null"> SPBZ =#{SPBZ } ,</if>
- <if test="BAE001 != null"> BAE001 =#{BAE001 } ,</if>
- <if test="BAE002 != null"> BAE002 =#{BAE002 } ,</if>
- <if test="BAE003 != null"> BAE003 =#{BAE003 } ,</if>
- <if test="BAE004 != null"> BAE004 =#{BAE004 } ,</if>
- <if test="BAE005 != null"> BAE005 =#{BAE005 } ,</if>
- <if test="BAE006 != null"> BAE006 =#{BAE006 } ,</if>
- <if test="CHTGRS != null"> CHTGRS =#{CHTGRS } </if>
- </set>
- <where>
- DRPH = #{W_DRPH}
- </where>
- </update>
-
- <!-- *** 根据YWLSH 选择修改 -->
- <update id="YS_TEMP_PLXGZSFS_HZ_FH_US" parameterType="hashmap">
- update YS_TEMP_PLXGZSFS_HZ
- <set>
- <if test="SBND != null"> SBND =#{SBND } ,</if>
- <if test="DRZRS != null"> DRZRS =#{DRZRS } ,</if>
- <if test="DRCGRS != null"> DRCGRS =#{DRCGRS } ,</if>
- <if test="DRSBRS != null"> DRSBRS =#{DRSBRS } ,</if>
- <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
- <if test="DWMC != null"> DWMC =#{DWMC } ,</if>
- <if test="DWBH != null"> DWBH =#{DWBH } ,</if>
- <if test="ZSFS != null"> ZSFS =#{ZSFS } ,</if>
- <if test="SPR != null"> SPR =#{SPR } ,</if>
- <if test="SPBZ != null"> SPBZ =#{SPBZ } ,</if>
- <if test="BAE001 != null"> BAE001 =#{BAE001 } ,</if>
- <if test="BAE002 != null"> BAE002 =#{BAE002 } ,</if>
- <if test="BAE003 != null"> BAE003 =#{BAE003 } ,</if>
- <if test="BAE004 != null"> BAE004 =#{BAE004 } ,</if>
- <if test="BAE005 != null"> BAE005 =#{BAE005 } ,</if>
- <if test="BAE006 != null"> BAE006 =#{BAE006 } ,</if>
- <if test="CHTGRS != null"> CHTGRS =#{CHTGRS } </if>
- </set>
- <where>
- YWLSH = #{W_YWLSH}
- </where>
- </update>
-
- <!-- end YS_TPMP_PLXGZSFS_HZ-->
-
-
- <!-- ** YS_PLXGZSFS 批量修改征收方式资料 ******-->
- <!-- begin PLXGZSFS -->
-
- <!-- *** 所有字段 -->
- <sql id="YS_PLXGZSFS_COL">
- YWLSH, SBND, DWSXH, GRSXH, BGQZ,
- BGHZ, JFYHHH, JFYHHM, JFYHZH, JFYHMC,
- CLBZ, BAE001, BAE002, BAE003, BAE004,
- BAE005, BAE006
- </sql>
-
- <!-- *** 插入 -->
- <insert id="YS_PLXGZSFS_I" parameterType="hashmap">
- insert into YS_PLXGZSFS (
- YWLSH, SBND, DWSXH, GRSXH, BGQZ,
- BGHZ, JFYHHH, JFYHHM, JFYHZH, JFYHMC,
- CLBZ, BAE001, BAE002, BAE003, BAE004,
- BAE005, BAE006
- ) values (
- #{YWLSH,
- javaType=string,jdbcType=VARCHAR},
- #{SBND},
- #{DWSXH,
- javaType=BigDecimal,jdbcType=NUMERIC},
- #{GRSXH,
- javaType=BigDecimal,jdbcType=NUMERIC},
- #{BGQZ,
- javaType=string,jdbcType=VARCHAR},
- #{BGHZ,
- javaType=string,jdbcType=VARCHAR},
- #{JFYHHH,
- javaType=string,jdbcType=VARCHAR},
- #{JFYHHM,
- javaType=string,jdbcType=VARCHAR},
- #{JFYHZH,
- javaType=string,jdbcType=VARCHAR},
- #{JFYHMC,
- javaType=string,jdbcType=VARCHAR},
- #{CLBZ,
- javaType=string,jdbcType=VARCHAR},
- #{BAE001,
- javaType=string,jdbcType=VARCHAR},
- #{BAE002,
- javaType=string,jdbcType=VARCHAR},
- #{BAE003,
- javaType=string,jdbcType=VARCHAR},
- #{BAE004,
- javaType=string,jdbcType=VARCHAR},
- #{BAE005,
- javaType=string,jdbcType=VARCHAR},
- #{BAE006,
- javaType=string,jdbcType=VARCHAR}
- )
- </insert>
-
- <!-- end YS_PLXGZSFS-->
-
- <!-- ** YS_GRJBZL 参保人员资料 ******-->
- <!-- begin YS_GRJBZL -->
- <!-- *** 所有字段 -->
- <sql id="YS_GRJBZL_COL">
- GRSXH, GRBH, DWSXH, GMSFHM, XM,
- XB, ZSFS, JFYHHH, JFYHHM, JFYHZH,
- JFYHMC, BZ
- </sql>
-
- <!-- *** 选择字段 -->
- <sql id="YS_GRJBZL_COLSEL">
- <trim suffixOverrides=",">
- <if test="GRSXH != null"> GRSXH ,</if>
- <if test="DWSXH != null"> DWSXH ,</if>
- <if test="GRBH != null"> GRBH ,</if>
- <if test="GMSFHM != null"> GMSFHM ,</if>
- <if test="XM != null"> XM ,</if>
- <if test="XB != null"> XB ,</if>
- <if test="ZSFS != null"> ZSFS ,</if>
- <if test="JFYHHH != null"> JFYHHH ,</if>
- <if test="JFYHHM != null"> JFYHHM ,</if>
- <if test="JFYHZH != null"> JFYHZH ,</if>
- <if test="JFYHMC != null"> JFYHMC ,</if>
- <if test="BZ != null">BZ </if>
- </trim>
- </sql>
- <!-- *** 全字段查询 -->
- <select id="E_YS_GRJBZL_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YS_GRJBZL_COL" /> <!-- 引用前边定义的所有字段 -->
- from E_YS_GRJBZL
- <where>
- <choose>
- <when test="W_GRSXH != null">
- GRSXH = #{W_GRSXH}
- </when>
- <otherwise>
- GRBH = #{W_GRBH}
- </otherwise>
- </choose>
- </where>
- </select>
- <!-- *** 选择修改 -->
- <update id="E_YS_GRJBZL_US" parameterType="hashmap">
- update E_YS_GRJBZL
- <set>
- <if test="GRSXH != null">GRSXH =#{GRSXH } ,</if>
- <if test="DWSXH != null">DWSXH =#{DWSXH } ,</if>
- <if test="GRBH != null">GRBH =#{GRBH } ,</if>
- <if test="GMSFHM != null">GMSFHM =#{GMSFHM } ,</if>
- <if test="XM != null">XM =#{XM } ,</if>
- <if test="XB != null">XB =#{XB } ,</if>
- <if test="ZSFS != null">ZSFS =#{ZSFS } ,</if>
- <if test="JFYHHH != null">JFYHHH =#{JFYHHH } ,</if>
- <if test="JFYHHM != null">JFYHHM =#{JFYHHM } ,</if>
- <if test="JFYHZH != null">JFYHZH =#{JFYHZH } ,</if>
- <if test="JFYHMC != null">JFYHMC =#{JFYHMC } ,</if>
- <if test="BZ != null">BZ =#{BZ }</if>
- </set>
- <where>
- GRSXH = #{W_GRSXH}
- </where>
- </update>
-
- <!-- end YS_DWJBZL-->
-
- <!-- ** YS_DWJBZL 参保人员资料 ******-->
- <!-- begin YS_DWJBZL -->
- <!-- *** 所有字段 -->
- <sql id="YS_DWJBZL_COL">
- DWSXH, DWBH, DWMC, ZSFS, BZ,
- JFYHHH, JFYHHM, JFYHZH, JFYHMC
- </sql>
-
- <!-- *** 选择字段 -->
- <sql id="YS_DWJBZL_COLSEL">
- <trim suffixOverrides=",">
- <if test="DWSXH != null"> DWSXH ,</if>
- <if test="DWBH != null"> DWBH ,</if>
- <if test="DWMC != null"> DWMC ,</if>
- <if test="ZSFS != null"> ZSFS ,</if>
- <if test="JFYHHH != null"> JFYHHH ,</if>
- <if test="JFYHHM != null"> JFYHHM ,</if>
- <if test="JFYHZH != null"> JFYHZH ,</if>
- <if test="JFYHMC != null"> JFYHMC ,</if>
- <if test="BZ != null">BZ </if>
- </trim>
- </sql>
-
- <!-- *** 记录数 -->
- <select id="E_YS_DWJBZL_CNT" resultType="long" parameterType="hashmap">
- select count(1)
- from E_YS_DWJBZL
- where DWBH = #{W_DWBH}
- </select>
-
- <!-- *** 全字段查询 -->
- <select id="E_YS_DWJBZL_Q" parameterType="hashmap" resultType="hashmap">
- select
- <include refid="YS_DWJBZL_COL" /> <!-- 引用前边定义的所有字段 -->
- from E_YS_DWJBZL
- where DWBH = #{W_DWBH}
- </select>
- <!-- end YS_DWJBZL-->
- </mapper>
|