| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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.BisInspRsmlRgstrPresDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrPres" id="bisInspRsmlRgstrPresResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isClearPers" column="IS_CLEAR_PERS"/>
- <result property="wiunWaoLegPers" column="WIUN_WAO_LEG_PERS"/>
- <result property="wiunWaoLegPersTel" column="WIUN_WAO_LEG_PERS_TEL"/>
- <result property="wiunWaoLegPersDuty" column="WIUN_WAO_LEG_PERS_DUTY"/>
- <result property="techPers" column="TECH_PERS"/>
- <result property="techPersTel" column="TECH_PERS_TEL"/>
- <result property="techPersDuty" column="TECH_PERS_DUTY"/>
- <result property="patrolPers" column="PATROL_PERS"/>
- <result property="patrolPersTel" column="PATROL_PERS_TEL"/>
- <result property="patrolPersDuty" column="PATROL_PERS_DUTY"/>
- <result property="isSetCard" column="IS_SET_CARD"/>
- <result property="persResu" column="PERS_RESU"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers2" column="REC_PERS2"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_CLEAR_PERS,
- WIUN_WAO_LEG_PERS,
- WIUN_WAO_LEG_PERS_TEL,
- WIUN_WAO_LEG_PERS_DUTY,
- TECH_PERS,
- TECH_PERS_TEL,
- TECH_PERS_DUTY,
- PATROL_PERS,
- PATROL_PERS_TEL,
- PATROL_PERS_DUTY,
- IS_SET_CARD,
- PERS_RESU,
- REC_PERS_ID,
- REC_PERS2,
- REC_PERS_TEL,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isClearPers},
- #{wiunWaoLegPers},
- #{wiunWaoLegPersTel},
- #{wiunWaoLegPersDuty},
- #{techPers},
- #{techPersTel},
- #{techPersDuty},
- #{patrolPers},
- #{patrolPersTel},
- #{patrolPersDuty},
- #{isSetCard},
- #{persResu},
- #{recPersId},
- #{recPers2},
- #{recPersTel},
- #{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="isClearPers != null and isClearPers != ''">and IS_CLEAR_PERS = #{isClearPers}</if>
- <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">and WIUN_WAO_LEG_PERS = #{wiunWaoLegPers}</if>
- <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">and WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel}</if>
- <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">and WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty}</if>
- <if test="techPers != null and techPers != ''">and TECH_PERS = #{techPers}</if>
- <if test="techPersTel != null and techPersTel != ''">and TECH_PERS_TEL = #{techPersTel}</if>
- <if test="techPersDuty != null and techPersDuty != ''">and TECH_PERS_DUTY = #{techPersDuty}</if>
- <if test="patrolPers != null and patrolPers != ''">and PATROL_PERS = #{patrolPers}</if>
- <if test="patrolPersTel != null and patrolPersTel != ''">and PATROL_PERS_TEL = #{patrolPersTel}</if>
- <if test="patrolPersDuty != null and patrolPersDuty != ''">and PATROL_PERS_DUTY = #{patrolPersDuty}</if>
- <if test="isSetCard != null and isSetCard != ''">and IS_SET_CARD = #{isSetCard}</if>
- <if test="persResu != null and persResu != ''">and PERS_RESU = #{persResu}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
- <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</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="bisInspRsmlRgstrPresResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_PRES where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsmlRgstrPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_PRES <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsmlRgstrPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_PRES
- </select>
- <select id="findList" resultMap="bisInspRsmlRgstrPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_PRES <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSML_RGSTR_PRES <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrPres">
- insert into BIS_INSP_RSML_RGSTR_PRES( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSML_RGSTR_PRES where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrPres">
- delete from BIS_INSP_RSML_RGSTR_PRES <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSML_RGSTR_PRES set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrPres">
- update BIS_INSP_RSML_RGSTR_PRES
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isClearPers != null and isClearPers != ''">IS_CLEAR_PERS = #{isClearPers},</if>
- <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
- <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel},</if>
- <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty},</if>
- <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
- <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
- <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
- <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
- <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
- <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
- <if test="isSetCard != null and isSetCard != ''">IS_SET_CARD = #{isSetCard},</if>
- <if test="persResu != null and persResu != ''">PERS_RESU = #{persResu},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</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.BisInspRsmlRgstrPres">
- update BIS_INSP_RSML_RGSTR_PRES
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isClearPers != null and isClearPers != ''">IS_CLEAR_PERS = #{isClearPers},</if>
- <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
- <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel},</if>
- <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty},</if>
- <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
- <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
- <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
- <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
- <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
- <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
- <if test="isSetCard != null and isSetCard != ''">IS_SET_CARD = #{isSetCard},</if>
- <if test="persResu != null and persResu != ''">PERS_RESU = #{persResu},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</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>
|