| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?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.BisInspRssfdrRgstrBuildDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrBuild" id="bisInspRssfdrRgstrBuildResultMap">
- <result property="buildUnit" column="BUILD_UNIT" />
- <result property="buildStat" column="BUILD_STAT" />
- <result property="isFlrpra" column="IS_FLRPRA" />
- <result property="pblmIsOver" column="PBLM_IS_OVER" />
- <result property="rectIsCmit" column="RECT_IS_CMIT" />
- <result property="isCrwttl" column="IS_CRWTTL" />
- <result property="isCa" column="IS_CA" />
- <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="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- </resultMap>
-
- <sql id="table_columns">
- BUILD_UNIT,
- BUILD_STAT,
- IS_FLRPRA,
- PBLM_IS_OVER,
- RECT_IS_CMIT,
- IS_CRWTTL,
- IS_CA,
- NOTE,
- FILL_UNIT,
- FILL_PERS,
- FILL_CHK_PERS,
- FILL_TEL,
- FILL_TM,
- STATUS,
- REC_PERS_ID,
- INTM,
- UPTM,
- ID,
- RGSTR_ID
- </sql>
- <sql id="entity_properties">
- #{buildUnit},
- #{buildStat},
- #{isFlrpra},
- #{pblmIsOver},
- #{rectIsCmit},
- #{isCrwttl},
- #{isCa},
- #{note},
- #{fillUnit},
- #{fillPers},
- #{fillChkPers},
- #{fillTel},
- #{fillTm},
- #{status},
- #{recPersId},
- #{intm},
- #{uptm},
- #{id},
- #{rgstrId}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="buildStat != null and buildStat != ''">and BUILD_STAT = #{buildStat}</if>
- <if test="isFlrpra != null and isFlrpra != ''">and IS_FLRPRA = #{isFlrpra}</if>
- <if test="pblmIsOver != null and pblmIsOver != ''">and PBLM_IS_OVER = #{pblmIsOver}</if>
- <if test="rectIsCmit != null and rectIsCmit != ''">and RECT_IS_CMIT = #{rectIsCmit}</if>
- <if test="isCrwttl != null and isCrwttl != ''">and IS_CRWTTL = #{isCrwttl}</if>
- <if test="isCa != null and isCa != ''">and IS_CA = #{isCa}</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>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRssfdrRgstrBuildResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_BUILD where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRssfdrRgstrBuildResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_BUILD <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRssfdrRgstrBuildResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_BUILD
- </select>
- <select id="findList" resultMap="bisInspRssfdrRgstrBuildResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSSFDR_RGSTR_BUILD <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSSFDR_RGSTR_BUILD <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrBuild">
- insert into BIS_INSP_RSSFDR_RGSTR_BUILD( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSSFDR_RGSTR_BUILD where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrBuild">
- delete from BIS_INSP_RSSFDR_RGSTR_BUILD <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSSFDR_RGSTR_BUILD set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrBuild">
- update BIS_INSP_RSSFDR_RGSTR_BUILD
- <trim prefix="set" suffixOverrides=",">
- <if test="buildStat != null and buildStat != ''">BUILD_STAT = #{buildStat},</if>
- <if test="isFlrpra != null and isFlrpra != ''">IS_FLRPRA = #{isFlrpra},</if>
- <if test="pblmIsOver != null and pblmIsOver != ''">PBLM_IS_OVER = #{pblmIsOver},</if>
- <if test="rectIsCmit != null and rectIsCmit != ''">RECT_IS_CMIT = #{rectIsCmit},</if>
- <if test="isCrwttl != null and isCrwttl != ''">IS_CRWTTL = #{isCrwttl},</if>
- <if test="isCa != null and isCa != ''">IS_CA = #{isCa},</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>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRssfdrRgstrBuild">
- update BIS_INSP_RSSFDR_RGSTR_BUILD
- <trim prefix="set" suffixOverrides=",">
- <if test="buildStat != null and buildStat != ''">BUILD_STAT = #{buildStat},</if>
- <if test="isFlrpra != null and isFlrpra != ''">IS_FLRPRA = #{isFlrpra},</if>
- <if test="pblmIsOver != null and pblmIsOver != ''">PBLM_IS_OVER = #{pblmIsOver},</if>
- <if test="rectIsCmit != null and rectIsCmit != ''">RECT_IS_CMIT = #{rectIsCmit},</if>
- <if test="isCrwttl != null and isCrwttl != ''">IS_CRWTTL = #{isCrwttl},</if>
- <if test="isCa != null and isCa != ''">IS_CA = #{isCa},</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>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|