| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?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.BisInspFjsduSafdlDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjsduSafdl" id="bisInspFjsduSafdlResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="f511" column="F_5_1_1"/>
- <result property="f512" column="F_5_1_2"/>
- <result property="f513" column="F_5_1_3"/>
- <result property="f514" column="F_5_1_4"/>
- <result property="f515" column="F_5_1_5"/>
- <result property="f516" column="F_5_1_6"/>
- <result property="f517" column="F_5_1_7"/>
- <result property="f521" column="F_5_2_1"/>
- <result property="f522" column="F_5_2_2"/>
- <result property="f523" column="F_5_2_3"/>
- <result property="f524" column="F_5_2_4"/>
- <result property="f525" column="F_5_2_5"/>
- <result property="f526" column="F_5_2_6"/>
- <result property="f527" column="F_5_2_7"/>
- <result property="f528" column="F_5_2_8"/>
- <result property="f529" column="F_5_2_9"/>
- <result property="f5210" column="F_5_2_10"/>
- <result property="f531" column="F_5_3_1"/>
- <result property="f532" column="F_5_3_2"/>
- <result property="f533" column="F_5_3_3"/>
- <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_5_1_1,
- F_5_1_2,
- F_5_1_3,
- F_5_1_4,
- F_5_1_5,
- F_5_1_6,
- F_5_1_7,
- F_5_2_1,
- F_5_2_2,
- F_5_2_3,
- F_5_2_4,
- F_5_2_5,
- F_5_2_6,
- F_5_2_7,
- F_5_2_8,
- F_5_2_9,
- F_5_2_10,
- F_5_3_1,
- F_5_3_2,
- F_5_3_3,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{f511},
- #{f512},
- #{f513},
- #{f514},
- #{f515},
- #{f516},
- #{f517},
- #{f521},
- #{f522},
- #{f523},
- #{f524},
- #{f525},
- #{f526},
- #{f527},
- #{f528},
- #{f529},
- #{f5210},
- #{f531},
- #{f532},
- #{f533},
- #{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="f511 != null and f511 != ''">and F_5_1_1 = #{f511}</if>
- <if test="f512 != null and f512 != ''">and F_5_1_2 = #{f512}</if>
- <if test="f513 != null and f513 != ''">and F_5_1_3 = #{f513}</if>
- <if test="f514 != null and f514 != ''">and F_5_1_4 = #{f514}</if>
- <if test="f515 != null and f515 != ''">and F_5_1_5 = #{f515}</if>
- <if test="f516 != null and f516 != ''">and F_5_1_6 = #{f516}</if>
- <if test="f517 != null and f517 != ''">and F_5_1_7 = #{f517}</if>
- <if test="f521 != null and f521 != ''">and F_5_2_1 = #{f521}</if>
- <if test="f522 != null and f522 != ''">and F_5_2_2 = #{f522}</if>
- <if test="f523 != null and f523 != ''">and F_5_2_3 = #{f523}</if>
- <if test="f524 != null and f524 != ''">and F_5_2_4 = #{f524}</if>
- <if test="f525 != null and f525 != ''">and F_5_2_5 = #{f525}</if>
- <if test="f526 != null and f526 != ''">and F_5_2_6 = #{f526}</if>
- <if test="f527 != null and f527 != ''">and F_5_2_7 = #{f527}</if>
- <if test="f528 != null and f528 != ''">and F_5_2_8 = #{f528}</if>
- <if test="f529 != null and f529 != ''">and F_5_2_9 = #{f529}</if>
- <if test="f5210 != null and f5210 != ''">and F_5_2_10 = #{f5210}</if>
- <if test="f531 != null and f531 != ''">and F_5_3_1 = #{f531}</if>
- <if test="f532 != null and f532 != ''">and F_5_3_2 = #{f532}</if>
- <if test="f533 != null and f533 != ''">and F_5_3_3 = #{f533}</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="bisInspFjsduSafdlResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_FJSDU_SAFDL where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspFjsduSafdlResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJSDU_SAFDL <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspFjsduSafdlResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJSDU_SAFDL
- </select>
- <select id="findList" resultMap="bisInspFjsduSafdlResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FJSDU_SAFDL <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_FJSDU_SAFDL <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjsduSafdl">
- insert into BIS_INSP_FJSDU_SAFDL( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_FJSDU_SAFDL set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjsduSafdl">
- delete from BIS_INSP_FJSDU_SAFDL <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_FJSDU_SAFDL set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjsduSafdl">
- update BIS_INSP_FJSDU_SAFDL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_5_1_1 = #{f511},
- F_5_1_2 = #{f512},
- F_5_1_3 = #{f513},
- F_5_1_4 = #{f514},
- F_5_1_5 = #{f515},
- F_5_1_6 = #{f516},
- F_5_1_7 = #{f517},
- F_5_2_1 = #{f521},
- F_5_2_2 = #{f522},
- F_5_2_3 = #{f523},
- F_5_2_4 = #{f524},
- F_5_2_5 = #{f525},
- F_5_2_6 = #{f526},
- F_5_2_7 = #{f527},
- F_5_2_8 = #{f528},
- F_5_2_9 = #{f529},
- F_5_2_10 = #{f5210},
- F_5_3_1 = #{f531},
- F_5_3_2 = #{f532},
- F_5_3_3 = #{f533},
- <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.BisInspFjsduSafdl">
- update BIS_INSP_FJSDU_SAFDL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- F_5_1_1 = #{f511},
- F_5_1_2 = #{f512},
- F_5_1_3 = #{f513},
- F_5_1_4 = #{f514},
- F_5_1_5 = #{f515},
- F_5_1_6 = #{f516},
- F_5_1_7 = #{f517},
- F_5_2_1 = #{f521},
- F_5_2_2 = #{f522},
- F_5_2_3 = #{f523},
- F_5_2_4 = #{f524},
- F_5_2_5 = #{f525},
- F_5_2_6 = #{f526},
- F_5_2_7 = #{f527},
- F_5_2_8 = #{f528},
- F_5_2_9 = #{f529},
- F_5_2_10 = #{f5210},
- F_5_3_1 = #{f531},
- F_5_3_2 = #{f532},
- F_5_3_3 = #{f533},
- <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>
|