| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <?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.TacPawpPdbstDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpPdbst" id="tacPawpPdbstResultMap">
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="proposalName" column="PROPOSAL_NAME"/>
- <result property="proposalCmplUnit" column="PROPOSAL_CMPL_UNIT"/>
- <result property="proposalCmaf" column="PROPOSAL_CMAF"/>
- <result property="proposalReplyUnit" column="PROPOSAL_REPLY_UNIT"/>
- <result property="proposalReplyTm" column="PROPOSAL_REPLY_TM"/>
- <result property="proposalReplySn" column="PROPOSAL_REPLY_SN"/>
- <result property="fsrName" column="FSR_NAME"/>
- <result property="fsrCmplUnit" column="FSR_CMPL_UNIT"/>
- <result property="fsrCmaf" column="FSR_CMAF"/>
- <result property="fsrReplyUnit" column="FSR_REPLY_UNIT"/>
- <result property="fsrReplyTm" column="FSR_REPLY_TM"/>
- <result property="fsrReplySn" column="FSR_REPLY_SN"/>
- <result property="fsrBeoi" column="FSR_BEOI"/>
- <result property="pdrName" column="PDR_NAME"/>
- <result property="pdrCmplUnit" column="PDR_CMPL_UNIT"/>
- <result property="pdrCmaf" column="PDR_CMAF"/>
- <result property="pdrReplyUnit" column="PDR_REPLY_UNIT"/>
- <result property="pdrReplyTm" column="PDR_REPLY_TM"/>
- <result property="pdrReplySn" column="PDR_REPLY_SN"/>
- <result property="pdrBeoi" column="PDR_BEOI"/>
- <result property="pdrPeriod" column="PDR_PERIOD"/>
- <result property="cadCmplUnit" column="CAD_CMPL_UNIT"/>
- <result property="cadNum" column="CAD_NUM"/>
- <result property="isMcn" column="IS_MCN"/>
- <result property="desChgNum" column="DES_CHG_NUM"/>
- <result property="desChgNumInfo" column="DES_CHG_NUM_INFO"/>
- <result property="dcphbcNum" column="DCPHBC_NUM"/>
- <result property="dcphbcNumInfo" column="DCPHBC_NUM_INFO"/>
- <result property="ftcdcpNum" column="FTCDCP_NUM"/>
- <result property="svcIsSuaa" column="SVC_IS_SUAA"/>
- <result property="svcIsAdr" column="SVC_IS_ADR"/>
- <result property="svcIsMtd" column="SVC_IS_MTD"/>
- <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"/>
- <result property="id" column="ID"/>
- </resultMap>
- <sql id="table_columns">
- RGSTR_ID,
- PROPOSAL_NAME,
- PROPOSAL_CMPL_UNIT,
- PROPOSAL_CMAF,
- PROPOSAL_REPLY_UNIT,
- PROPOSAL_REPLY_TM,
- PROPOSAL_REPLY_SN,
- FSR_NAME,
- FSR_CMPL_UNIT,
- FSR_CMAF,
- FSR_REPLY_UNIT,
- FSR_REPLY_TM,
- FSR_REPLY_SN,
- FSR_BEOI,
- PDR_NAME,
- PDR_CMPL_UNIT,
- PDR_CMAF,
- PDR_REPLY_UNIT,
- PDR_REPLY_TM,
- PDR_REPLY_SN,
- PDR_BEOI,
- PDR_PERIOD,
- CAD_CMPL_UNIT,
- CAD_NUM,
- IS_MCN,
- DES_CHG_NUM,
- DCPHBC_NUM,
- FTCDCP_NUM,
- SVC_IS_SUAA,
- SVC_IS_ADR,
- SVC_IS_MTD,
- REMARK,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,DES_CHG_NUM_INFO,DCPHBC_NUM_INFO,
- ID
- </sql>
- <sql id="entity_properties">
- #{rgstrId},
- #{proposalName},
- #{proposalCmplUnit},
- #{proposalCmaf},
- #{proposalReplyUnit},
- #{proposalReplyTm},
- #{proposalReplySn},
- #{fsrName},
- #{fsrCmplUnit},
- #{fsrCmaf},
- #{fsrReplyUnit},
- #{fsrReplyTm},
- #{fsrReplySn},
- #{fsrBeoi},
- #{pdrName},
- #{pdrCmplUnit},
- #{pdrCmaf},
- #{pdrReplyUnit},
- #{pdrReplyTm},
- #{pdrReplySn},
- #{pdrBeoi},
- #{pdrPeriod},
- #{cadCmplUnit},
- #{cadNum},
- #{isMcn},
- #{desChgNum},
- #{dcphbcNum},
- #{ftcdcpNum},
- #{svcIsSuaa},
- #{svcIsAdr},
- #{svcIsMtd},
- #{remark},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},#{desChgNumInfo},#{dcphbcNumInfo},
- #{id}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="proposalName != null and proposalName != ''">and PROPOSAL_NAME like '%${proposalName}%'</if>
- <if test="desChgNumInfo != null and desChgNumInfo != ''">and DES_CHG_NUM_INFO like '%${desChgNumInfo}%'</if>
- <if test="dcphbcNumInfo != null and dcphbcNumInfo != ''">and DCPHBC_NUM_INFO like '%${dcphbcNumInfo}%'</if>
- <if test="proposalCmplUnit != null and proposalCmplUnit != ''">and PROPOSAL_CMPL_UNIT like
- '%${proposalCmplUnit}%'
- </if>
- <if test="proposalCmaf != null and proposalCmaf != ''">and PROPOSAL_CMAF like '%${proposalCmaf}%'</if>
- <if test="proposalReplyUnit != null and proposalReplyUnit != ''">and PROPOSAL_REPLY_UNIT like
- '%${proposalReplyUnit}%'
- </if>
- <if test="proposalReplyTm != null">and PROPOSAL_REPLY_TM = #{proposalReplyTm}</if>
- <if test="proposalReplySn != null and proposalReplySn != ''">and PROPOSAL_REPLY_SN like
- '%${proposalReplySn}%'
- </if>
- <if test="fsrName != null and fsrName != ''">and FSR_NAME like '%${fsrName}%'</if>
- <if test="fsrCmplUnit != null and fsrCmplUnit != ''">and FSR_CMPL_UNIT like '%${fsrCmplUnit}%'</if>
- <if test="fsrCmaf != null and fsrCmaf != ''">and FSR_CMAF like '%${fsrCmaf}%' #{fsrCmaf}</if>
- <if test="fsrReplyUnit != null and fsrReplyUnit != ''">and FSR_REPLY_UNIT like '%${fsrReplyUnit}%'</if>
- <if test="fsrReplyTm != null">and FSR_REPLY_TM = #{fsrReplyTm}</if>
- <if test="fsrReplySn != null and fsrReplySn != ''">and FSR_REPLY_SN like '%${fsrReplySn}%'</if>
- <if test="fsrBeoi != null and fsrBeoi != ''">and FSR_BEOI like '%${fsrBeoi}%'</if>
- <if test="pdrName != null and pdrName != ''">and PDR_NAME like '%${pdrName}%'</if>
- <if test="pdrCmplUnit != null and pdrCmplUnit != ''">and PDR_CMPL_UNIT like '%${pdrCmplUnit}%'</if>
- <if test="pdrCmaf != null and pdrCmaf != ''">and PDR_CMAF like '%${pdrCmaf}%'</if>
- <if test="pdrReplyUnit != null and pdrReplyUnit != ''">and PDR_REPLY_UNIT like '%${pdrReplyUnit}%'</if>
- <if test="pdrReplyTm != null">and PDR_REPLY_TM = #{pdrReplyTm}</if>
- <if test="pdrReplySn != null and pdrReplySn != ''">and PDR_REPLY_SN like '%${pdrReplySn}%'</if>
- <if test="pdrBeoi != null and pdrBeoi != ''">and PDR_BEOI like '%${pdrBeoi}%'</if>
- <if test="pdrPeriod != null and pdrPeriod != ''">and PDR_PERIOD like '%${pdrPeriod}%'</if>
- <if test="cadCmplUnit != null and cadCmplUnit != ''">and CAD_CMPL_UNIT like '%${cadCmplUnit}%'</if>
- <if test="cadNum != null and cadNum != ''">and CAD_NUM = #{cadNum}</if>
- <if test="isMcn != null and isMcn != ''">and IS_MCN = #{isMcn}</if>
- <if test="desChgNum != null and desChgNum != ''">and DES_CHG_NUM = #{desChgNum}</if>
- <if test="dcphbcNum != null and dcphbcNum != ''">and DCPHBC_NUM = #{dcphbcNum}</if>
- <if test="ftcdcpNum != null and ftcdcpNum != ''">and FTCDCP_NUM = #{ftcdcpNum}</if>
- <if test="svcIsSuaa != null and svcIsSuaa != ''">and SVC_IS_SUAA = #{svcIsSuaa}</if>
- <if test="svcIsAdr != null and svcIsAdr != ''">and SVC_IS_ADR = #{svcIsAdr}</if>
- <if test="svcIsMtd != null and svcIsMtd != ''">and SVC_IS_MTD = #{svcIsMtd}</if>
- <if test="remark != null and remark != ''">and REMARK like '%${remark}%'</if>
- <if test="note != null and note != ''">and NOTE like '%${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>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="tacPawpPdbstResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_PDBST where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpPdbstResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_PDBST
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpPdbstResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_PDBST
- </select>
- <select id="findList" resultMap="tacPawpPdbstResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_PDBST
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_PDBST
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
- insert into TAC_PAWP_PDBST(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_PDBST where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
- delete from TAC_PAWP_PDBST
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_PDBST set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
- update TAC_PAWP_PDBST
- <trim prefix="set" suffixOverrides=",">
- <if test="proposalName != null">PROPOSAL_NAME = #{proposalName},</if>
- <if test="proposalCmplUnit != null">PROPOSAL_CMPL_UNIT = #{proposalCmplUnit},</if>
- <if test="proposalCmaf != null">PROPOSAL_CMAF = #{proposalCmaf},</if>
- <if test="proposalReplyUnit != null">PROPOSAL_REPLY_UNIT = #{proposalReplyUnit},</if>
- <if test="proposalReplyTm != null">PROPOSAL_REPLY_TM = #{proposalReplyTm},</if>
- <if test="proposalReplySn != null">PROPOSAL_REPLY_SN = #{proposalReplySn},</if>
- <if test="fsrName != null">FSR_NAME = #{fsrName},</if>
- <if test="fsrCmplUnit != null">FSR_CMPL_UNIT = #{fsrCmplUnit},</if>
- <if test="fsrCmaf != null">FSR_CMAF = #{fsrCmaf},</if>
- <if test="fsrReplyUnit != null">FSR_REPLY_UNIT = #{fsrReplyUnit},</if>
- <if test="fsrReplyTm != null">FSR_REPLY_TM = #{fsrReplyTm},</if>
- <if test="fsrReplySn != null">FSR_REPLY_SN = #{fsrReplySn},</if>
- <if test="fsrBeoi != null">FSR_BEOI = #{fsrBeoi},</if>
- <if test="pdrName != null">PDR_NAME = #{pdrName},</if>
- <if test="pdrCmplUnit != null">PDR_CMPL_UNIT = #{pdrCmplUnit},</if>
- <if test="pdrCmaf != null">PDR_CMAF = #{pdrCmaf},</if>
- <if test="pdrReplyUnit != null">PDR_REPLY_UNIT = #{pdrReplyUnit},</if>
- <if test="pdrReplyTm != null">PDR_REPLY_TM = #{pdrReplyTm},</if>
- <if test="pdrReplySn != null">PDR_REPLY_SN = #{pdrReplySn},</if>
- <if test="pdrBeoi != null">PDR_BEOI = #{pdrBeoi},</if>
- <if test="pdrPeriod != null">PDR_PERIOD = #{pdrPeriod},</if>
- <if test="cadCmplUnit != null">CAD_CMPL_UNIT = #{cadCmplUnit},</if>
- <if test="cadNum != null">CAD_NUM = #{cadNum},</if>
- <if test="isMcn != null">IS_MCN = #{isMcn},</if>
- <if test="desChgNum != null">DES_CHG_NUM = #{desChgNum},</if>
- <if test="dcphbcNum != null">DCPHBC_NUM = #{dcphbcNum},</if>
- <if test="ftcdcpNum != null">FTCDCP_NUM = #{ftcdcpNum},</if>
- <if test="svcIsSuaa != null">SVC_IS_SUAA = #{svcIsSuaa},</if>
- <if test="svcIsAdr != null">SVC_IS_ADR = #{svcIsAdr},</if>
- <if test="svcIsMtd != null">SVC_IS_MTD = #{svcIsMtd},</if>
- <if test="desChgNumInfo != null">DES_CHG_NUM_INFO = #{desChgNumInfo},</if>
- <if test="dcphbcNumInfo != null">DCPHBC_NUM_INFO = #{dcphbcNumInfo},</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>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpPdbst">
- update TAC_PAWP_PDBST
- <trim prefix="set" suffixOverrides=",">
- <if test="proposalName != null">PROPOSAL_NAME = #{proposalName},</if>
- <if test="proposalCmplUnit != null">PROPOSAL_CMPL_UNIT = #{proposalCmplUnit},</if>
- <if test="proposalCmaf != null">PROPOSAL_CMAF = #{proposalCmaf},</if>
- <if test="proposalReplyUnit != null">PROPOSAL_REPLY_UNIT = #{proposalReplyUnit},</if>
- <if test="proposalReplyTm != null">PROPOSAL_REPLY_TM = #{proposalReplyTm},</if>
- <if test="proposalReplySn != null">PROPOSAL_REPLY_SN = #{proposalReplySn},</if>
- <if test="fsrName != null">FSR_NAME = #{fsrName},</if>
- <if test="fsrCmplUnit != null">FSR_CMPL_UNIT = #{fsrCmplUnit},</if>
- <if test="fsrCmaf != null">FSR_CMAF = #{fsrCmaf},</if>
- <if test="fsrReplyUnit != null">FSR_REPLY_UNIT = #{fsrReplyUnit},</if>
- <if test="fsrReplyTm != null">FSR_REPLY_TM = #{fsrReplyTm},</if>
- <if test="fsrReplySn != null">FSR_REPLY_SN = #{fsrReplySn},</if>
- <if test="fsrBeoi != null">FSR_BEOI = #{fsrBeoi},</if>
- <if test="pdrName != null">PDR_NAME = #{pdrName},</if>
- <if test="pdrCmplUnit != null">PDR_CMPL_UNIT = #{pdrCmplUnit},</if>
- <if test="pdrCmaf != null">PDR_CMAF = #{pdrCmaf},</if>
- <if test="pdrReplyUnit != null">PDR_REPLY_UNIT = #{pdrReplyUnit},</if>
- <if test="pdrReplyTm != null">PDR_REPLY_TM = #{pdrReplyTm},</if>
- <if test="pdrReplySn != null">PDR_REPLY_SN = #{pdrReplySn},</if>
- <if test="pdrBeoi != null">PDR_BEOI = #{pdrBeoi},</if>
- <if test="pdrPeriod != null">PDR_PERIOD = #{pdrPeriod},</if>
- <if test="cadCmplUnit != null">CAD_CMPL_UNIT = #{cadCmplUnit},</if>
- <if test="cadNum != null">CAD_NUM = #{cadNum},</if>
- <if test="isMcn != null">IS_MCN = #{isMcn},</if>
- <if test="desChgNum != null">DES_CHG_NUM = #{desChgNum},</if>
- <if test="dcphbcNum != null">DCPHBC_NUM = #{dcphbcNum},</if>
- <if test="ftcdcpNum != null">FTCDCP_NUM = #{ftcdcpNum},</if>
- <if test="svcIsSuaa != null">SVC_IS_SUAA = #{svcIsSuaa},</if>
- <if test="svcIsAdr != null">SVC_IS_ADR = #{svcIsAdr},</if>
- <if test="svcIsMtd != null">SVC_IS_MTD = #{svcIsMtd},</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="desChgNumInfo != null">DES_CHG_NUM_INFO = #{desChgNumInfo},</if>
- <if test="dcphbcNumInfo != null">DCPHBC_NUM_INFO = #{dcphbcNumInfo},</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>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|