| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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.BisInspWagaProenInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo" id="bisInspWagaProenInfoResultMap">
- <result property="lkcmbHasLdogcsosj" column="LKCMB_HAS_LDOGCSOSJ"/>
- <result property="lkcmbHasSadsatbda" column="LKCMB_HAS_SADSATBDA"/>
- <result property="lkcmbHasTedaifab" column="LKCMB_HAS_TEDAIFAB"/>
- <result property="lkcmbHasTbcttsib" column="LKCMB_HAS_TBCTTSIB"/>
- <result property="lkcmbHasTusofio" column="LKCMB_HAS_TUSOFIO"/>
- <result property="uadcogcHasDmg" column="UADCOGC_HAS_DMG"/>
- <result property="uadcogcHasEasapitr" column="UADCOGC_HAS_EASAPITR"/>
- <result property="uadraeaosHasEasapitr" column="UADRAEAOS_HAS_EASAPITR"/>
- <result property="uadraeaosHasDmg" column="UADRAEAOS_HAS_DMG"/>
- <result property="uadraeaosHasDatnootl" column="UADRAEAOS_HAS_DATNOOTL"/>
- <result property="gateHasRd" column="GATE_HAS_RD"/>
- <result property="gateHasTsibai" column="GATE_HAS_TSIBAI"/>
- <result property="gateHasFlaw" column="GATE_HAS_FLAW"/>
- <result property="ocdIsMnoacr" column="OCD_IS_MNOACR"/>
- <result property="ocdHasCol" column="OCD_HAS_COL"/>
- <result property="ocdHasPdam" column="OCD_HAS_PDAM"/>
- <result property="dfHasToht" column="DF_HAS_TOHT"/>
- <result property="dfIsNoops" column="DF_IS_NOOPS"/>
- <result property="dfHasGfl" column="DF_HAS_GFL"/>
- <result property="smfHasPfpf" column="SMF_HAS_PFPF"/>
- <result property="smfIsTmaasirn" column="SMF_IS_TMAASIRN"/>
- <result property="smfIsSunspasmf" column="SMF_IS_SUNSPASMF"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="ctapIsDam" column="CTAP_IS_DAM"/>
- <result property="strobIsDWiSr" column="STROB_IS_D_WI_SR"/>
- <result property="gahsiInfo" column="GAHSI_INFO"/>
- <result property="eeoIsN" column="EEO_IS_N"/>
- <result property="icaaecsIsH" column="ICAAECS_IS_H"/>
- <result property="oeseInfo" column="OESE_INFO"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="manageProtect" column="MANAGE_PROTECT"/>
- </resultMap>
-
- <sql id="table_columns">
- LKCMB_HAS_LDOGCSOSJ,
- LKCMB_HAS_SADSATBDA,
- LKCMB_HAS_TEDAIFAB,
- LKCMB_HAS_TBCTTSIB,
- LKCMB_HAS_TUSOFIO,
- UADCOGC_HAS_DMG,
- UADCOGC_HAS_EASAPITR,
- UADRAEAOS_HAS_EASAPITR,
- UADRAEAOS_HAS_DMG,
- UADRAEAOS_HAS_DATNOOTL,
- GATE_HAS_RD,
- GATE_HAS_TSIBAI,
- GATE_HAS_FLAW,
- OCD_IS_MNOACR,
- OCD_HAS_COL,
- OCD_HAS_PDAM,
- DF_HAS_TOHT,
- DF_IS_NOOPS,
- DF_HAS_GFL,
- SMF_HAS_PFPF,
- SMF_IS_TMAASIRN,
- SMF_IS_SUNSPASMF,
- ID,
- RGSTR_ID,
- CTAP_IS_DAM,
- STROB_IS_D_WI_SR,
- GAHSI_INFO,
- EEO_IS_N,
- ICAAECS_IS_H,
- OESE_INFO,
- REC_PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- MANAGE_PROTECT
- </sql>
- <sql id="entity_properties">
- #{lkcmbHasLdogcsosj},
- #{lkcmbHasSadsatbda},
- #{lkcmbHasTedaifab},
- #{lkcmbHasTbcttsib},
- #{lkcmbHasTusofio},
- #{uadcogcHasDmg},
- #{uadcogcHasEasapitr},
- #{uadraeaosHasEasapitr},
- #{uadraeaosHasDmg},
- #{uadraeaosHasDatnootl},
- #{gateHasRd},
- #{gateHasTsibai},
- #{gateHasFlaw},
- #{ocdIsMnoacr},
- #{ocdHasCol},
- #{ocdHasPdam},
- #{dfHasToht},
- #{dfIsNoops},
- #{dfHasGfl},
- #{smfHasPfpf},
- #{smfIsTmaasirn},
- #{smfIsSunspasmf},
- #{id},
- #{rgstrId},
- #{ctapIsDam},
- #{strobIsDWiSr},
- #{gahsiInfo},
- #{eeoIsN},
- #{icaaecsIsH},
- #{oeseInfo},
- #{recPersId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{manageProtect}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">and LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj}</if>
- <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">and LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda}</if>
- <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">and LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab}</if>
- <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">and LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib}</if>
- <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">and LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio}</if>
- <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">and UADCOGC_HAS_DMG = #{uadcogcHasDmg}</if>
- <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">and UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr}</if>
- <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">and UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr}</if>
- <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">and UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg}</if>
- <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">and UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl}</if>
- <if test="gateHasRd != null and gateHasRd != ''">and GATE_HAS_RD = #{gateHasRd}</if>
- <if test="gateHasTsibai != null and gateHasTsibai != ''">and GATE_HAS_TSIBAI = #{gateHasTsibai}</if>
- <if test="gateHasFlaw != null and gateHasFlaw != ''">and GATE_HAS_FLAW = #{gateHasFlaw}</if>
- <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">and OCD_IS_MNOACR = #{ocdIsMnoacr}</if>
- <if test="ocdHasCol != null and ocdHasCol != ''">and OCD_HAS_COL = #{ocdHasCol}</if>
- <if test="ocdHasPdam != null and ocdHasPdam != ''">and OCD_HAS_PDAM = #{ocdHasPdam}</if>
- <if test="dfHasToht != null and dfHasToht != ''">and DF_HAS_TOHT = #{dfHasToht}</if>
- <if test="dfIsNoops != null and dfIsNoops != ''">and DF_IS_NOOPS = #{dfIsNoops}</if>
- <if test="dfHasGfl != null and dfHasGfl != ''">and DF_HAS_GFL = #{dfHasGfl}</if>
- <if test="smfHasPfpf != null and smfHasPfpf != ''">and SMF_HAS_PFPF = #{smfHasPfpf}</if>
- <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">and SMF_IS_TMAASIRN = #{smfIsTmaasirn}</if>
- <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">and SMF_IS_SUNSPASMF = #{smfIsSunspasmf}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="ctapIsDam != null and ctapIsDam != ''">and CTAP_IS_DAM = #{ctapIsDam}</if>
- <if test="strobIsDWiSr != null and strobIsDWiSr != ''">and STROB_IS_D_WI_SR = #{strobIsDWiSr}</if>
- <if test="gahsiInfo != null and gahsiInfo != ''">and GAHSI_INFO = #{gahsiInfo}</if>
- <if test="eeoIsN != null and eeoIsN != ''">and EEO_IS_N = #{eeoIsN}</if>
- <if test="icaaecsIsH != null and icaaecsIsH != ''">and ICAAECS_IS_H = #{icaaecsIsH}</if>
- <if test="oeseInfo != null and oeseInfo != ''">and OESE_INFO = #{oeseInfo}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</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="manageProtect != null and manageProtect != ''">and MANAGE_PROTECT = #{manageProtect}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWagaProenInfoResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWagaProenInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWagaProenInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO
- </select>
- <select id="findList" resultMap="bisInspWagaProenInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
- insert into BIS_INSP_WAGA_PROEN_INFO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WAGA_PROEN_INFO where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
- delete from BIS_INSP_WAGA_PROEN_INFO <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WAGA_PROEN_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
- update BIS_INSP_WAGA_PROEN_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj},</if>
- <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda},</if>
- <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab},</if>
- <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib},</if>
- <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio},</if>
- <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">UADCOGC_HAS_DMG = #{uadcogcHasDmg},</if>
- <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr},</if>
- <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr},</if>
- <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg},</if>
- <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl},</if>
- <if test="gateHasRd != null and gateHasRd != ''">GATE_HAS_RD = #{gateHasRd},</if>
- <if test="gateHasTsibai != null and gateHasTsibai != ''">GATE_HAS_TSIBAI = #{gateHasTsibai},</if>
- <if test="gateHasFlaw != null and gateHasFlaw != ''">GATE_HAS_FLAW = #{gateHasFlaw},</if>
- <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">OCD_IS_MNOACR = #{ocdIsMnoacr},</if>
- <if test="ocdHasCol != null and ocdHasCol != ''">OCD_HAS_COL = #{ocdHasCol},</if>
- <if test="ocdHasPdam != null and ocdHasPdam != ''">OCD_HAS_PDAM = #{ocdHasPdam},</if>
- <if test="dfHasToht != null and dfHasToht != ''">DF_HAS_TOHT = #{dfHasToht},</if>
- <if test="dfIsNoops != null and dfIsNoops != ''">DF_IS_NOOPS = #{dfIsNoops},</if>
- <if test="dfHasGfl != null and dfHasGfl != ''">DF_HAS_GFL = #{dfHasGfl},</if>
- <if test="smfHasPfpf != null and smfHasPfpf != ''">SMF_HAS_PFPF = #{smfHasPfpf},</if>
- <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">SMF_IS_TMAASIRN = #{smfIsTmaasirn},</if>
- <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">SMF_IS_SUNSPASMF = #{smfIsSunspasmf},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapIsDam != null and ctapIsDam != ''">CTAP_IS_DAM = #{ctapIsDam},</if>
- <if test="strobIsDWiSr != null and strobIsDWiSr != ''">STROB_IS_D_WI_SR = #{strobIsDWiSr},</if>
- <if test="gahsiInfo != null and gahsiInfo != ''">GAHSI_INFO = #{gahsiInfo},</if>
- <if test="eeoIsN != null and eeoIsN != ''">EEO_IS_N = #{eeoIsN},</if>
- <if test="icaaecsIsH != null and icaaecsIsH != ''">ICAAECS_IS_H = #{icaaecsIsH},</if>
- <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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="manageProtect != null and manageProtect != ''">MANAGE_PROTECT = #{manageProtect},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaProenInfo">
- update BIS_INSP_WAGA_PROEN_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="lkcmbHasLdogcsosj != null and lkcmbHasLdogcsosj != ''">LKCMB_HAS_LDOGCSOSJ = #{lkcmbHasLdogcsosj},</if>
- <if test="lkcmbHasSadsatbda != null and lkcmbHasSadsatbda != ''">LKCMB_HAS_SADSATBDA = #{lkcmbHasSadsatbda},</if>
- <if test="lkcmbHasTedaifab != null and lkcmbHasTedaifab != ''">LKCMB_HAS_TEDAIFAB = #{lkcmbHasTedaifab},</if>
- <if test="lkcmbHasTbcttsib != null and lkcmbHasTbcttsib != ''">LKCMB_HAS_TBCTTSIB = #{lkcmbHasTbcttsib},</if>
- <if test="lkcmbHasTusofio != null and lkcmbHasTusofio != ''">LKCMB_HAS_TUSOFIO = #{lkcmbHasTusofio},</if>
- <if test="uadcogcHasDmg != null and uadcogcHasDmg != ''">UADCOGC_HAS_DMG = #{uadcogcHasDmg},</if>
- <if test="uadcogcHasEasapitr != null and uadcogcHasEasapitr != ''">UADCOGC_HAS_EASAPITR = #{uadcogcHasEasapitr},</if>
- <if test="uadraeaosHasEasapitr != null and uadraeaosHasEasapitr != ''">UADRAEAOS_HAS_EASAPITR = #{uadraeaosHasEasapitr},</if>
- <if test="uadraeaosHasDmg != null and uadraeaosHasDmg != ''">UADRAEAOS_HAS_DMG = #{uadraeaosHasDmg},</if>
- <if test="uadraeaosHasDatnootl != null and uadraeaosHasDatnootl != ''">UADRAEAOS_HAS_DATNOOTL = #{uadraeaosHasDatnootl},</if>
- <if test="gateHasRd != null and gateHasRd != ''">GATE_HAS_RD = #{gateHasRd},</if>
- <if test="gateHasTsibai != null and gateHasTsibai != ''">GATE_HAS_TSIBAI = #{gateHasTsibai},</if>
- <if test="gateHasFlaw != null and gateHasFlaw != ''">GATE_HAS_FLAW = #{gateHasFlaw},</if>
- <if test="ocdIsMnoacr != null and ocdIsMnoacr != ''">OCD_IS_MNOACR = #{ocdIsMnoacr},</if>
- <if test="ocdHasCol != null and ocdHasCol != ''">OCD_HAS_COL = #{ocdHasCol},</if>
- <if test="ocdHasPdam != null and ocdHasPdam != ''">OCD_HAS_PDAM = #{ocdHasPdam},</if>
- <if test="dfHasToht != null and dfHasToht != ''">DF_HAS_TOHT = #{dfHasToht},</if>
- <if test="dfIsNoops != null and dfIsNoops != ''">DF_IS_NOOPS = #{dfIsNoops},</if>
- <if test="dfHasGfl != null and dfHasGfl != ''">DF_HAS_GFL = #{dfHasGfl},</if>
- <if test="smfHasPfpf != null and smfHasPfpf != ''">SMF_HAS_PFPF = #{smfHasPfpf},</if>
- <if test="smfIsTmaasirn != null and smfIsTmaasirn != ''">SMF_IS_TMAASIRN = #{smfIsTmaasirn},</if>
- <if test="smfIsSunspasmf != null and smfIsSunspasmf != ''">SMF_IS_SUNSPASMF = #{smfIsSunspasmf},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapIsDam != null and ctapIsDam != ''">CTAP_IS_DAM = #{ctapIsDam},</if>
- <if test="strobIsDWiSr != null and strobIsDWiSr != ''">STROB_IS_D_WI_SR = #{strobIsDWiSr},</if>
- <if test="gahsiInfo != null and gahsiInfo != ''">GAHSI_INFO = #{gahsiInfo},</if>
- <if test="eeoIsN != null and eeoIsN != ''">EEO_IS_N = #{eeoIsN},</if>
- <if test="icaaecsIsH != null and icaaecsIsH != ''">ICAAECS_IS_H = #{icaaecsIsH},</if>
- <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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="manageProtect != null and manageProtect != ''">MANAGE_PROTECT = #{manageProtect},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|