| 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.BisInspHystRectInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo" id="bisInspHystRectInfoResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isHasEfvd" column="IS_HAS_EFVD"/>
- <result property="isHasEdf" column="IS_HAS_EDF"/>
- <result property="edfIsWiicwtosopp" column="EDF_IS_WIICWTOSOPP"/>
- <result property="edfType" column="EDF_TYPE"/>
- <result property="edfTypeOther" column="EDF_TYPE_OTHER"/>
- <result property="edfIsHas" column="EDF_IS_HAS"/>
- <result property="isRuleDef" column="IS_RULE_DEF"/>
- <result property="isHasFmf" column="IS_HAS_FMF"/>
- <result property="isHasVotmf" column="IS_HAS_VOTMF"/>
- <result property="efmfType" column="EFMF_TYPE"/>
- <result property="efmfIsWiicwtosopp" column="EFMF_IS_WIICWTOSOPP"/>
- <result property="mdataIsAttp" column="MDATA_IS_ATTP"/>
- <result property="isRun" column="IS_RUN"/>
- <result property="paapIsPfct" column="PAAP_IS_PFCT"/>
- <result property="tepIsPfct" column="TEP_IS_PFCT"/>
- <result property="wrcwlpIsPfct" column="WRCWLP_IS_PFCT"/>
- <result property="lpepIsPfct" column="LPEP_IS_PFCT"/>
- <result property="feolpIsPfct" column="FEOLP_IS_PFCT"/>
- <result property="capIsPfct" column="CAP_IS_PFCT"/>
- <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,
- IS_HAS_EFVD,
- IS_HAS_EDF,
- EDF_IS_WIICWTOSOPP,
- EDF_TYPE,
- EDF_TYPE_OTHER,
- EDF_IS_HAS,
- IS_RULE_DEF,
- IS_HAS_FMF,
- IS_HAS_VOTMF,
- EFMF_TYPE,
- EFMF_IS_WIICWTOSOPP,
- MDATA_IS_ATTP,
- IS_RUN,
- PAAP_IS_PFCT,
- TEP_IS_PFCT,
- WRCWLP_IS_PFCT,
- LPEP_IS_PFCT,
- FEOLP_IS_PFCT,
- CAP_IS_PFCT,
- NOTE,
- STATUS,
- PERS_ID,
- INTM,
- UPTM
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isHasEfvd},
- #{isHasEdf},
- #{edfIsWiicwtosopp},
- #{edfType},
- #{edfTypeOther},
- #{edfIsHas},
- #{isRuleDef},
- #{isHasFmf},
- #{isHasVotmf},
- #{efmfType},
- #{efmfIsWiicwtosopp},
- #{mdataIsAttp},
- #{isRun},
- #{paapIsPfct},
- #{tepIsPfct},
- #{wrcwlpIsPfct},
- #{lpepIsPfct},
- #{feolpIsPfct},
- #{capIsPfct},
- #{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="isHasEfvd != null and isHasEfvd != ''">and IS_HAS_EFVD = #{isHasEfvd}</if>
- <if test="isHasEdf != null and isHasEdf != ''">and IS_HAS_EDF = #{isHasEdf}</if>
- <if test="edfIsWiicwtosopp != null and edfIsWiicwtosopp != ''">and EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp}</if>
- <if test="edfType != null and edfType != ''">and EDF_TYPE = #{edfType}</if>
- <if test="edfTypeOther != null and edfTypeOther != ''">and EDF_TYPE_OTHER = #{edfTypeOther}</if>
- <if test="edfIsHas != null and edfIsHas != ''">and EDF_IS_HAS = #{edfIsHas}</if>
- <if test="isRuleDef != null and isRuleDef != ''">and IS_RULE_DEF = #{isRuleDef}</if>
- <if test="isHasFmf != null and isHasFmf != ''">and IS_HAS_FMF = #{isHasFmf}</if>
- <if test="isHasVotmf != null and isHasVotmf != ''">and IS_HAS_VOTMF = #{isHasVotmf}</if>
- <if test="efmfType != null and efmfType != ''">and EFMF_TYPE = #{efmfType}</if>
- <if test="efmfIsWiicwtosopp != null and efmfIsWiicwtosopp != ''">and EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp}</if>
- <if test="mdataIsAttp != null and mdataIsAttp != ''">and MDATA_IS_ATTP = #{mdataIsAttp}</if>
- <if test="isRun != null and isRun != ''">and IS_RUN = #{isRun}</if>
- <if test="paapIsPfct != null and paapIsPfct != ''">and PAAP_IS_PFCT = #{paapIsPfct}</if>
- <if test="tepIsPfct != null and tepIsPfct != ''">and TEP_IS_PFCT = #{tepIsPfct}</if>
- <if test="wrcwlpIsPfct != null and wrcwlpIsPfct != ''">and WRCWLP_IS_PFCT = #{wrcwlpIsPfct}</if>
- <if test="lpepIsPfct != null and lpepIsPfct != ''">and LPEP_IS_PFCT = #{lpepIsPfct}</if>
- <if test="feolpIsPfct != null and feolpIsPfct != ''">and FEOLP_IS_PFCT = #{feolpIsPfct}</if>
- <if test="capIsPfct != null and capIsPfct != ''">and CAP_IS_PFCT = #{capIsPfct}</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="bisInspHystRectInfoResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspHystRectInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspHystRectInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO
- </select>
- <select id="findList" resultMap="bisInspHystRectInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
- insert into BIS_INSP_HYST_RECT_INFO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_HYST_RECT_INFO where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
- delete from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_HYST_RECT_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
- update BIS_INSP_HYST_RECT_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isHasEfvd != null">IS_HAS_EFVD = #{isHasEfvd},</if>
- <if test="isHasEdf != null">IS_HAS_EDF = #{isHasEdf},</if>
- <if test="edfIsWiicwtosopp != null">EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp},</if>
- <if test="edfType != null">EDF_TYPE = #{edfType},</if>
- <if test="edfTypeOther != null">EDF_TYPE_OTHER = #{edfTypeOther},</if>
- <if test="edfIsHas != null">EDF_IS_HAS = #{edfIsHas},</if>
- <if test="isRuleDef != null">IS_RULE_DEF = #{isRuleDef},</if>
- <if test="isHasFmf != null">IS_HAS_FMF = #{isHasFmf},</if>
- <if test="isHasVotmf != null">IS_HAS_VOTMF = #{isHasVotmf},</if>
- <if test="efmfType != null">EFMF_TYPE = #{efmfType},</if>
- <if test="efmfIsWiicwtosopp != null">EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp},</if>
- <if test="mdataIsAttp != null">MDATA_IS_ATTP = #{mdataIsAttp},</if>
- <if test="isRun != null">IS_RUN = #{isRun},</if>
- <if test="paapIsPfct != null">PAAP_IS_PFCT = #{paapIsPfct},</if>
- <if test="tepIsPfct != null">TEP_IS_PFCT = #{tepIsPfct},</if>
- <if test="wrcwlpIsPfct != null">WRCWLP_IS_PFCT = #{wrcwlpIsPfct},</if>
- <if test="lpepIsPfct != null">LPEP_IS_PFCT = #{lpepIsPfct},</if>
- <if test="feolpIsPfct != null">FEOLP_IS_PFCT = #{feolpIsPfct},</if>
- <if test="capIsPfct != null">CAP_IS_PFCT = #{capIsPfct},</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.BisInspHystRectInfo">
- update BIS_INSP_HYST_RECT_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isHasEfvd != null">IS_HAS_EFVD = #{isHasEfvd},</if>
- <if test="isHasEdf != null">IS_HAS_EDF = #{isHasEdf},</if>
- <if test="edfIsWiicwtosopp != null">EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp},</if>
- <if test="edfType != null">EDF_TYPE = #{edfType},</if>
- <if test="edfTypeOther != null">EDF_TYPE_OTHER = #{edfTypeOther},</if>
- <if test="edfIsHas != null">EDF_IS_HAS = #{edfIsHas},</if>
- <if test="isRuleDef != null">IS_RULE_DEF = #{isRuleDef},</if>
- <if test="isHasFmf != null">IS_HAS_FMF = #{isHasFmf},</if>
- <if test="isHasVotmf != null">IS_HAS_VOTMF = #{isHasVotmf},</if>
- <if test="efmfType != null">EFMF_TYPE = #{efmfType},</if>
- <if test="efmfIsWiicwtosopp != null">EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp},</if>
- <if test="mdataIsAttp != null">MDATA_IS_ATTP = #{mdataIsAttp},</if>
- <if test="isRun != null">IS_RUN = #{isRun},</if>
- <if test="paapIsPfct != null">PAAP_IS_PFCT = #{paapIsPfct},</if>
- <if test="tepIsPfct != null">TEP_IS_PFCT = #{tepIsPfct},</if>
- <if test="wrcwlpIsPfct != null">WRCWLP_IS_PFCT = #{wrcwlpIsPfct},</if>
- <if test="lpepIsPfct != null">LPEP_IS_PFCT = #{lpepIsPfct},</if>
- <if test="feolpIsPfct != null">FEOLP_IS_PFCT = #{feolpIsPfct},</if>
- <if test="capIsPfct != null">CAP_IS_PFCT = #{capIsPfct},</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>
|