| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?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.BisInspSamrmpRgstrSmrmpDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp" id="bisInspSamrmpRgstrSmrmpResultMap">
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="buildUnit" column="BUILD_UNIT" />
- <result property="aofCntlIsArv" column="AOF_CNTL_IS_ARV" />
- <result property="aofPronIsArv" column="AOF_PRON_IS_ARV" />
- <result property="aofCtcntIsArv" column="AOF_CTCNT_IS_ARV" />
- <result property="cntrlPrjIsFit" column="CNTRL_PRJ_IS_FIT" />
- <result property="cntrlLongIsFit" column="CNTRL_LONG_IS_FIT" />
- <result property="msifsPiaIsFit" column="MSIFS_PIA_IS_FIT" />
- <result property="msifsFurIsFit" column="MSIFS_FUR_IS_FIT" />
- <result property="pcPlanIsPblm" column="PC_PLAN_IS_PBLM" />
- <result property="pcQsIsPblm" column="PC_QS_IS_PBLM" />
- <result property="iotfsPlprsIsWk" column="IOTFS_PLPRS_IS_WK" />
- <result property="iotfsTspbfpIsWk" column="IOTFS_TSPBFP_IS_WK" />
- <result property="iotfsCssIsWk" column="IOTFS_CSS_IS_WK" />
- <result property="iotfsCmsIsWk" column="IOTFS_CMS_IS_WK" />
- <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" />
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- BUILD_UNIT,
- AOF_CNTL_IS_ARV,
- AOF_PRON_IS_ARV,
- AOF_CTCNT_IS_ARV,
- CNTRL_PRJ_IS_FIT,
- CNTRL_LONG_IS_FIT,
- MSIFS_PIA_IS_FIT,
- MSIFS_FUR_IS_FIT,
- PC_PLAN_IS_PBLM,
- PC_QS_IS_PBLM,
- IOTFS_PLPRS_IS_WK,
- IOTFS_TSPBFP_IS_WK,
- IOTFS_CSS_IS_WK,
- IOTFS_CMS_IS_WK,
- NOTE,
- FILL_UNIT,
- FILL_PERS,
- FILL_CHK_PERS,
- FILL_TEL,
- FILL_TM,
- STATUS,
- REC_PERS_ID,
- INTM,
- UPTM
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{buildUnit},
- #{aofCntlIsArv},
- #{aofPronIsArv},
- #{aofCtcntIsArv},
- #{cntrlPrjIsFit},
- #{cntrlLongIsFit},
- #{msifsPiaIsFit},
- #{msifsFurIsFit},
- #{pcPlanIsPblm},
- #{pcQsIsPblm},
- #{iotfsPlprsIsWk},
- #{iotfsTspbfpIsWk},
- #{iotfsCssIsWk},
- #{iotfsCmsIsWk},
- #{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="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="buildUnit != null and buildUnit != ''">and BUILD_UNIT = #{buildUnit}</if>
- <if test="aofCntlIsArv != null and aofCntlIsArv != ''">and AOF_CNTL_IS_ARV = #{aofCntlIsArv}</if>
- <if test="aofPronIsArv != null and aofPronIsArv != ''">and AOF_PRON_IS_ARV = #{aofPronIsArv}</if>
- <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">and AOF_CTCNT_IS_ARV = #{aofCtcntIsArv}</if>
- <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">and CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit}</if>
- <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">and CNTRL_LONG_IS_FIT = #{cntrlLongIsFit}</if>
- <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">and MSIFS_PIA_IS_FIT = #{msifsPiaIsFit}</if>
- <if test="msifsFurIsFit != null and msifsFurIsFit != ''">and MSIFS_FUR_IS_FIT = #{msifsFurIsFit}</if>
- <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">and PC_PLAN_IS_PBLM = #{pcPlanIsPblm}</if>
- <if test="pcQsIsPblm != null and pcQsIsPblm != ''">and PC_QS_IS_PBLM = #{pcQsIsPblm}</if>
- <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">and IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk}</if>
- <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">and IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk}</if>
- <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">and IOTFS_CSS_IS_WK = #{iotfsCssIsWk}</if>
- <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">and IOTFS_CMS_IS_WK = #{iotfsCmsIsWk}</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="bisInspSamrmpRgstrSmrmpResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP
- </select>
- <select id="findList" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
- insert into BIS_INSP_SAMRMP_RGSTR_SMRMP( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SAMRMP_RGSTR_SMRMP where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
- delete from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SAMRMP_RGSTR_SMRMP set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
- update BIS_INSP_SAMRMP_RGSTR_SMRMP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
- <if test="aofCntlIsArv != null and aofCntlIsArv != ''">AOF_CNTL_IS_ARV = #{aofCntlIsArv},</if>
- <if test="aofPronIsArv != null and aofPronIsArv != ''">AOF_PRON_IS_ARV = #{aofPronIsArv},</if>
- <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">AOF_CTCNT_IS_ARV = #{aofCtcntIsArv},</if>
- <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit},</if>
- <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">CNTRL_LONG_IS_FIT = #{cntrlLongIsFit},</if>
- <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">MSIFS_PIA_IS_FIT = #{msifsPiaIsFit},</if>
- <if test="msifsFurIsFit != null and msifsFurIsFit != ''">MSIFS_FUR_IS_FIT = #{msifsFurIsFit},</if>
- <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">PC_PLAN_IS_PBLM = #{pcPlanIsPblm},</if>
- <if test="pcQsIsPblm != null and pcQsIsPblm != ''">PC_QS_IS_PBLM = #{pcQsIsPblm},</if>
- <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk},</if>
- <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk},</if>
- <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">IOTFS_CSS_IS_WK = #{iotfsCssIsWk},</if>
- <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">IOTFS_CMS_IS_WK = #{iotfsCmsIsWk},</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.BisInspSamrmpRgstrSmrmp">
- update BIS_INSP_SAMRMP_RGSTR_SMRMP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
- <if test="aofCntlIsArv != null and aofCntlIsArv != ''">AOF_CNTL_IS_ARV = #{aofCntlIsArv},</if>
- <if test="aofPronIsArv != null and aofPronIsArv != ''">AOF_PRON_IS_ARV = #{aofPronIsArv},</if>
- <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">AOF_CTCNT_IS_ARV = #{aofCtcntIsArv},</if>
- <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit},</if>
- <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">CNTRL_LONG_IS_FIT = #{cntrlLongIsFit},</if>
- <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">MSIFS_PIA_IS_FIT = #{msifsPiaIsFit},</if>
- <if test="msifsFurIsFit != null and msifsFurIsFit != ''">MSIFS_FUR_IS_FIT = #{msifsFurIsFit},</if>
- <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">PC_PLAN_IS_PBLM = #{pcPlanIsPblm},</if>
- <if test="pcQsIsPblm != null and pcQsIsPblm != ''">PC_QS_IS_PBLM = #{pcQsIsPblm},</if>
- <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk},</if>
- <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk},</if>
- <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">IOTFS_CSS_IS_WK = #{iotfsCssIsWk},</if>
- <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">IOTFS_CMS_IS_WK = #{iotfsCmsIsWk},</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>
|