| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?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.BisInspFjpjmgdpTrgtDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpTrgt" id="bisInspFjpjmgdpTrgtResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="f111" column="F_1_1_1"/>
- <result property="f112" column="F_1_1_2"/>
- <result property="f113" column="F_1_1_3"/>
- <result property="f114" column="F_1_1_4"/>
- <result property="f115" column="F_1_1_5"/>
- <result property="f116" column="F_1_1_6"/>
- <result property="f121" column="F_1_2_1"/>
- <result property="f122" column="F_1_2_2"/>
- <result property="f123" column="F_1_2_3"/>
- <result property="f124" column="F_1_2_4"/>
- <result property="f125" column="F_1_2_5"/>
- <result property="f131" column="F_1_3_1"/>
- <result property="f132" column="F_1_3_2"/>
- <result property="f141" column="F_1_4_1"/>
- <result property="f142" column="F_1_4_2"/>
- <result property="f143" column="F_1_4_3"/>
- <result property="f144" column="F_1_4_4"/>
- <result property="f145" column="F_1_4_5"/>
- <result property="f146" column="F_1_4_6"/>
- <result property="f151" column="F_1_5_1"/>
- <result property="f152" column="F_1_5_2"/>
- <result property="f161" column="F_1_6_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_1_1_1,
- F_1_1_2,
- F_1_1_3,
- F_1_1_4,
- F_1_1_5,
- F_1_1_6,
- F_1_2_1,
- F_1_2_2,
- F_1_2_3,
- F_1_2_4,
- F_1_2_5,
- F_1_3_1,
- F_1_3_2,
- F_1_4_1,
- F_1_4_2,
- F_1_4_3,
- F_1_4_4,
- F_1_4_5,
- F_1_4_6,
- F_1_5_1,
- F_1_5_2,
- F_1_6_1,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{f111},
- #{f112},
- #{f113},
- #{f114},
- #{f115},
- #{f116},
- #{f121},
- #{f122},
- #{f123},
- #{f124},
- #{f125},
- #{f131},
- #{f132},
- #{f141},
- #{f142},
- #{f143},
- #{f144},
- #{f145},
- #{f146},
- #{f151},
- #{f152},
- #{f161},
- #{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="f111 != null and f111 != ''">and F_1_1_1 = #{f111}</if>
- <if test="f112 != null and f112 != ''">and F_1_1_2 = #{f112}</if>
- <if test="f113 != null and f113 != ''">and F_1_1_3 = #{f113}</if>
- <if test="f114 != null and f114 != ''">and F_1_1_4 = #{f114}</if>
- <if test="f115 != null and f115 != ''">and F_1_1_5 = #{f115}</if>
- <if test="f116 != null and f116 != ''">and F_1_1_6 = #{f116}</if>
- <if test="f121 != null and f121 != ''">and F_1_2_1 = #{f121}</if>
- <if test="f122 != null and f122 != ''">and F_1_2_2 = #{f122}</if>
- <if test="f123 != null and f123 != ''">and F_1_2_3 = #{f123}</if>
- <if test="f124 != null and f124 != ''">and F_1_2_4 = #{f124}</if>
- <if test="f125 != null and f125 != ''">and F_1_2_5 = #{f125}</if>
- <if test="f131 != null and f131 != ''">and F_1_3_1 = #{f131}</if>
- <if test="f132 != null and f132 != ''">and F_1_3_2 = #{f132}</if>
- <if test="f141 != null and f141 != ''">and F_1_4_1 = #{f141}</if>
- <if test="f142 != null and f142 != ''">and F_1_4_2 = #{f142}</if>
- <if test="f143 != null and f143 != ''">and F_1_4_3 = #{f143}</if>
- <if test="f144 != null and f144 != ''">and F_1_4_4 = #{f144}</if>
- <if test="f145 != null and f145 != ''">and F_1_4_5 = #{f145}</if>
- <if test="f146 != null and f146 != ''">and F_1_4_6 = #{f146}</if>
- <if test="f151 != null and f151 != ''">and F_1_5_1 = #{f151}</if>
- <if test="f152 != null and f152 != ''">and F_1_5_2 = #{f152}</if>
- <if test="f161 != null and f161 != ''">and F_1_6_1 = #{f161}</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="bisInspFjpjmgdpTrgtResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_TRGT where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspFjpjmgdpTrgtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_TRGT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspFjpjmgdpTrgtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_TRGT
- </select>
- <select id="findList" resultMap="bisInspFjpjmgdpTrgtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_TRGT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_FJPJMGDP_TRGT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpTrgt">
- insert into BIS_INSP_FJPJMGDP_TRGT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_FJPJMGDP_TRGT set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpTrgt">
- delete from BIS_INSP_FJPJMGDP_TRGT <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_FJPJMGDP_TRGT set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpTrgt">
- update BIS_INSP_FJPJMGDP_TRGT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_1_1_1 = #{f111},
- F_1_1_2 = #{f112},
- F_1_1_3 = #{f113},
- F_1_1_4 = #{f114},
- F_1_1_5 = #{f115},
- F_1_1_6 = #{f116},
- F_1_2_1 = #{f121},
- F_1_2_2 = #{f122},
- F_1_2_3 = #{f123},
- F_1_2_4 = #{f124},
- F_1_2_5 = #{f125},
- F_1_3_1 = #{f131},
- F_1_3_2 = #{f132},
- F_1_4_1 = #{f141},
- F_1_4_2 = #{f142},
- F_1_4_3 = #{f143},
- F_1_4_4 = #{f144},
- F_1_4_5 = #{f145},
- F_1_4_6 = #{f146},
- F_1_5_1 = #{f151},
- F_1_5_2 = #{f152},
- F_1_6_1 = #{f161},
- <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.BisInspFjpjmgdpTrgt">
- update BIS_INSP_FJPJMGDP_TRGT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_1_1_1 = #{f111},
- F_1_1_2 = #{f112},
- F_1_1_3 = #{f113},
- F_1_1_4 = #{f114},
- F_1_1_5 = #{f115},
- F_1_1_6 = #{f116},
- F_1_2_1 = #{f121},
- F_1_2_2 = #{f122},
- F_1_2_3 = #{f123},
- F_1_2_4 = #{f124},
- F_1_2_5 = #{f125},
- F_1_3_1 = #{f131},
- F_1_3_2 = #{f132},
- F_1_4_1 = #{f141},
- F_1_4_2 = #{f142},
- F_1_4_3 = #{f143},
- F_1_4_4 = #{f144},
- F_1_4_5 = #{f145},
- F_1_4_6 = #{f146},
- F_1_5_1 = #{f151},
- F_1_5_2 = #{f152},
- F_1_6_1 = #{f161},
- <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>
|