| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <?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.TacPawpBioesPeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBioesPe" id="tacPawpBioesPeResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="sgIsFnd" column="SG_IS_FND"/>
- <result property="paIsPm" column="PA_IS_PM"/>
- <result property="eomsIsPm" column="EOMS_IS_PM"/>
- <result property="srsIsBld" column="SRS_IS_BLD"/>
- <result property="srsIsWkbl" column="SRS_IS_WKBL"/>
- <result property="esppIsCmpl" column="ESPP_IS_CMPL"/>
- <result property="esppIsRpt" column="ESPP_IS_RPT"/>
- <result property="woerpfpsaIsCmpl" column="WOERPFPSA_IS_CMPL"/>
- <result property="woerpfpsaIsRpt" column="WOERPFPSA_IS_RPT"/>
- <result property="spcppwgrIsChk" column="SPCPPWGR_IS_CHK"/>
- <result property="spcppwgrIsRpt" column="SPCPPWGR_IS_RPT"/>
- <result property="dwobwcIsRpt" column="DWOBWC_IS_RPT"/>
- <result property="cpIsBld" column="CP_IS_BLD"/>
- <result property="mmIsSt" column="MM_IS_ST"/>
- <result property="mmIsRpt" column="MM_IS_RPT"/>
- <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,
- SG_IS_FND,
- PA_IS_PM,
- EOMS_IS_PM,
- SRS_IS_BLD,
- SRS_IS_WKBL,
- ESPP_IS_CMPL,
- ESPP_IS_RPT,
- WOERPFPSA_IS_CMPL,
- WOERPFPSA_IS_RPT,
- SPCPPWGR_IS_CHK,
- SPCPPWGR_IS_RPT,
- DWOBWC_IS_RPT,
- CP_IS_BLD,
- MM_IS_ST,
- MM_IS_RPT,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{sgIsFnd},
- #{paIsPm},
- #{eomsIsPm},
- #{srsIsBld},
- #{srsIsWkbl},
- #{esppIsCmpl},
- #{esppIsRpt},
- #{woerpfpsaIsCmpl},
- #{woerpfpsaIsRpt},
- #{spcppwgrIsChk},
- #{spcppwgrIsRpt},
- #{dwobwcIsRpt},
- #{cpIsBld},
- #{mmIsSt},
- #{mmIsRpt},
- #{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="sgIsFnd != null and sgIsFnd != ''">and SG_IS_FND = #{sgIsFnd}</if>
- <if test="paIsPm != null and paIsPm != ''">and PA_IS_PM = #{paIsPm}</if>
- <if test="eomsIsPm != null and eomsIsPm != ''">and EOMS_IS_PM = #{eomsIsPm}</if>
- <if test="srsIsBld != null and srsIsBld != ''">and SRS_IS_BLD = #{srsIsBld}</if>
- <if test="srsIsWkbl != null and srsIsWkbl != ''">and SRS_IS_WKBL = #{srsIsWkbl}</if>
- <if test="esppIsCmpl != null and esppIsCmpl != ''">and ESPP_IS_CMPL = #{esppIsCmpl}</if>
- <if test="esppIsRpt != null and esppIsRpt != ''">and ESPP_IS_RPT = #{esppIsRpt}</if>
- <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">and WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl}</if>
- <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">and WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt}</if>
- <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">and SPCPPWGR_IS_CHK = #{spcppwgrIsChk}</if>
- <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">and SPCPPWGR_IS_RPT = #{spcppwgrIsRpt}</if>
- <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">and DWOBWC_IS_RPT = #{dwobwcIsRpt}</if>
- <if test="cpIsBld != null and cpIsBld != ''">and CP_IS_BLD = #{cpIsBld}</if>
- <if test="mmIsSt != null and mmIsSt != ''">and MM_IS_ST = #{mmIsSt}</if>
- <if test="mmIsRpt != null and mmIsRpt != ''">and MM_IS_RPT = #{mmIsRpt}</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="tacPawpBioesPeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_PE where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpBioesPeResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_PE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpBioesPeResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_PE
- </select>
- <select id="findList" resultMap="tacPawpBioesPeResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_PE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_BIOES_PE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
- insert into TAC_PAWP_BIOES_PE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_BIOES_PE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
- delete from TAC_PAWP_BIOES_PE
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_BIOES_PE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
- update TAC_PAWP_BIOES_PE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="sgIsFnd != null and sgIsFnd != ''">SG_IS_FND = #{sgIsFnd},</if>
- <if test="paIsPm != null and paIsPm != ''">PA_IS_PM = #{paIsPm},</if>
- <if test="eomsIsPm != null and eomsIsPm != ''">EOMS_IS_PM = #{eomsIsPm},</if>
- <if test="srsIsBld != null and srsIsBld != ''">SRS_IS_BLD = #{srsIsBld},</if>
- <if test="srsIsWkbl != null and srsIsWkbl != ''">SRS_IS_WKBL = #{srsIsWkbl},</if>
- <if test="esppIsCmpl != null and esppIsCmpl != ''">ESPP_IS_CMPL = #{esppIsCmpl},</if>
- <if test="esppIsRpt != null and esppIsRpt != ''">ESPP_IS_RPT = #{esppIsRpt},</if>
- <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl},</if>
- <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt},</if>
- <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">SPCPPWGR_IS_CHK = #{spcppwgrIsChk},</if>
- <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">SPCPPWGR_IS_RPT = #{spcppwgrIsRpt},</if>
- <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">DWOBWC_IS_RPT = #{dwobwcIsRpt},</if>
- <if test="cpIsBld != null and cpIsBld != ''">CP_IS_BLD = #{cpIsBld},</if>
- <if test="mmIsSt != null and mmIsSt != ''">MM_IS_ST = #{mmIsSt},</if>
- <if test="mmIsRpt != null and mmIsRpt != ''">MM_IS_RPT = #{mmIsRpt},</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.TacPawpBioesPe">
- update TAC_PAWP_BIOES_PE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="sgIsFnd != null and sgIsFnd != ''">SG_IS_FND = #{sgIsFnd},</if>
- <if test="paIsPm != null and paIsPm != ''">PA_IS_PM = #{paIsPm},</if>
- <if test="eomsIsPm != null and eomsIsPm != ''">EOMS_IS_PM = #{eomsIsPm},</if>
- <if test="srsIsBld != null and srsIsBld != ''">SRS_IS_BLD = #{srsIsBld},</if>
- <if test="srsIsWkbl != null and srsIsWkbl != ''">SRS_IS_WKBL = #{srsIsWkbl},</if>
- <if test="esppIsCmpl != null and esppIsCmpl != ''">ESPP_IS_CMPL = #{esppIsCmpl},</if>
- <if test="esppIsRpt != null and esppIsRpt != ''">ESPP_IS_RPT = #{esppIsRpt},</if>
- <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl},</if>
- <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt},</if>
- <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">SPCPPWGR_IS_CHK = #{spcppwgrIsChk},</if>
- <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">SPCPPWGR_IS_RPT = #{spcppwgrIsRpt},</if>
- <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">DWOBWC_IS_RPT = #{dwobwcIsRpt},</if>
- <if test="cpIsBld != null and cpIsBld != ''">CP_IS_BLD = #{cpIsBld},</if>
- <if test="mmIsSt != null and mmIsSt != ''">MM_IS_ST = #{mmIsSt},</if>
- <if test="mmIsRpt != null and mmIsRpt != ''">MM_IS_RPT = #{mmIsRpt},</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>
|