| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?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.BisInspWrmRgstrMacowiagDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag" id="bisInspWrmRgstrMacowiagResultMap">
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="rwaIsClear" column="RWA_IS_CLEAR" />
- <result property="crsdIsTtws" column="CRSD_IS_TTWS" />
- <result property="isTaowtfgGlci" column="IS_TAOWTFG_GLCI" />
- <result property="iaulgimIsAs" column="IAULGIM_IS_AS" />
- <result property="iaulgimRate" column="IAULGIM_RATE" />
- <result property="tattaowiIsEtrawotwici" column="TATTAOWI_IS_ETRAWOTWICI" />
- <result property="agwIsEarg" column="AGW_IS_EARG" />
- <result property="isAbuwusssaptlEwus" column="IS_ABUWUSSSAPTL_EWUS" />
- <result property="isTdwrmstrFwusd" column="IS_TDWRMSTR_FWUSD" />
- <result property="caawtiIsCrwcsbwcdrs" column="CAAWTI_IS_CRWCSBWCDRS" />
- <result property="rwislwiIsCcwidr" column="RWISLWI_IS_CCWIDR" />
- <result property="isErgipl" column="IS_ERGIPL" />
- <result property="gwipsbIsTu" column="GWIPSB_IS_TU" />
- <result property="swncacwspnuwmzIsKsbUt" column="SWNCACWSPNUWMZ_IS_KSB_UT" />
- <result property="nmrmaIsIiww" column="NMRMA_IS_IIWW" />
- <result property="goaIsPgpap" column="GOA_IS_PGPAP" />
- <result property="goIsGeg" column="GO_IS_GEG" />
- <result property="persId" column="PERS_ID" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- <result property="status" column="STATUS"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- RWA_IS_CLEAR,
- CRSD_IS_TTWS,
- IS_TAOWTFG_GLCI,
- IAULGIM_IS_AS,
- IAULGIM_RATE,
- TATTAOWI_IS_ETRAWOTWICI,
- AGW_IS_EARG,
- IS_ABUWUSSSAPTL_EWUS,
- IS_TDWRMSTR_FWUSD,
- CAAWTI_IS_CRWCSBWCDRS,
- RWISLWI_IS_CCWIDR,
- IS_ERGIPL,
- GWIPSB_IS_TU,
- SWNCACWSPNUWMZ_IS_KSB_UT,
- NMRMA_IS_IIWW,
- GOA_IS_PGPAP,
- GO_IS_GEG,
- PERS_ID,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{rwaIsClear},
- #{crsdIsTtws},
- #{isTaowtfgGlci},
- #{iaulgimIsAs},
- #{iaulgimRate},
- #{tattaowiIsEtrawotwici},
- #{agwIsEarg},
- #{isAbuwusssaptlEwus},
- #{isTdwrmstrFwusd},
- #{caawtiIsCrwcsbwcdrs},
- #{rwislwiIsCcwidr},
- #{isErgipl},
- #{gwipsbIsTu},
- #{swncacwspnuwmzIsKsbUt},
- #{nmrmaIsIiww},
- #{goaIsPgpap},
- #{goIsGeg},
- #{persId},
- #{intm},
- #{uptm},
- #{status}
- </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="rwaIsClear != null and rwaIsClear != ''">and RWA_IS_CLEAR = #{rwaIsClear}</if>
- <if test="crsdIsTtws != null and crsdIsTtws != ''">and CRSD_IS_TTWS = #{crsdIsTtws}</if>
- <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">and IS_TAOWTFG_GLCI = #{isTaowtfgGlci}</if>
- <if test="iaulgimIsAs != null and iaulgimIsAs != ''">and IAULGIM_IS_AS = #{iaulgimIsAs}</if>
- <if test="iaulgimRate != null and iaulgimRate != ''">and IAULGIM_RATE = #{iaulgimRate}</if>
- <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">and TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici}</if>
- <if test="agwIsEarg != null and agwIsEarg != ''">and AGW_IS_EARG = #{agwIsEarg}</if>
- <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">and IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus}</if>
- <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">and IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd}</if>
- <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">and CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs}</if>
- <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">and RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr}</if>
- <if test="isErgipl != null and isErgipl != ''">and IS_ERGIPL = #{isErgipl}</if>
- <if test="gwipsbIsTu != null and gwipsbIsTu != ''">and GWIPSB_IS_TU = #{gwipsbIsTu}</if>
- <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">and SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt}</if>
- <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">and NMRMA_IS_IIWW = #{nmrmaIsIiww}</if>
- <if test="goaIsPgpap != null and goaIsPgpap != ''">and GOA_IS_PGPAP = #{goaIsPgpap}</if>
- <if test="goIsGeg != null and goIsGeg != ''">and GO_IS_GEG = #{goIsGeg}</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="status != null and status != ''">and STATUS = #{status}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWrmRgstrMacowiagResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWrmRgstrMacowiagResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWrmRgstrMacowiagResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG
- </select>
- <select id="findList" resultMap="bisInspWrmRgstrMacowiagResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
- insert into BIS_INSP_WRM_RGSTR_MACOWIAG( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WRM_RGSTR_MACOWIAG where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
- delete from BIS_INSP_WRM_RGSTR_MACOWIAG <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WRM_RGSTR_MACOWIAG set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
- update BIS_INSP_WRM_RGSTR_MACOWIAG
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="rwaIsClear != null and rwaIsClear != ''">RWA_IS_CLEAR = #{rwaIsClear},</if>
- <if test="crsdIsTtws != null and crsdIsTtws != ''">CRSD_IS_TTWS = #{crsdIsTtws},</if>
- <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">IS_TAOWTFG_GLCI = #{isTaowtfgGlci},</if>
- <if test="iaulgimIsAs != null and iaulgimIsAs != ''">IAULGIM_IS_AS = #{iaulgimIsAs},</if>
- <if test="iaulgimRate != null and iaulgimRate != ''">IAULGIM_RATE = #{iaulgimRate},</if>
- <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici},</if>
- <if test="agwIsEarg != null and agwIsEarg != ''">AGW_IS_EARG = #{agwIsEarg},</if>
- <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus},</if>
- <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd},</if>
- <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs},</if>
- <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr},</if>
- <if test="isErgipl != null and isErgipl != ''">IS_ERGIPL = #{isErgipl},</if>
- <if test="gwipsbIsTu != null and gwipsbIsTu != ''">GWIPSB_IS_TU = #{gwipsbIsTu},</if>
- <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt},</if>
- <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">NMRMA_IS_IIWW = #{nmrmaIsIiww},</if>
- <if test="goaIsPgpap != null and goaIsPgpap != ''">GOA_IS_PGPAP = #{goaIsPgpap},</if>
- <if test="goIsGeg != null and goIsGeg != ''">GO_IS_GEG = #{goIsGeg},</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="status != null and status != ''">STATUS = #{status},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrmRgstrMacowiag">
- update BIS_INSP_WRM_RGSTR_MACOWIAG
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="rwaIsClear != null and rwaIsClear != ''">RWA_IS_CLEAR = #{rwaIsClear},</if>
- <if test="crsdIsTtws != null and crsdIsTtws != ''">CRSD_IS_TTWS = #{crsdIsTtws},</if>
- <if test="isTaowtfgGlci != null and isTaowtfgGlci != ''">IS_TAOWTFG_GLCI = #{isTaowtfgGlci},</if>
- <if test="iaulgimIsAs != null and iaulgimIsAs != ''">IAULGIM_IS_AS = #{iaulgimIsAs},</if>
- <if test="iaulgimRate != null and iaulgimRate != ''">IAULGIM_RATE = #{iaulgimRate},</if>
- <if test="tattaowiIsEtrawotwici != null and tattaowiIsEtrawotwici != ''">TATTAOWI_IS_ETRAWOTWICI = #{tattaowiIsEtrawotwici},</if>
- <if test="agwIsEarg != null and agwIsEarg != ''">AGW_IS_EARG = #{agwIsEarg},</if>
- <if test="isAbuwusssaptlEwus != null and isAbuwusssaptlEwus != ''">IS_ABUWUSSSAPTL_EWUS = #{isAbuwusssaptlEwus},</if>
- <if test="isTdwrmstrFwusd != null and isTdwrmstrFwusd != ''">IS_TDWRMSTR_FWUSD = #{isTdwrmstrFwusd},</if>
- <if test="caawtiIsCrwcsbwcdrs != null and caawtiIsCrwcsbwcdrs != ''">CAAWTI_IS_CRWCSBWCDRS = #{caawtiIsCrwcsbwcdrs},</if>
- <if test="rwislwiIsCcwidr != null and rwislwiIsCcwidr != ''">RWISLWI_IS_CCWIDR = #{rwislwiIsCcwidr},</if>
- <if test="isErgipl != null and isErgipl != ''">IS_ERGIPL = #{isErgipl},</if>
- <if test="gwipsbIsTu != null and gwipsbIsTu != ''">GWIPSB_IS_TU = #{gwipsbIsTu},</if>
- <if test="swncacwspnuwmzIsKsbUt != null and swncacwspnuwmzIsKsbUt != ''">SWNCACWSPNUWMZ_IS_KSB_UT = #{swncacwspnuwmzIsKsbUt},</if>
- <if test="nmrmaIsIiww != null and nmrmaIsIiww != ''">NMRMA_IS_IIWW = #{nmrmaIsIiww},</if>
- <if test="goaIsPgpap != null and goaIsPgpap != ''">GOA_IS_PGPAP = #{goaIsPgpap},</if>
- <if test="goIsGeg != null and goIsGeg != ''">GO_IS_GEG = #{goIsGeg},</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="status != null and status != ''">STATUS = #{status},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|