| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?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="cn.com.goldenwater.dcproj.dao.TacPawpBitopqPeqaaDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa" id="tacPawpBitopqPeqaaResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="sctnId" column="SCTN_ID"/>
- <result property="sctnNm" column="SCTN_NM"/>
- <result property="tacId" column="TAC_ID"/>
- <result property="tacNm" column="TAC_NM"/>
- <result property="rwunitQlctn" column="RWUNIT_QLCTN"/>
- <result property="rwunitDfNum" column="RWUNIT_DF_NUM"/>
- <result property="rwunitCncltn" column="RWUNIT_CNCLTN"/>
- <result property="spvsQlctn" column="SPVS_QLCTN"/>
- <result property="spvsDfNum" column="SPVS_DF_NUM"/>
- <result property="spvsCncltn" column="SPVS_CNCLTN"/>
- <result property="untpjtDvdNum" column="UNTPJT_DVD_NUM"/>
- <result property="untpjtHbeNum" column="UNTPJT_HBE_NUM"/>
- <result property="untpjtFpy" column="UNTPJT_FPY"/>
- <result property="untpjtAprvdNum" column="UNTPJT_APRVD_NUM"/>
- <result property="subpjtDvdNum" column="SUBPJT_DVD_NUM"/>
- <result property="subpjtHbeNum" column="SUBPJT_HBE_NUM"/>
- <result property="subpjtFpy" column="SUBPJT_FPY"/>
- <result property="subpjtAprvdNum" column="SUBPJT_APRVD_NUM"/>
- <result property="cellpjtDvdNum" column="CELLPJT_DVD_NUM"/>
- <result property="cellpjtHbeNum" column="CELLPJT_HBE_NUM"/>
- <result property="cellpjtFpy" column="CELLPJT_FPY"/>
- <result property="cellpjtAprvdNum" column="CELLPJT_APRVD_NUM"/>
- <result property="intmdtAcctnsInfo" column="INTMDT_ACCTNS_INFO"/>
- <result property="isSpclAcctns" column="IS_SPCL_ACCTNS"/>
- <result property="spclAcctnsTm" column="SPCL_ACCTNS_TM"/>
- <result property="spclAcctnsInfo" column="SPCL_ACCTNS_INFO"/>
- <result property="compltdAcctnsInfo" column="COMPLTD_ACCTNS_INFO"/>
- <result property="remark" column="REMARK"/>
- <result property="note" column="NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- SCTN_ID,
- SCTN_NM,
- TAC_ID,
- TAC_NM,
- RWUNIT_QLCTN,
- RWUNIT_DF_NUM,
- RWUNIT_CNCLTN,
- SPVS_QLCTN,
- SPVS_DF_NUM,
- SPVS_CNCLTN,
- UNTPJT_DVD_NUM,
- UNTPJT_HBE_NUM,
- UNTPJT_FPY,
- UNTPJT_APRVD_NUM,
- SUBPJT_DVD_NUM,
- SUBPJT_HBE_NUM,
- SUBPJT_FPY,
- SUBPJT_APRVD_NUM,
- CELLPJT_DVD_NUM,
- CELLPJT_HBE_NUM,
- CELLPJT_FPY,
- CELLPJT_APRVD_NUM,
- INTMDT_ACCTNS_INFO,
- IS_SPCL_ACCTNS,
- SPCL_ACCTNS_TM,
- SPCL_ACCTNS_INFO,
- COMPLTD_ACCTNS_INFO,
- REMARK,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{sctnId},
- #{sctnNm},
- #{tacId},
- #{tacNm},
- #{rwunitQlctn},
- #{rwunitDfNum},
- #{rwunitCncltn},
- #{spvsQlctn},
- #{spvsDfNum},
- #{spvsCncltn},
- #{untpjtDvdNum},
- #{untpjtHbeNum},
- #{untpjtFpy},
- #{untpjtAprvdNum},
- #{subpjtDvdNum},
- #{subpjtHbeNum},
- #{subpjtFpy},
- #{subpjtAprvdNum},
- #{cellpjtDvdNum},
- #{cellpjtHbeNum},
- #{cellpjtFpy},
- #{cellpjtAprvdNum},
- #{intmdtAcctnsInfo},
- #{isSpclAcctns},
- #{spclAcctnsTm},
- #{spclAcctnsInfo},
- #{compltdAcctnsInfo},
- #{remark},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="sctnId != null and sctnId != ''">and SCTN_ID = #{sctnId}</if>
- <if test="sctnNm != null and sctnNm != ''">and SCTN_NM like '%${sctnNm}%'</if>
- <if test="tacId != null and tacId != ''">and TAC_ID = #{tacId}</if>
- <if test="tacNm != null and tacNm != ''">and TAC_NM like '%${tacNm}%'</if>
- <if test="rwunitQlctn != null and rwunitQlctn != ''">and RWUNIT_QLCTN = #{rwunitQlctn}</if>
- <if test="rwunitDfNum != null and rwunitDfNum != ''">and RWUNIT_DF_NUM = #{rwunitDfNum}</if>
- <if test="rwunitCncltn != null and rwunitCncltn != ''">and RWUNIT_CNCLTN = #{rwunitCncltn}</if>
- <if test="spvsQlctn != null and spvsQlctn != ''">and SPVS_QLCTN = #{spvsQlctn}</if>
- <if test="spvsDfNum != null and spvsDfNum != ''">and SPVS_DF_NUM = #{spvsDfNum}</if>
- <if test="spvsCncltn != null and spvsCncltn != ''">and SPVS_CNCLTN = #{spvsCncltn}</if>
- <if test="untpjtDvdNum != null and untpjtDvdNum != ''">and UNTPJT_DVD_NUM = #{untpjtDvdNum}</if>
- <if test="untpjtHbeNum != null and untpjtHbeNum != ''">and UNTPJT_HBE_NUM = #{untpjtHbeNum}</if>
- <if test="untpjtFpy != null and untpjtFpy != ''">and UNTPJT_FPY = #{untpjtFpy}</if>
- <if test="untpjtAprvdNum != null and untpjtAprvdNum != ''">and UNTPJT_APRVD_NUM = #{untpjtAprvdNum}</if>
- <if test="subpjtDvdNum != null and subpjtDvdNum != ''">and SUBPJT_DVD_NUM = #{subpjtDvdNum}</if>
- <if test="subpjtHbeNum != null and subpjtHbeNum != ''">and SUBPJT_HBE_NUM = #{subpjtHbeNum}</if>
- <if test="subpjtFpy != null and subpjtFpy != ''">and SUBPJT_FPY = #{subpjtFpy}</if>
- <if test="subpjtAprvdNum != null and subpjtAprvdNum != ''">and SUBPJT_APRVD_NUM = #{subpjtAprvdNum}</if>
- <if test="cellpjtDvdNum != null and cellpjtDvdNum != ''">and CELLPJT_DVD_NUM = #{cellpjtDvdNum}</if>
- <if test="cellpjtHbeNum != null and cellpjtHbeNum != ''">and CELLPJT_HBE_NUM = #{cellpjtHbeNum}</if>
- <if test="cellpjtFpy != null and cellpjtFpy != ''">and CELLPJT_FPY = #{cellpjtFpy}</if>
- <if test="cellpjtAprvdNum != null and cellpjtAprvdNum != ''">and CELLPJT_APRVD_NUM = #{cellpjtAprvdNum}</if>
- <if test="intmdtAcctnsInfo != null and intmdtAcctnsInfo != ''">and INTMDT_ACCTNS_INFO =
- #{intmdtAcctnsInfo}
- </if>
- <if test="isSpclAcctns != null and isSpclAcctns != ''">and IS_SPCL_ACCTNS = #{isSpclAcctns}</if>
- <if test="spclAcctnsTm != null and spclAcctnsTm != ''">and SPCL_ACCTNS_TM = #{spclAcctnsTm}</if>
- <if test="spclAcctnsInfo != null and spclAcctnsInfo != ''">and SPCL_ACCTNS_INFO = #{spclAcctnsInfo}</if>
- <if test="compltdAcctnsInfo != null and compltdAcctnsInfo != ''">and COMPLTD_ACCTNS_INFO =
- #{compltdAcctnsInfo}
- </if>
- <if test="remark != null and remark != ''">and REMARK = #{remark}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- </trim>
- </sql>
- <select id="get" resultMap="tacPawpBitopqPeqaaResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BITOPQ_PEQAA where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpBitopqPeqaaResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BITOPQ_PEQAA
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpBitopqPeqaaResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BITOPQ_PEQAA
- </select>
- <select id="findList" resultMap="tacPawpBitopqPeqaaResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BITOPQ_PEQAA
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_BITOPQ_PEQAA
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
- insert into TAC_PAWP_BITOPQ_PEQAA(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_BITOPQ_PEQAA where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
- delete from TAC_PAWP_BITOPQ_PEQAA
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_BITOPQ_PEQAA set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
- update TAC_PAWP_BITOPQ_PEQAA
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="sctnId != null and sctnId != ''">SCTN_ID = #{sctnId},</if>
- <if test="sctnNm != null and sctnNm != ''">SCTN_NM = #{sctnNm},</if>
- <if test="tacId != null and tacId != ''">TAC_ID = #{tacId},</if>
- <if test="tacNm != null and tacNm != ''">TAC_NM = #{tacNm},</if>
- <if test="rwunitQlctn != null and rwunitQlctn != ''">RWUNIT_QLCTN = #{rwunitQlctn},</if>
- <if test="rwunitDfNum != null and rwunitDfNum != ''">RWUNIT_DF_NUM = #{rwunitDfNum},</if>
- <if test="rwunitCncltn != null and rwunitCncltn != ''">RWUNIT_CNCLTN = #{rwunitCncltn},</if>
- <if test="spvsQlctn != null and spvsQlctn != ''">SPVS_QLCTN = #{spvsQlctn},</if>
- <if test="spvsDfNum != null and spvsDfNum != ''">SPVS_DF_NUM = #{spvsDfNum},</if>
- <if test="spvsCncltn != null and spvsCncltn != ''">SPVS_CNCLTN = #{spvsCncltn},</if>
- <if test="untpjtDvdNum != null">UNTPJT_DVD_NUM = #{untpjtDvdNum},</if>
- <if test="untpjtHbeNum != null">UNTPJT_HBE_NUM = #{untpjtHbeNum},</if>
- <if test="untpjtFpy != null">UNTPJT_FPY = #{untpjtFpy},</if>
- <if test="untpjtAprvdNum != null">UNTPJT_APRVD_NUM = #{untpjtAprvdNum},</if>
- <if test="subpjtDvdNum != null">SUBPJT_DVD_NUM = #{subpjtDvdNum},</if>
- <if test="subpjtHbeNum != null">SUBPJT_HBE_NUM = #{subpjtHbeNum},</if>
- <if test="subpjtFpy != null">SUBPJT_FPY = #{subpjtFpy},</if>
- <if test="subpjtAprvdNum != null">SUBPJT_APRVD_NUM = #{subpjtAprvdNum},</if>
- <if test="cellpjtDvdNum != null">CELLPJT_DVD_NUM = #{cellpjtDvdNum},</if>
- <if test="cellpjtHbeNum != null">CELLPJT_HBE_NUM = #{cellpjtHbeNum},</if>
- <if test="cellpjtFpy != null">CELLPJT_FPY = #{cellpjtFpy},</if>
- <if test="cellpjtAprvdNum != null">CELLPJT_APRVD_NUM = #{cellpjtAprvdNum},</if>
- <if test="intmdtAcctnsInfo != null">INTMDT_ACCTNS_INFO = #{intmdtAcctnsInfo},</if>
- <if test="isSpclAcctns != null">IS_SPCL_ACCTNS = #{isSpclAcctns},</if>
- <if test="spclAcctnsTm != null">SPCL_ACCTNS_TM = #{spclAcctnsTm},</if>
- <if test="spclAcctnsInfo != null">SPCL_ACCTNS_INFO = #{spclAcctnsInfo},</if>
- <if test="compltdAcctnsInfo != null">COMPLTD_ACCTNS_INFO = #{compltdAcctnsInfo},</if>
- <if test="remark != null">REMARK = #{remark},</if>
- <if test="note != null">NOTE = #{note},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBitopqPeqaa">
- update TAC_PAWP_BITOPQ_PEQAA
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="sctnId != null and sctnId != ''">SCTN_ID = #{sctnId},</if>
- <if test="sctnNm != null">SCTN_NM = #{sctnNm},</if>
- <if test="tacId != null and tacId != ''">TAC_ID = #{tacId},</if>
- <if test="tacNm != null">TAC_NM = #{tacNm},</if>
- <if test="rwunitQlctn != null and rwunitQlctn != ''">RWUNIT_QLCTN = #{rwunitQlctn},</if>
- <if test="rwunitDfNum != null and rwunitDfNum != ''">RWUNIT_DF_NUM = #{rwunitDfNum},</if>
- <if test="rwunitCncltn != null and rwunitCncltn != ''">RWUNIT_CNCLTN = #{rwunitCncltn},</if>
- <if test="spvsQlctn != null and spvsQlctn != ''">SPVS_QLCTN = #{spvsQlctn},</if>
- <if test="spvsDfNum != null and spvsDfNum != ''">SPVS_DF_NUM = #{spvsDfNum},</if>
- <if test="spvsCncltn != null and spvsCncltn != ''">SPVS_CNCLTN = #{spvsCncltn},</if>
- <if test="untpjtDvdNum != null">UNTPJT_DVD_NUM = #{untpjtDvdNum},</if>
- <if test="untpjtHbeNum != null">UNTPJT_HBE_NUM = #{untpjtHbeNum},</if>
- <if test="untpjtFpy != null">UNTPJT_FPY = #{untpjtFpy},</if>
- <if test="untpjtAprvdNum != null">UNTPJT_APRVD_NUM = #{untpjtAprvdNum},</if>
- <if test="subpjtDvdNum != null">SUBPJT_DVD_NUM = #{subpjtDvdNum},</if>
- <if test="subpjtHbeNum != null">SUBPJT_HBE_NUM = #{subpjtHbeNum},</if>
- <if test="subpjtFpy != null">SUBPJT_FPY = #{subpjtFpy},</if>
- <if test="subpjtAprvdNum != null">SUBPJT_APRVD_NUM = #{subpjtAprvdNum},</if>
- <if test="cellpjtDvdNum != null">CELLPJT_DVD_NUM = #{cellpjtDvdNum},</if>
- <if test="cellpjtHbeNum != null">CELLPJT_HBE_NUM = #{cellpjtHbeNum},</if>
- <if test="cellpjtFpy != null">CELLPJT_FPY = #{cellpjtFpy},</if>
- <if test="cellpjtAprvdNum != null">CELLPJT_APRVD_NUM = #{cellpjtAprvdNum},</if>
- <if test="intmdtAcctnsInfo != null">INTMDT_ACCTNS_INFO = #{intmdtAcctnsInfo},</if>
- <if test="isSpclAcctns != null">IS_SPCL_ACCTNS = #{isSpclAcctns},</if>
- <if test="spclAcctnsTm != null">SPCL_ACCTNS_TM = #{spclAcctnsTm},</if>
- <if test="spclAcctnsInfo != null">SPCL_ACCTNS_INFO = #{spclAcctnsInfo},</if>
- <if test="compltdAcctnsInfo != null">COMPLTD_ACCTNS_INFO = #{compltdAcctnsInfo},</if>
- <if test="remark != null">REMARK = #{remark},</if>
- <if test="note != null">NOTE = #{note},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|