| 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.BisInspHystOocInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo" id="bisInspHystOocInfoResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="pgIsSc" column="PG_IS_SC"/>
- <result property="intIsBar" column="INT_IS_BAR"/>
- <result property="fcltsIsDip" column="FCLTS_IS_DIP"/>
- <result property="fcltsType" column="FCLTS_TYPE"/>
- <result property="isVacrpatr" column="IS_VACRPATR"/>
- <result property="itioIsDttsmaniptctspra" column="ITIO_IS_DTTSMANIPTCTSPRA"/>
- <result property="ermIsWkab" column="ERM_IS_WKAB"/>
- <result property="ermType" column="ERM_TYPE"/>
- <result property="ermTypeOther" column="ERM_TYPE_OTHER"/>
- <result property="wfclpswatlIsWkabEf" column="WFCLPSWATL_IS_WKAB_EF"/>
- <result property="etsrpacmritpIsWkab" column="ETSRPACMRITP_IS_WKAB"/>
- <result property="isHasKpFclts" column="IS_HAS_KP_FCLTS"/>
- <result property="kpFcltsType" column="KP_FCLTS_TYPE"/>
- <result property="kpFcltsTypeOther" column="KP_FCLTS_TYPE_OTHER"/>
- <result property="mtmbotfIsWkab" column="MTMBOTF_IS_WKAB"/>
- <result property="mtmbotf" column="MTMBOTF"/>
- <result property="pfshIsRmv" column="PFSH_IS_RMV"/>
- <result property="pfshRmvStp" column="PFSH_RMV_STP"/>
- <result property="amritwpIsWkab" column="AMRITWP_IS_WKAB"/>
- <result property="note" column="NOTE"/>
- <result property="status" column="STATUS"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- PG_IS_SC,
- INT_IS_BAR,
- FCLTS_IS_DIP,
- FCLTS_TYPE,
- IS_VACRPATR,
- ITIO_IS_DTTSMANIPTCTSPRA,
- ERM_IS_WKAB,
- ERM_TYPE,
- ERM_TYPE_OTHER,
- WFCLPSWATL_IS_WKAB_EF,
- ETSRPACMRITP_IS_WKAB,
- IS_HAS_KP_FCLTS,
- KP_FCLTS_TYPE,
- KP_FCLTS_TYPE_OTHER,
- MTMBOTF_IS_WKAB,
- MTMBOTF,
- PFSH_IS_RMV,
- PFSH_RMV_STP,
- AMRITWP_IS_WKAB,
- NOTE,
- STATUS,
- PERS_ID,
- INTM,
- UPTM
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{pgIsSc},
- #{intIsBar},
- #{fcltsIsDip},
- #{fcltsType},
- #{isVacrpatr},
- #{itioIsDttsmaniptctspra},
- #{ermIsWkab},
- #{ermType},
- #{ermTypeOther},
- #{wfclpswatlIsWkabEf},
- #{etsrpacmritpIsWkab},
- #{isHasKpFclts},
- #{kpFcltsType},
- #{kpFcltsTypeOther},
- #{mtmbotfIsWkab},
- #{mtmbotf},
- #{pfshIsRmv},
- #{pfshRmvStp},
- #{amritwpIsWkab},
- #{note},
- #{status},
- #{persId},
- #{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="pgIsSc != null and pgIsSc != ''">and PG_IS_SC = #{pgIsSc}</if>
- <if test="intIsBar != null and intIsBar != ''">and INT_IS_BAR = #{intIsBar}</if>
- <if test="fcltsIsDip != null and fcltsIsDip != ''">and FCLTS_IS_DIP = #{fcltsIsDip}</if>
- <if test="fcltsType != null and fcltsType != ''">and FCLTS_TYPE = #{fcltsType}</if>
- <if test="isVacrpatr != null and isVacrpatr != ''">and IS_VACRPATR = #{isVacrpatr}</if>
- <if test="itioIsDttsmaniptctspra != null and itioIsDttsmaniptctspra != ''">and ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra}</if>
- <if test="ermIsWkab != null and ermIsWkab != ''">and ERM_IS_WKAB = #{ermIsWkab}</if>
- <if test="ermType != null and ermType != ''">and ERM_TYPE = #{ermType}</if>
- <if test="ermTypeOther != null and ermTypeOther != ''">and ERM_TYPE_OTHER = #{ermTypeOther}</if>
- <if test="wfclpswatlIsWkabEf != null and wfclpswatlIsWkabEf != ''">and WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf}</if>
- <if test="etsrpacmritpIsWkab != null and etsrpacmritpIsWkab != ''">and ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab}</if>
- <if test="isHasKpFclts != null and isHasKpFclts != ''">and IS_HAS_KP_FCLTS = #{isHasKpFclts}</if>
- <if test="kpFcltsType != null and kpFcltsType != ''">and KP_FCLTS_TYPE = #{kpFcltsType}</if>
- <if test="kpFcltsTypeOther != null and kpFcltsTypeOther != ''">and KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther}</if>
- <if test="mtmbotfIsWkab != null and mtmbotfIsWkab != ''">and MTMBOTF_IS_WKAB = #{mtmbotfIsWkab}</if>
- <if test="mtmbotf != null and mtmbotf != ''">and MTMBOTF = #{mtmbotf}</if>
- <if test="pfshIsRmv != null and pfshIsRmv != ''">and PFSH_IS_RMV = #{pfshIsRmv}</if>
- <if test="pfshRmvStp != null and pfshRmvStp != ''">and PFSH_RMV_STP = #{pfshRmvStp}</if>
- <if test="amritwpIsWkab != null and amritwpIsWkab != ''">and AMRITWP_IS_WKAB = #{amritwpIsWkab}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspHystOocInfoResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspHystOocInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspHystOocInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO
- </select>
- <select id="findList" resultMap="bisInspHystOocInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
- insert into BIS_INSP_HYST_OOC_INFO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_HYST_OOC_INFO where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
- delete from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_HYST_OOC_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
- update BIS_INSP_HYST_OOC_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="pgIsSc != null">PG_IS_SC = #{pgIsSc},</if>
- <if test="intIsBar != null">INT_IS_BAR = #{intIsBar},</if>
- <if test="fcltsIsDip != null">FCLTS_IS_DIP = #{fcltsIsDip},</if>
- <if test="fcltsType != null">FCLTS_TYPE = #{fcltsType},</if>
- <if test="isVacrpatr != null">IS_VACRPATR = #{isVacrpatr},</if>
- <if test="itioIsDttsmaniptctspra != null">ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra},</if>
- <if test="ermIsWkab != null">ERM_IS_WKAB = #{ermIsWkab},</if>
- <if test="ermType != null">ERM_TYPE = #{ermType},</if>
- <if test="ermTypeOther != null">ERM_TYPE_OTHER = #{ermTypeOther},</if>
- <if test="wfclpswatlIsWkabEf != null">WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf},</if>
- <if test="etsrpacmritpIsWkab != null">ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab},</if>
- <if test="isHasKpFclts != null">IS_HAS_KP_FCLTS = #{isHasKpFclts},</if>
- <if test="kpFcltsType != null">KP_FCLTS_TYPE = #{kpFcltsType},</if>
- <if test="kpFcltsTypeOther != null">KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther},</if>
- <if test="mtmbotfIsWkab != null">MTMBOTF_IS_WKAB = #{mtmbotfIsWkab},</if>
- <if test="mtmbotf != null">MTMBOTF = #{mtmbotf},</if>
- <if test="pfshIsRmv != null">PFSH_IS_RMV = #{pfshIsRmv},</if>
- <if test="pfshRmvStp != null">PFSH_RMV_STP = #{pfshRmvStp},</if>
- <if test="amritwpIsWkab != null">AMRITWP_IS_WKAB = #{amritwpIsWkab},</if>
- <if test="note != null">NOTE = #{note},</if>
- <if test="status != null">STATUS = #{status},</if>
- <if test="persId != null">PERS_ID = #{persId},</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.BisInspHystOocInfo">
- update BIS_INSP_HYST_OOC_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="pgIsSc != null">PG_IS_SC = #{pgIsSc},</if>
- <if test="intIsBar != null">INT_IS_BAR = #{intIsBar},</if>
- <if test="fcltsIsDip != null">FCLTS_IS_DIP = #{fcltsIsDip},</if>
- <if test="fcltsType != null">FCLTS_TYPE = #{fcltsType},</if>
- <if test="isVacrpatr != null">IS_VACRPATR = #{isVacrpatr},</if>
- <if test="itioIsDttsmaniptctspra != null">ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra},</if>
- <if test="ermIsWkab != null">ERM_IS_WKAB = #{ermIsWkab},</if>
- <if test="ermType != null">ERM_TYPE = #{ermType},</if>
- <if test="ermTypeOther != null">ERM_TYPE_OTHER = #{ermTypeOther},</if>
- <if test="wfclpswatlIsWkabEf != null">WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf},</if>
- <if test="etsrpacmritpIsWkab != null">ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab},</if>
- <if test="isHasKpFclts != null">IS_HAS_KP_FCLTS = #{isHasKpFclts},</if>
- <if test="kpFcltsType != null">KP_FCLTS_TYPE = #{kpFcltsType},</if>
- <if test="kpFcltsTypeOther != null">KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther},</if>
- <if test="mtmbotfIsWkab != null">MTMBOTF_IS_WKAB = #{mtmbotfIsWkab},</if>
- <if test="mtmbotf != null">MTMBOTF = #{mtmbotf},</if>
- <if test="pfshIsRmv != null">PFSH_IS_RMV = #{pfshIsRmv},</if>
- <if test="pfshRmvStp != null">PFSH_RMV_STP = #{pfshRmvStp},</if>
- <if test="amritwpIsWkab != null">AMRITWP_IS_WKAB = #{amritwpIsWkab},</if>
- <if test="note != null">NOTE = #{note},</if>
- <if test="status != null">STATUS = #{status},</if>
- <if test="persId != null">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|