| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?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.TacPawpBioesRwunitDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit" id="tacPawpBioesRwunitResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="untNm" column="UNT_NM"/>
- <result property="entprsQlfctn" column="ENTPRS_QLFCTN"/>
- <result property="aopsl" column="AOPSL"/>
- <result property="sePas" column="SE_PAS"/>
- <result property="ttopfpaNum" column="TTOPFPA_NUM"/>
- <result property="ttopfpaTawcNum" column="TTOPFPA_TAWC_NUM"/>
- <result property="sosNum" column="SOS_NUM"/>
- <result property="sosTawcNum" column="SOS_TAWC_NUM"/>
- <result property="tsPp" column="TS_PP"/>
- <result property="tsRar" column="TS_RAR"/>
- <result property="tsOi" column="TS_OI"/>
- <result property="tsCp" column="TS_CP"/>
- <result property="pfcpIsCmpl" column="PFCP_IS_CMPL"/>
- <result property="pfcpIsRpt" column="PFCP_IS_RPT"/>
- <result property="erpfpaIsCmpl" column="ERPFPA_IS_CMPL"/>
- <result property="erpfpaIsRpt" column="ERPFPA_IS_RPT"/>
- <result property="scpwgrIsCmpl" column="SCPWGR_IS_CMPL"/>
- <result property="scpwgrIsRtf" column="SCPWGR_IS_RTF"/>
- <result property="isDpseatr" column="IS_DPSEATR"/>
- <result property="isBldEs" column="IS_BLD_ES"/>
- <result property="isPrcdEd" column="IS_PRCD_ED"/>
- <result property="isPrcdPri" column="IS_PRCD_PRI"/>
- <result property="isTcosr" column="IS_TCOSR"/>
- <result property="spfswsaiIsCmpls" column="SPFSWSAI_IS_CMPLS"/>
- <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,
- UNT_NM,
- ENTPRS_QLFCTN,
- AOPSL,
- SE_PAS,
- TTOPFPA_NUM,
- TTOPFPA_TAWC_NUM,
- SOS_NUM,
- SOS_TAWC_NUM,
- TS_PP,
- TS_RAR,
- TS_OI,
- TS_CP,
- PFCP_IS_CMPL,
- PFCP_IS_RPT,
- ERPFPA_IS_CMPL,
- ERPFPA_IS_RPT,
- SCPWGR_IS_CMPL,
- SCPWGR_IS_RTF,
- IS_DPSEATR,
- IS_BLD_ES,
- IS_PRCD_ED,
- IS_PRCD_PRI,
- IS_TCOSR,
- SPFSWSAI_IS_CMPLS,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{untNm},
- #{entprsQlfctn},
- #{aopsl},
- #{sePas},
- #{ttopfpaNum},
- #{ttopfpaTawcNum},
- #{sosNum},
- #{sosTawcNum},
- #{tsPp},
- #{tsRar},
- #{tsOi},
- #{tsCp},
- #{pfcpIsCmpl},
- #{pfcpIsRpt},
- #{erpfpaIsCmpl},
- #{erpfpaIsRpt},
- #{scpwgrIsCmpl},
- #{scpwgrIsRtf},
- #{isDpseatr},
- #{isBldEs},
- #{isPrcdEd},
- #{isPrcdPri},
- #{isTcosr},
- #{spfswsaiIsCmpls},
- #{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="untNm != null and untNm != ''">and UNT_NM like '%${untNm}%'</if>
- <if test="entprsQlfctn != null and entprsQlfctn != ''">and ENTPRS_QLFCTN like '%${entprsQlfctn}%'</if>
- <if test="aopsl != null and aopsl != ''">and AOPSL = #{aopsl}</if>
- <if test="sePas != null and sePas != ''">and SE_PAS = #{sePas}</if>
- <if test="ttopfpaNum != null and ttopfpaNum != ''">and TTOPFPA_NUM = #{ttopfpaNum}</if>
- <if test="ttopfpaTawcNum != null and ttopfpaTawcNum != ''">and TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum}</if>
- <if test="sosNum != null and sosNum != ''">and SOS_NUM = #{sosNum}</if>
- <if test="sosTawcNum != null and sosTawcNum != ''">and SOS_TAWC_NUM = #{sosTawcNum}</if>
- <if test="tsPp != null and tsPp != ''">and TS_PP = #{tsPp}</if>
- <if test="tsRar != null and tsRar != ''">and TS_RAR = #{tsRar}</if>
- <if test="tsOi != null and tsOi != ''">and TS_OI = #{tsOi}</if>
- <if test="tsCp != null and tsCp != ''">and TS_CP = #{tsCp}</if>
- <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">and PFCP_IS_CMPL = #{pfcpIsCmpl}</if>
- <if test="pfcpIsRpt != null and pfcpIsRpt != ''">and PFCP_IS_RPT = #{pfcpIsRpt}</if>
- <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">and ERPFPA_IS_CMPL = #{erpfpaIsCmpl}</if>
- <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">and ERPFPA_IS_RPT = #{erpfpaIsRpt}</if>
- <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">and SCPWGR_IS_CMPL = #{scpwgrIsCmpl}</if>
- <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">and SCPWGR_IS_RTF = #{scpwgrIsRtf}</if>
- <if test="isDpseatr != null and isDpseatr != ''">and IS_DPSEATR = #{isDpseatr}</if>
- <if test="isBldEs != null and isBldEs != ''">and IS_BLD_ES = #{isBldEs}</if>
- <if test="isPrcdEd != null and isPrcdEd != ''">and IS_PRCD_ED = #{isPrcdEd}</if>
- <if test="isPrcdPri != null and isPrcdPri != ''">and IS_PRCD_PRI = #{isPrcdPri}</if>
- <if test="isTcosr != null and isTcosr != ''">and IS_TCOSR = #{isTcosr}</if>
- <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">and SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls}</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="tacPawpBioesRwunitResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_RWUNIT where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpBioesRwunitResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_RWUNIT
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpBioesRwunitResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_RWUNIT
- </select>
- <select id="findList" resultMap="tacPawpBioesRwunitResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BIOES_RWUNIT
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_BIOES_RWUNIT
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
- insert into TAC_PAWP_BIOES_RWUNIT(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_BIOES_RWUNIT where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
- delete from TAC_PAWP_BIOES_RWUNIT
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_BIOES_RWUNIT set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesRwunit">
- update TAC_PAWP_BIOES_RWUNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="untNm != null">UNT_NM = #{untNm},</if>
- <if test="entprsQlfctn != null">ENTPRS_QLFCTN = #{entprsQlfctn},</if>
- <if test="aopsl != null">AOPSL = #{aopsl},</if>
- <if test="sePas != null">SE_PAS = #{sePas},</if>
- <if test="ttopfpaNum != null">TTOPFPA_NUM = #{ttopfpaNum},</if>
- <if test="ttopfpaTawcNum != null">TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum},</if>
- <if test="sosNum != null">SOS_NUM = #{sosNum},</if>
- <if test="sosTawcNum != null">SOS_TAWC_NUM = #{sosTawcNum},</if>
- <if test="tsPp != null">TS_PP = #{tsPp},</if>
- <if test="tsRar != null">TS_RAR = #{tsRar},</if>
- <if test="tsOi != null">TS_OI = #{tsOi},</if>
- <if test="tsCp != null">TS_CP = #{tsCp},</if>
- <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">PFCP_IS_CMPL = #{pfcpIsCmpl},</if>
- <if test="pfcpIsRpt != null and pfcpIsRpt != ''">PFCP_IS_RPT = #{pfcpIsRpt},</if>
- <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">ERPFPA_IS_CMPL = #{erpfpaIsCmpl},</if>
- <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">ERPFPA_IS_RPT = #{erpfpaIsRpt},</if>
- <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">SCPWGR_IS_CMPL = #{scpwgrIsCmpl},</if>
- <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">SCPWGR_IS_RTF = #{scpwgrIsRtf},</if>
- <if test="isDpseatr != null and isDpseatr != ''">IS_DPSEATR = #{isDpseatr},</if>
- <if test="isBldEs != null and isBldEs != ''">IS_BLD_ES = #{isBldEs},</if>
- <if test="isPrcdEd != null and isPrcdEd != ''">IS_PRCD_ED = #{isPrcdEd},</if>
- <if test="isPrcdPri != null and isPrcdPri != ''">IS_PRCD_PRI = #{isPrcdPri},</if>
- <if test="isTcosr != null and isTcosr != ''">IS_TCOSR = #{isTcosr},</if>
- <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls},</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.TacPawpBioesRwunit">
- update TAC_PAWP_BIOES_RWUNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="untNm != null">UNT_NM = #{untNm},</if>
- <if test="entprsQlfctn != null">ENTPRS_QLFCTN = #{entprsQlfctn},</if>
- <if test="aopsl != null">AOPSL = #{aopsl},</if>
- <if test="sePas != null">SE_PAS = #{sePas},</if>
- <if test="ttopfpaNum != null">TTOPFPA_NUM = #{ttopfpaNum},</if>
- <if test="ttopfpaTawcNum != null">TTOPFPA_TAWC_NUM = #{ttopfpaTawcNum},</if>
- <if test="sosNum != null">SOS_NUM = #{sosNum},</if>
- <if test="sosTawcNum != null">SOS_TAWC_NUM = #{sosTawcNum},</if>
- <if test="tsPp != null">TS_PP = #{tsPp},</if>
- <if test="tsRar != null">TS_RAR = #{tsRar},</if>
- <if test="tsOi != null">TS_OI = #{tsOi},</if>
- <if test="tsCp != null">TS_CP = #{tsCp},</if>
- <if test="pfcpIsCmpl != null and pfcpIsCmpl != ''">PFCP_IS_CMPL = #{pfcpIsCmpl},</if>
- <if test="pfcpIsRpt != null and pfcpIsRpt != ''">PFCP_IS_RPT = #{pfcpIsRpt},</if>
- <if test="erpfpaIsCmpl != null and erpfpaIsCmpl != ''">ERPFPA_IS_CMPL = #{erpfpaIsCmpl},</if>
- <if test="erpfpaIsRpt != null and erpfpaIsRpt != ''">ERPFPA_IS_RPT = #{erpfpaIsRpt},</if>
- <if test="scpwgrIsCmpl != null and scpwgrIsCmpl != ''">SCPWGR_IS_CMPL = #{scpwgrIsCmpl},</if>
- <if test="scpwgrIsRtf != null and scpwgrIsRtf != ''">SCPWGR_IS_RTF = #{scpwgrIsRtf},</if>
- <if test="isDpseatr != null and isDpseatr != ''">IS_DPSEATR = #{isDpseatr},</if>
- <if test="isBldEs != null and isBldEs != ''">IS_BLD_ES = #{isBldEs},</if>
- <if test="isPrcdEd != null and isPrcdEd != ''">IS_PRCD_ED = #{isPrcdEd},</if>
- <if test="isPrcdPri != null and isPrcdPri != ''">IS_PRCD_PRI = #{isPrcdPri},</if>
- <if test="isTcosr != null and isTcosr != ''">IS_TCOSR = #{isTcosr},</if>
- <if test="spfswsaiIsCmpls != null and spfswsaiIsCmpls != ''">SPFSWSAI_IS_CMPLS = #{spfswsaiIsCmpls},</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>
|