| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?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.BisInspRssfdrRgstrImplmtDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrImplmt" id="bisInspRssfdrRgstrImplmtResultMap">
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="buildUnit" column="BUILD_UNIT" />
- <result property="safeIsSzup" column="SAFE_IS_SZUP" />
- <result property="hlsjIsSzup" column="HLSJ_IS_SZUP" />
- <result property="mopdIsSzup" column="MOPD_IS_SZUP" />
- <result property="brmIsSzup" column="BRM_IS_SZUP" />
- <result property="aowIsSzup" column="AOW_IS_SZUP" />
- <result property="isFwttl" column="IS_FWTTL" />
- <result property="note" column="NOTE" />
- <result property="fillUnit" column="FILL_UNIT" />
- <result property="fillPers" column="FILL_PERS" />
- <result property="fillChkPers" column="FILL_CHK_PERS" />
- <result property="fillTel" column="FILL_TEL" />
- <result property="fillTm" column="FILL_TM" />
- <result property="status" column="STATUS"/>
- <result property="recPersId" column="REC_PERS_ID" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- <result property="AowIsOver" column="AOW_IS_OVER" />
- </resultMap>
-
- <sql id="table_columns">
- AOW_IS_OVER,
- ID,
- RGSTR_ID,
- BUILD_UNIT,
- SAFE_IS_SZUP,
- HLSJ_IS_SZUP,
- MOPD_IS_SZUP,
- BRM_IS_SZUP,
- AOW_IS_SZUP,
- IS_FWTTL,
- NOTE,
- FILL_UNIT,
- FILL_PERS,
- FILL_CHK_PERS,
- FILL_TEL,
- FILL_TM,
- STATUS,
- REC_PERS_ID,
- INTM,
- UPTM
- </sql>
- <sql id="entity_properties">
- #{AowIsOver},
- #{id},
- #{rgstrId},
- #{buildUnit},
- #{safeIsSzup},
- #{hlsjIsSzup},
- #{mopdIsSzup},
- #{brmIsSzup},
- #{aowIsSzup},
- #{isFwttl},
- #{note},
- #{fillUnit},
- #{fillPers},
- #{fillChkPers},
- #{fillTel},
- #{fillTm},
- #{status},
- #{recPersId},
- #{intm},
- #{uptm}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="AowIsOver != null and AowIsOver != ''">and AOW_IS_OVER = #{AowIsOver}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="buildUnit != null and buildUnit != ''">and BUILD_UNIT = #{buildUnit}</if>
- <if test="safeIsSzup != null and safeIsSzup != ''">and SAFE_IS_SZUP = #{safeIsSzup}</if>
- <if test="hlsjIsSzup != null and hlsjIsSzup != ''">and HLSJ_IS_SZUP = #{hlsjIsSzup}</if>
- <if test="mopdIsSzup != null and mopdIsSzup != ''">and MOPD_IS_SZUP = #{mopdIsSzup}</if>
- <if test="brmIsSzup != null and brmIsSzup != ''">and BRM_IS_SZUP = #{brmIsSzup}</if>
- <if test="aowIsSzup != null and aowIsSzup != ''">and AOW_IS_SZUP = #{aowIsSzup}</if>
- <if test="isFwttl != null and isFwttl != ''">and IS_FWTTL = #{isFwttl}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="fillUnit != null and fillUnit != ''">and FILL_UNIT = #{fillUnit}</if>
- <if test="fillPers != null and fillPers != ''">and FILL_PERS = #{fillPers}</if>
- <if test="fillChkPers != null and fillChkPers != ''">and FILL_CHK_PERS = #{fillChkPers}</if>
- <if test="fillTel != null and fillTel != ''">and FILL_TEL = #{fillTel}</if>
- <if test="fillTm != null">and FILL_TM = #{fillTm}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRssfdrRgstrImplmtResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_IMPLMT where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRssfdrRgstrImplmtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_IMPLMT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRssfdrRgstrImplmtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_IMPLMT
- </select>
- <select id="findList" resultMap="bisInspRssfdrRgstrImplmtResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_IMPLMT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSSFDR_RGSTR_IMPLMT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrImplmt">
- insert into BIS_INSP_RSSFDR_RGSTR_IMPLMT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSSFDR_RGSTR_IMPLMT where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrImplmt">
- delete from BIS_INSP_RSSFDR_RGSTR_IMPLMT <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSSFDR_RGSTR_IMPLMT set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrImplmt">
- update BIS_INSP_RSSFDR_RGSTR_IMPLMT
- <trim prefix="set" suffixOverrides=",">
- <if test="AowIsOver != null and AowIsOver != ''">AOW_IS_OVER = #{AowIsOver},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
- <if test="safeIsSzup != null and safeIsSzup != ''">SAFE_IS_SZUP = #{safeIsSzup},</if>
- <if test="hlsjIsSzup != null and hlsjIsSzup != ''">HLSJ_IS_SZUP = #{hlsjIsSzup},</if>
- <if test="mopdIsSzup != null and mopdIsSzup != ''">MOPD_IS_SZUP = #{mopdIsSzup},</if>
- <if test="brmIsSzup != null and brmIsSzup != ''">BRM_IS_SZUP = #{brmIsSzup},</if>
- <if test="aowIsSzup != null and aowIsSzup != ''">AOW_IS_SZUP = #{aowIsSzup},</if>
- <if test="isFwttl != null and isFwttl != ''">IS_FWTTL = #{isFwttl},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="fillUnit != null and fillUnit != ''">FILL_UNIT = #{fillUnit},</if>
- <if test="fillPers != null and fillPers != ''">FILL_PERS = #{fillPers},</if>
- <if test="fillChkPers != null and fillChkPers != ''">FILL_CHK_PERS = #{fillChkPers},</if>
- <if test="fillTel != null and fillTel != ''">FILL_TEL = #{fillTel},</if>
- <if test="fillTm != null">FILL_TM = #{fillTm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrImplmt">
- update BIS_INSP_RSSFDR_RGSTR_IMPLMT
- <trim prefix="set" suffixOverrides=",">
- <if test="AowIsOver != null and AowIsOver != ''">AOW_IS_OVER = #{AowIsOver},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
- <if test="safeIsSzup != null and safeIsSzup != ''">SAFE_IS_SZUP = #{safeIsSzup},</if>
- <if test="hlsjIsSzup != null and hlsjIsSzup != ''">HLSJ_IS_SZUP = #{hlsjIsSzup},</if>
- <if test="mopdIsSzup != null and mopdIsSzup != ''">MOPD_IS_SZUP = #{mopdIsSzup},</if>
- <if test="brmIsSzup != null and brmIsSzup != ''">BRM_IS_SZUP = #{brmIsSzup},</if>
- <if test="aowIsSzup != null and aowIsSzup != ''">AOW_IS_SZUP = #{aowIsSzup},</if>
- <if test="isFwttl != null and isFwttl != ''">IS_FWTTL = #{isFwttl},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="fillUnit != null and fillUnit != ''">FILL_UNIT = #{fillUnit},</if>
- <if test="fillPers != null and fillPers != ''">FILL_PERS = #{fillPers},</if>
- <if test="fillChkPers != null and fillChkPers != ''">FILL_CHK_PERS = #{fillChkPers},</if>
- <if test="fillTel != null and fillTel != ''">FILL_TEL = #{fillTel},</if>
- <if test="fillTm != null">FILL_TM = #{fillTm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|