| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?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.BisInspRsmlRgstrRunManageDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage" id="bisInspRsmlRgstrRunManageResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="osascIsNasaa" column="OSASC_IS_NASAA"/>
- <result property="iamIsPip" column="IAM_IS_PIP"/>
- <result property="pomasIsPip" column="POMAS_IS_PIP"/>
- <result property="eiIsPip" column="EI_IS_PIP"/>
- <result property="isFmltWsOdp" column="IS_FMLT_WS_ODP"/>
- <result property="epIsPip" column="EP_IS_PIP"/>
- <result property="emgcIsRarTem" column="EMGC_IS_RAR_TEM"/>
- <result property="pffsIsPip" column="PFFS_IS_PIP"/>
- <result property="isAtroipIffcafc" column="IS_ATROIP_IFFCAFC"/>
- <result property="isAttrotfaeCftod" column="IS_ATTROTFAE_CFTOD"/>
- <result property="halpsIsGdrun" column="HALPS_IS_GDRUN"/>
- <result property="sdgIsGdrun" column="SDG_IS_GDRUN"/>
- <result property="edIsThatr" column="ED_IS_THATR"/>
- <result property="isBldWwitrsfps" column="IS_BLD_WWITRSFPS"/>
- <result property="wrtpsIsPm" column="WRTPS_IS_PM"/>
- <result property="isTfsharar" column="IS_TFSHARAR"/>
- <result property="isTcomwTitmwoteu" column="IS_TCOMW_TITMWOTEU"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- <result property="pmIsMjr" column="PM_IS_MJR"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- OSASC_IS_NASAA,
- IAM_IS_PIP,
- POMAS_IS_PIP,
- EI_IS_PIP,
- IS_FMLT_WS_ODP,
- EP_IS_PIP,
- EMGC_IS_RAR_TEM,
- PFFS_IS_PIP,
- IS_ATROIP_IFFCAFC,
- IS_ATTROTFAE_CFTOD,
- HALPS_IS_GDRUN,
- SDG_IS_GDRUN,
- ED_IS_THATR,
- IS_BLD_WWITRSFPS,
- WRTPS_IS_PM,
- IS_TFSHARAR,
- IS_TCOMW_TITMWOTEU,
- REC_PERS_ID,
- REC_PERS,
- REC_PERS_TEL,
- INTM,
- UPTM,
- STATUS,
- PM_IS_MJR
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{osascIsNasaa},
- #{iamIsPip},
- #{pomasIsPip},
- #{eiIsPip},
- #{isFmltWsOdp},
- #{epIsPip},
- #{emgcIsRarTem},
- #{pffsIsPip},
- #{isAtroipIffcafc},
- #{isAttrotfaeCftod},
- #{halpsIsGdrun},
- #{sdgIsGdrun},
- #{edIsThatr},
- #{isBldWwitrsfps},
- #{wrtpsIsPm},
- #{isTfsharar},
- #{isTcomwTitmwoteu},
- #{recPersId},
- #{recPers},
- #{recPersTel},
- #{intm},
- #{uptm},
- #{status},
- #{pmIsMjr}
- </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="osascIsNasaa != null and osascIsNasaa != ''">and OSASC_IS_NASAA = #{osascIsNasaa}</if>
- <if test="iamIsPip != null and iamIsPip != ''">and IAM_IS_PIP = #{iamIsPip}</if>
- <if test="pomasIsPip != null and pomasIsPip != ''">and POMAS_IS_PIP = #{pomasIsPip}</if>
- <if test="eiIsPip != null and eiIsPip != ''">and EI_IS_PIP = #{eiIsPip}</if>
- <if test="isFmltWsOdp != null and isFmltWsOdp != ''">and IS_FMLT_WS_ODP = #{isFmltWsOdp}</if>
- <if test="epIsPip != null and epIsPip != ''">and EP_IS_PIP = #{epIsPip}</if>
- <if test="emgcIsRarTem != null and emgcIsRarTem != ''">and EMGC_IS_RAR_TEM = #{emgcIsRarTem}</if>
- <if test="pffsIsPip != null and pffsIsPip != ''">and PFFS_IS_PIP = #{pffsIsPip}</if>
- <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">and IS_ATROIP_IFFCAFC = #{isAtroipIffcafc}</if>
- <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">and IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod}</if>
- <if test="halpsIsGdrun != null and halpsIsGdrun != ''">and HALPS_IS_GDRUN = #{halpsIsGdrun}</if>
- <if test="sdgIsGdrun != null and sdgIsGdrun != ''">and SDG_IS_GDRUN = #{sdgIsGdrun}</if>
- <if test="edIsThatr != null and edIsThatr != ''">and ED_IS_THATR = #{edIsThatr}</if>
- <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">and IS_BLD_WWITRSFPS = #{isBldWwitrsfps}</if>
- <if test="wrtpsIsPm != null and wrtpsIsPm != ''">and WRTPS_IS_PM = #{wrtpsIsPm}</if>
- <if test="isTfsharar != null and isTfsharar != ''">and IS_TFSHARAR = #{isTfsharar}</if>
- <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">and IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</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>
- <if test="pmIsMjr != null and pmIsMjr != ''">and PM_IS_MJR = #{pmIsMjr}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsmlRgstrRunManageResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsmlRgstrRunManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsmlRgstrRunManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE
- </select>
- <select id="findList" resultMap="bisInspRsmlRgstrRunManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
- insert into BIS_INSP_RSML_RGSTR_RUN_MANAGE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSML_RGSTR_RUN_MANAGE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
- delete from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSML_RGSTR_RUN_MANAGE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
- update BIS_INSP_RSML_RGSTR_RUN_MANAGE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="osascIsNasaa != null and osascIsNasaa != ''">OSASC_IS_NASAA = #{osascIsNasaa},</if>
- <if test="iamIsPip != null and iamIsPip != ''">IAM_IS_PIP = #{iamIsPip},</if>
- <if test="pomasIsPip != null and pomasIsPip != ''">POMAS_IS_PIP = #{pomasIsPip},</if>
- <if test="eiIsPip != null and eiIsPip != ''">EI_IS_PIP = #{eiIsPip},</if>
- <if test="isFmltWsOdp != null and isFmltWsOdp != ''">IS_FMLT_WS_ODP = #{isFmltWsOdp},</if>
- <if test="epIsPip != null and epIsPip != ''">EP_IS_PIP = #{epIsPip},</if>
- <if test="emgcIsRarTem != null and emgcIsRarTem != ''">EMGC_IS_RAR_TEM = #{emgcIsRarTem},</if>
- <if test="pffsIsPip != null and pffsIsPip != ''">PFFS_IS_PIP = #{pffsIsPip},</if>
- <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">IS_ATROIP_IFFCAFC = #{isAtroipIffcafc},</if>
- <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod},</if>
- <if test="halpsIsGdrun != null and halpsIsGdrun != ''">HALPS_IS_GDRUN = #{halpsIsGdrun},</if>
- <if test="sdgIsGdrun != null and sdgIsGdrun != ''">SDG_IS_GDRUN = #{sdgIsGdrun},</if>
- <if test="edIsThatr != null and edIsThatr != ''">ED_IS_THATR = #{edIsThatr},</if>
- <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">IS_BLD_WWITRSFPS = #{isBldWwitrsfps},</if>
- <if test="wrtpsIsPm != null and wrtpsIsPm != ''">WRTPS_IS_PM = #{wrtpsIsPm},</if>
- <if test="isTfsharar != null and isTfsharar != ''">IS_TFSHARAR = #{isTfsharar},</if>
- <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</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>
- <if test="pmIsMjr != null and pmIsMjr != ''">PM_IS_MJR = #{pmIsMjr},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
- update BIS_INSP_RSML_RGSTR_RUN_MANAGE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="osascIsNasaa != null and osascIsNasaa != ''">OSASC_IS_NASAA = #{osascIsNasaa},</if>
- <if test="iamIsPip != null and iamIsPip != ''">IAM_IS_PIP = #{iamIsPip},</if>
- <if test="pomasIsPip != null and pomasIsPip != ''">POMAS_IS_PIP = #{pomasIsPip},</if>
- <if test="eiIsPip != null and eiIsPip != ''">EI_IS_PIP = #{eiIsPip},</if>
- <if test="isFmltWsOdp != null and isFmltWsOdp != ''">IS_FMLT_WS_ODP = #{isFmltWsOdp},</if>
- <if test="epIsPip != null and epIsPip != ''">EP_IS_PIP = #{epIsPip},</if>
- <if test="emgcIsRarTem != null and emgcIsRarTem != ''">EMGC_IS_RAR_TEM = #{emgcIsRarTem},</if>
- <if test="pffsIsPip != null and pffsIsPip != ''">PFFS_IS_PIP = #{pffsIsPip},</if>
- <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">IS_ATROIP_IFFCAFC = #{isAtroipIffcafc},</if>
- <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod},</if>
- <if test="halpsIsGdrun != null and halpsIsGdrun != ''">HALPS_IS_GDRUN = #{halpsIsGdrun},</if>
- <if test="sdgIsGdrun != null and sdgIsGdrun != ''">SDG_IS_GDRUN = #{sdgIsGdrun},</if>
- <if test="edIsThatr != null and edIsThatr != ''">ED_IS_THATR = #{edIsThatr},</if>
- <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">IS_BLD_WWITRSFPS = #{isBldWwitrsfps},</if>
- <if test="wrtpsIsPm != null and wrtpsIsPm != ''">WRTPS_IS_PM = #{wrtpsIsPm},</if>
- <if test="isTfsharar != null and isTfsharar != ''">IS_TFSHARAR = #{isTfsharar},</if>
- <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</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>
- <if test="pmIsMjr != null and pmIsMjr != ''">PM_IS_MJR = #{pmIsMjr},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|