| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- <?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.BisInspFjpjlglImgrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjpjlglImgr" id="bisInspFjpjlglImgrResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="f411" column="F_4_1_1"/>
- <result property="f412" column="F_4_1_2"/>
- <result property="f413" column="F_4_1_3"/>
- <result property="f414" column="F_4_1_4"/>
- <result property="f415" column="F_4_1_5"/>
- <result property="f416" column="F_4_1_6"/>
- <result property="f417" column="F_4_1_7"/>
- <result property="f418" column="F_4_1_8"/>
- <result property="f419" column="F_4_1_9"/>
- <result property="f4110" column="F_4_1_10"/>
- <result property="f4111" column="F_4_1_11"/>
- <result property="f4112" column="F_4_1_12"/>
- <result property="f421" column="F_4_2_1"/>
- <result property="f422" column="F_4_2_2"/>
- <result property="f423" column="F_4_2_3"/>
- <result property="f424" column="F_4_2_4"/>
- <result property="f425" column="F_4_2_5"/>
- <result property="f426" column="F_4_2_6"/>
- <result property="f427" column="F_4_2_7"/>
- <result property="f428" column="F_4_2_8"/>
- <result property="f429" column="F_4_2_9"/>
- <result property="f4210" column="F_4_2_10"/>
- <result property="f4211" column="F_4_2_11"/>
- <result property="f4212" column="F_4_2_12"/>
- <result property="f4213" column="F_4_2_13"/>
- <result property="f4214" column="F_4_2_14"/>
- <result property="f4215" column="F_4_2_15"/>
- <result property="f4216" column="F_4_2_16"/>
- <result property="f4217" column="F_4_2_17"/>
- <result property="f4218" column="F_4_2_18"/>
- <result property="f4219" column="F_4_2_19"/>
- <result property="f4220" column="F_4_2_20"/>
- <result property="f4221" column="F_4_2_21"/>
- <result property="f4222" column="F_4_2_22"/>
- <result property="f431" column="F_4_3_1"/>
- <result property="f432" column="F_4_3_2"/>
- <result property="f433" column="F_4_3_3"/>
- <result property="f434" column="F_4_3_4"/>
- <result property="f435" column="F_4_3_5"/>
- <result property="f436" column="F_4_3_6"/>
- <result property="f437" column="F_4_3_7"/>
- <result property="f438" column="F_4_3_8"/>
- <result property="f439" column="F_4_3_9"/>
- <result property="f4310" column="F_4_3_10"/>
- <result property="f441" column="F_4_4_1"/>
- <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="state" column="STATE"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- F_4_1_1,
- F_4_1_2,
- F_4_1_3,
- F_4_1_4,
- F_4_1_5,
- F_4_1_6,
- F_4_1_7,
- F_4_1_8,
- F_4_1_9,
- F_4_1_10,
- F_4_1_11,
- F_4_1_12,
- F_4_2_1,
- F_4_2_2,
- F_4_2_3,
- F_4_2_4,
- F_4_2_5,
- F_4_2_6,
- F_4_2_7,
- F_4_2_8,
- F_4_2_9,
- F_4_2_10,
- F_4_2_11,
- F_4_2_12,
- F_4_2_13,
- F_4_2_14,
- F_4_2_15,
- F_4_2_16,
- F_4_2_17,
- F_4_2_18,
- F_4_2_19,
- F_4_2_20,
- F_4_2_21,
- F_4_2_22,
- F_4_3_1,
- F_4_3_2,
- F_4_3_3,
- F_4_3_4,
- F_4_3_5,
- F_4_3_6,
- F_4_3_7,
- F_4_3_8,
- F_4_3_9,
- F_4_3_10,
- F_4_4_1,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{f411},
- #{f412},
- #{f413},
- #{f414},
- #{f415},
- #{f416},
- #{f417},
- #{f418},
- #{f419},
- #{f4110},
- #{f4111},
- #{f4112},
- #{f421},
- #{f422},
- #{f423},
- #{f424},
- #{f425},
- #{f426},
- #{f427},
- #{f428},
- #{f429},
- #{f4210},
- #{f4211},
- #{f4212},
- #{f4213},
- #{f4214},
- #{f4215},
- #{f4216},
- #{f4217},
- #{f4218},
- #{f4219},
- #{f4220},
- #{f4221},
- #{f4222},
- #{f431},
- #{f432},
- #{f433},
- #{f434},
- #{f435},
- #{f436},
- #{f437},
- #{f438},
- #{f439},
- #{f4310},
- #{f441},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{state}
- </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="f411 != null and f411 != ''">and F_4_1_1 = #{f411}</if>
- <if test="f412 != null and f412 != ''">and F_4_1_2 = #{f412}</if>
- <if test="f413 != null and f413 != ''">and F_4_1_3 = #{f413}</if>
- <if test="f414 != null and f414 != ''">and F_4_1_4 = #{f414}</if>
- <if test="f415 != null and f415 != ''">and F_4_1_5 = #{f415}</if>
- <if test="f416 != null and f416 != ''">and F_4_1_6 = #{f416}</if>
- <if test="f417 != null and f417 != ''">and F_4_1_7 = #{f417}</if>
- <if test="f418 != null and f418 != ''">and F_4_1_8 = #{f418}</if>
- <if test="f419 != null and f419 != ''">and F_4_1_9 = #{f419}</if>
- <if test="f4110 != null and f4110 != ''">and F_4_1_10 = #{f4110}</if>
- <if test="f4111 != null and f4111 != ''">and F_4_1_11 = #{f4111}</if>
- <if test="f4112 != null and f4112 != ''">and F_4_1_12 = #{f4112}</if>
- <if test="f422 != null and f422 != ''">and F_4_2_2 = #{f422}</if>
- <if test="f423 != null and f423 != ''">and F_4_2_3 = #{f423}</if>
- <if test="f424 != null and f424 != ''">and F_4_2_4 = #{f424}</if>
- <if test="f425 != null and f425 != ''">and F_4_2_5 = #{f425}</if>
- <if test="f426 != null and f426 != ''">and F_4_2_6 = #{f426}</if>
- <if test="f427 != null and f427 != ''">and F_4_2_7 = #{f427}</if>
- <if test="f428 != null and f428 != ''">and F_4_2_8 = #{f428}</if>
- <if test="f429 != null and f429 != ''">and F_4_2_9 = #{f429}</if>
- <if test="f4210 != null and f4210 != ''">and F_4_2_10 = #{f4210}</if>
- <if test="f4211 != null and f4211 != ''">and F_4_2_11 = #{f4211}</if>
- <if test="f4212 != null and f4212 != ''">and F_4_2_12 = #{f4212}</if>
- <if test="f4213 != null and f4213 != ''">and F_4_2_13 = #{f4213}</if>
- <if test="f4214 != null and f4214 != ''">and F_4_2_14 = #{f4214}</if>
- <if test="f4215 != null and f4215 != ''">and F_4_2_15 = #{f4215}</if>
- <if test="f4216 != null and f4216 != ''">and F_4_2_16 = #{f4216}</if>
- <if test="f4217 != null and f4217 != ''">and F_4_2_17 = #{f4217}</if>
- <if test="f4218 != null and f4218 != ''">and F_4_2_18 = #{f4218}</if>
- <if test="f4219 != null and f4219 != ''">and F_4_2_19 = #{f4219}</if>
- <if test="f4220 != null and f4220 != ''">and F_4_2_20 = #{f4220}</if>
- <if test="f4221 != null and f4221 != ''">and F_4_2_21 = #{f4221}</if>
- <if test="f4222 != null and f4222 != ''">and F_4_2_22 = #{f4222}</if>
- <if test="f431 != null and f431 != ''">and F_4_3_1 = #{f431}</if>
- <if test="f432 != null and f432 != ''">and F_4_3_2 = #{f432}</if>
- <if test="f433 != null and f433 != ''">and F_4_3_3 = #{f433}</if>
- <if test="f434 != null and f434 != ''">and F_4_3_4 = #{f434}</if>
- <if test="f435 != null and f435 != ''">and F_4_3_5 = #{f435}</if>
- <if test="f436 != null and f436 != ''">and F_4_3_6 = #{f436}</if>
- <if test="f437 != null and f437 != ''">and F_4_3_7 = #{f437}</if>
- <if test="f438 != null and f438 != ''">and F_4_3_8 = #{f438}</if>
- <if test="f439 != null and f439 != ''">and F_4_3_9 = #{f439}</if>
- <if test="f4310 != null and f4310 != ''">and F_4_3_10 = #{f4310}</if>
- <if test="f441 != null and f441 != ''">and F_4_4_1 = #{f441}</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>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspFjpjlglImgrResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_FJPJLGL_IMGR where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspFjpjlglImgrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJLGL_IMGR <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspFjpjlglImgrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJLGL_IMGR
- </select>
- <select id="findList" resultMap="bisInspFjpjlglImgrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJLGL_IMGR <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_FJPJLGL_IMGR <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjlglImgr">
- insert into BIS_INSP_FJPJLGL_IMGR( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_FJPJLGL_IMGR set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjlglImgr">
- delete from BIS_INSP_FJPJLGL_IMGR <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_FJPJLGL_IMGR set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjlglImgr">
- update BIS_INSP_FJPJLGL_IMGR
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_4_1_1 = #{f411},
- F_4_1_2 = #{f412},
- F_4_1_3 = #{f413},
- F_4_1_4 = #{f414},
- F_4_1_5 = #{f415},
- F_4_1_6 = #{f416},
- F_4_1_7 = #{f417},
- F_4_1_8 = #{f418},
- F_4_1_9 = #{f419},
- F_4_1_10 = #{f4110},
- F_4_1_11 = #{f4111},
- F_4_1_12 = #{f4112},
- F_4_2_1 = #{f421},
- F_4_2_2 = #{f422},
- F_4_2_3 = #{f423},
- F_4_2_4 = #{f424},
- F_4_2_5 = #{f425},
- F_4_2_6 = #{f426},
- F_4_2_7 = #{f427},
- F_4_2_8 = #{f428},
- F_4_2_9 = #{f429},
- F_4_2_10 = #{f4210},
- F_4_2_11 = #{f4211},
- F_4_2_12 = #{f4212},
- F_4_2_13 = #{f4213},
- F_4_2_14 = #{f4214},
- F_4_2_15 = #{f4215},
- F_4_2_16 = #{f4216},
- F_4_2_17 = #{f4217},
- F_4_2_18 = #{f4218},
- F_4_2_19 = #{f4219},
- F_4_2_20 = #{f4220},
- F_4_2_21 = #{f4221},
- F_4_2_22 = #{f4222},
- F_4_3_1 = #{f431},
- F_4_3_2 = #{f432},
- F_4_3_3 = #{f433},
- F_4_3_4 = #{f434},
- F_4_3_5 = #{f435},
- F_4_3_6 = #{f436},
- F_4_3_7 = #{f437},
- F_4_3_8 = #{f438},
- F_4_3_9 = #{f439},
- F_4_3_10 = #{f4310},
- F_4_4_1 = #{f441},
- <if test="note != null and note != ''">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="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjlglImgr">
- update BIS_INSP_FJPJLGL_IMGR
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_4_1_1 = #{f411},
- F_4_1_2 = #{f412},
- F_4_1_3 = #{f413},
- F_4_1_4 = #{f414},
- F_4_1_5 = #{f415},
- F_4_1_6 = #{f416},
- F_4_1_7 = #{f417},
- F_4_1_8 = #{f418},
- F_4_1_9 = #{f419},
- F_4_1_10 = #{f4110},
- F_4_1_11 = #{f4111},
- F_4_1_12 = #{f4112},
- F_4_2_1 = #{f421},
- F_4_2_2 = #{f422},
- F_4_2_3 = #{f423},
- F_4_2_4 = #{f424},
- F_4_2_5 = #{f425},
- F_4_2_6 = #{f426},
- F_4_2_7 = #{f427},
- F_4_2_8 = #{f428},
- F_4_2_9 = #{f429},
- F_4_2_10 = #{f4210},
- F_4_2_11 = #{f4211},
- F_4_2_12 = #{f4212},
- F_4_2_13 = #{f4213},
- F_4_2_14 = #{f4214},
- F_4_2_15 = #{f4215},
- F_4_2_16 = #{f4216},
- F_4_2_17 = #{f4217},
- F_4_2_18 = #{f4218},
- F_4_2_19 = #{f4219},
- F_4_2_20 = #{f4220},
- F_4_2_21 = #{f4221},
- F_4_2_22 = #{f4222},
- F_4_3_1 = #{f431},
- F_4_3_2 = #{f432},
- F_4_3_3 = #{f433},
- F_4_3_4 = #{f434},
- F_4_3_5 = #{f435},
- F_4_3_6 = #{f436},
- F_4_3_7 = #{f437},
- F_4_3_8 = #{f438},
- F_4_3_9 = #{f439},
- F_4_3_10 = #{f4310},
- F_4_4_1 = #{f441},
- <if test="note != null and note != ''">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="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|