| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
- <?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.BisInspRsmlRgstrSafeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrSafe" id="bisInspRsmlRgstrSafeResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isGovPers" column="IS_GOV_PERS"/>
- <result property="govPers" column="GOV_PERS"/>
- <result property="govPersTel" column="GOV_PERS_TEL"/>
- <result property="govPersDuty" column="GOV_PERS_DUTY"/>
- <result property="govPersTrain" column="GOV_PERS_TRAIN"/>
- <result property="govPersResu" column="GOV_PERS_RESU"/>
- <result property="isDutyPers" column="IS_DUTY_PERS"/>
- <result property="dutyPers" column="DUTY_PERS"/>
- <result property="dutyPersTel" column="DUTY_PERS_TEL"/>
- <result property="dutyPersDuty" column="DUTY_PERS_DUTY"/>
- <result property="dutyPersTrain" column="DUTY_PERS_TRAIN"/>
- <result property="dutyPersResu" column="DUTY_PERS_RESU"/>
- <result property="isMngPers" column="IS_MNG_PERS"/>
- <result property="mngPers" column="MNG_PERS"/>
- <result property="mngPersTel" column="MNG_PERS_TEL"/>
- <result property="mngPersDuty" column="MNG_PERS_DUTY"/>
- <result property="mngPersTrain" column="MNG_PERS_TRAIN"/>
- <result property="mngPersResu" column="MNG_PERS_RESU"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPersNm" column="REC_PERS_NM"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="inTm" column="IN_TM"/>
- <result property="upTm" column="UP_TM"/>
- <result property="status" column="STATUS"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_GOV_PERS,
- GOV_PERS,
- GOV_PERS_TEL,
- GOV_PERS_DUTY,
- GOV_PERS_TRAIN,
- GOV_PERS_RESU,
- IS_DUTY_PERS,
- DUTY_PERS,
- DUTY_PERS_TEL,
- DUTY_PERS_DUTY,
- DUTY_PERS_TRAIN,
- DUTY_PERS_RESU,
- IS_MNG_PERS,
- MNG_PERS,
- MNG_PERS_TEL,
- MNG_PERS_DUTY,
- MNG_PERS_TRAIN,
- MNG_PERS_RESU,
- REC_PERS_ID,
- REC_PERS_NM,
- REC_PERS_TEL,
- IN_TM,
- UP_TM,
- STATUS,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isGovPers},
- #{govPers},
- #{govPersTel},
- #{govPersDuty},
- #{govPersTrain},
- #{govPersResu},
- #{isDutyPers},
- #{dutyPers},
- #{dutyPersTel},
- #{dutyPersDuty},
- #{dutyPersTrain},
- #{dutyPersResu},
- #{isMngPers},
- #{mngPers},
- #{mngPersTel},
- #{mngPersDuty},
- #{mngPersTrain},
- #{mngPersResu},
- #{recPersId},
- #{recPersNm},
- #{recPersTel},
- #{inTm},
- #{upTm},
- #{status},
- #{dataStat}
- </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="isGovPers != null and isGovPers != ''">
- and IS_GOV_PERS = #{isGovPers}
- </if>
- <if test="govPers != null and govPers != ''">
- and GOV_PERS = #{govPers}
- </if>
- <if test="govPersTel != null and govPersTel != ''">
- and GOV_PERS_TEL = #{govPersTel}
- </if>
- <if test="govPersDuty != null and govPersDuty != ''">
- and GOV_PERS_DUTY = #{govPersDuty}
- </if>
- <if test="govPersTrain != null and govPersTrain != ''">
- and GOV_PERS_TRAIN = #{govPersTrain}
- </if>
- <if test="govPersResu != null and govPersResu != ''">
- and GOV_PERS_RESU = #{govPersResu}
- </if>
- <if test="isDutyPers != null and isDutyPers != ''">
- and IS_DUTY_PERS = #{isDutyPers}
- </if>
- <if test="dutyPers != null and dutyPers != ''">
- and DUTY_PERS = #{dutyPers}
- </if>
- <if test="dutyPersTel != null and dutyPersTel != ''">
- and DUTY_PERS_TEL = #{dutyPersTel}
- </if>
- <if test="dutyPersDuty != null and dutyPersDuty != ''">
- and DUTY_PERS_DUTY = #{dutyPersDuty}
- </if>
- <if test="dutyPersTrain != null and dutyPersTrain != ''">
- and DUTY_PERS_TRAIN = #{dutyPersTrain}
- </if>
- <if test="dutyPersResu != null and dutyPersResu != ''">
- and DUTY_PERS_RESU = #{dutyPersResu}
- </if>
- <if test="isMngPers != null and isMngPers != ''">
- and IS_MNG_PERS = #{isMngPers}
- </if>
- <if test="mngPers != null and mngPers != ''">
- and MNG_PERS = #{mngPers}
- </if>
- <if test="mngPersTel != null and mngPersTel != ''">
- and MNG_PERS_TEL = #{mngPersTel}
- </if>
- <if test="mngPersDuty != null and mngPersDuty != ''">
- and MNG_PERS_DUTY = #{mngPersDuty}
- </if>
- <if test="mngPersTrain != null and mngPersTrain != ''">
- and MNG_PERS_TRAIN = #{mngPersTrain}
- </if>
- <if test="mngPersResu != null and mngPersResu != ''">
- and MNG_PERS_RESU = #{mngPersResu}
- </if>
- <if test="recPersId != null and recPersId != ''">
- and REC_PERS_ID = #{recPersId}
- </if>
- <if test="recPersNm != null and recPersNm != ''">
- and REC_PERS_NM = #{recPersNm}
- </if>
- <if test="recPersTel != null and recPersTel != ''">
- and REC_PERS_TEL = #{recPersTel}
- </if>
- <if test="inTm != null">
- and IN_TM = #{inTm}
- </if>
- <if test="upTm != null">
- and UP_TM = #{upTm}
- </if>
- <if test="status != null and status != ''">
- and STATUS = #{status}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsmlRgstrSafeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_RSML_RGSTR_SAFE where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsmlRgstrSafeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_RSML_RGSTR_SAFE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspRsmlRgstrSafeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_RSML_RGSTR_SAFE
- </select>
- <select id="findList" resultMap="bisInspRsmlRgstrSafeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_RSML_RGSTR_SAFE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_RSML_RGSTR_SAFE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrSafe">
- insert into BIS_INSP_RSML_RGSTR_SAFE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_RSML_RGSTR_SAFE set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrSafe">
- update BIS_INSP_RSML_RGSTR_SAFE set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSML_RGSTR_SAFE set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrSafe">
- update BIS_INSP_RSML_RGSTR_SAFE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isGovPers != null and isGovPers != ''">IS_GOV_PERS
- = #{isGovPers},
- </if>
- <if test="govPers != null and govPers != ''">GOV_PERS
- = #{govPers},
- </if>
- <if test="govPersTel != null and govPersTel != ''">GOV_PERS_TEL
- = #{govPersTel},
- </if>
- <if test="govPersDuty != null and govPersDuty != ''">GOV_PERS_DUTY
- = #{govPersDuty},
- </if>
- <if test="govPersTrain != null and govPersTrain != ''">GOV_PERS_TRAIN
- = #{govPersTrain},
- </if>
- <if test="govPersResu != null and govPersResu != ''">GOV_PERS_RESU
- = #{govPersResu},
- </if>
- <if test="isDutyPers != null and isDutyPers != ''">IS_DUTY_PERS
- = #{isDutyPers},
- </if>
- <if test="dutyPers != null and dutyPers != ''">DUTY_PERS
- = #{dutyPers},
- </if>
- <if test="dutyPersTel != null and dutyPersTel != ''">DUTY_PERS_TEL
- = #{dutyPersTel},
- </if>
- <if test="dutyPersDuty != null and dutyPersDuty != ''">DUTY_PERS_DUTY
- = #{dutyPersDuty},
- </if>
- <if test="dutyPersTrain != null and dutyPersTrain != ''">DUTY_PERS_TRAIN
- = #{dutyPersTrain},
- </if>
- <if test="dutyPersResu != null and dutyPersResu != ''">DUTY_PERS_RESU
- = #{dutyPersResu},
- </if>
- <if test="isMngPers != null and isMngPers != ''">IS_MNG_PERS
- = #{isMngPers},
- </if>
- <if test="mngPers != null and mngPers != ''">MNG_PERS
- = #{mngPers},
- </if>
- <if test="mngPersTel != null and mngPersTel != ''">MNG_PERS_TEL
- = #{mngPersTel},
- </if>
- <if test="mngPersDuty != null and mngPersDuty != ''">MNG_PERS_DUTY
- = #{mngPersDuty},
- </if>
- <if test="mngPersTrain != null and mngPersTrain != ''">MNG_PERS_TRAIN
- = #{mngPersTrain},
- </if>
- <if test="mngPersResu != null and mngPersResu != ''">MNG_PERS_RESU
- = #{mngPersResu},
- </if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID
- = #{recPersId},
- </if>
- <if test="recPersNm != null and recPersNm != ''">REC_PERS_NM
- = #{recPersNm},
- </if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL
- = #{recPersTel},
- </if>
- <if test="inTm != null">IN_TM
- = #{inTm},
- </if>
- <if test="upTm != null">UP_TM
- = #{upTm},
- </if>
- <if test="status != null and status != ''">STATUS
- = #{status},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrSafe">
- update BIS_INSP_RSML_RGSTR_SAFE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isGovPers != null and isGovPers != ''">IS_GOV_PERS
- = #{isGovPers},
- </if>
- <if test="govPers != null and govPers != ''">GOV_PERS
- = #{govPers},
- </if>
- <if test="govPersTel != null and govPersTel != ''">GOV_PERS_TEL
- = #{govPersTel},
- </if>
- <if test="govPersDuty != null and govPersDuty != ''">GOV_PERS_DUTY
- = #{govPersDuty},
- </if>
- <if test="govPersTrain != null and govPersTrain != ''">GOV_PERS_TRAIN
- = #{govPersTrain},
- </if>
- <if test="govPersResu != null and govPersResu != ''">GOV_PERS_RESU
- = #{govPersResu},
- </if>
- <if test="isDutyPers != null and isDutyPers != ''">IS_DUTY_PERS
- = #{isDutyPers},
- </if>
- <if test="dutyPers != null and dutyPers != ''">DUTY_PERS
- = #{dutyPers},
- </if>
- <if test="dutyPersTel != null and dutyPersTel != ''">DUTY_PERS_TEL
- = #{dutyPersTel},
- </if>
- <if test="dutyPersDuty != null and dutyPersDuty != ''">DUTY_PERS_DUTY
- = #{dutyPersDuty},
- </if>
- <if test="dutyPersTrain != null and dutyPersTrain != ''">DUTY_PERS_TRAIN
- = #{dutyPersTrain},
- </if>
- <if test="dutyPersResu != null and dutyPersResu != ''">DUTY_PERS_RESU
- = #{dutyPersResu},
- </if>
- <if test="isMngPers != null and isMngPers != ''">IS_MNG_PERS
- = #{isMngPers},
- </if>
- <if test="mngPers != null and mngPers != ''">MNG_PERS
- = #{mngPers},
- </if>
- <if test="mngPersTel != null and mngPersTel != ''">MNG_PERS_TEL
- = #{mngPersTel},
- </if>
- <if test="mngPersDuty != null and mngPersDuty != ''">MNG_PERS_DUTY
- = #{mngPersDuty},
- </if>
- <if test="mngPersTrain != null and mngPersTrain != ''">MNG_PERS_TRAIN
- = #{mngPersTrain},
- </if>
- <if test="mngPersResu != null and mngPersResu != ''">MNG_PERS_RESU
- = #{mngPersResu},
- </if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID
- = #{recPersId},
- </if>
- <if test="recPersNm != null and recPersNm != ''">REC_PERS_NM
- = #{recPersNm},
- </if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL
- = #{recPersTel},
- </if>
- <if test="inTm != null">IN_TM
- = #{inTm},
- </if>
- <if test="upTm != null">UP_TM
- = #{upTm},
- </if>
- <if test="status != null and status != ''">STATUS
- = #{status},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|