| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?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.BisInspWintRgstrMendLiftDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift" id="bisInspWintRgstrMendLiftResultMap">
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="wintIsChkIn" column="WINT_IS_CHK_IN" />
- <result property="ltcoswstwiIsTrue" column="LTCOSWSTWI_IS_TRUE" />
- <result property="wimmriIsTrue" column="WIMMRI_IS_TRUE" />
- <result property="tmisitwdpIsTrue" column="TMISITWDP_IS_TRUE" />
- <result property="aawiirtyRawiIsTrue" column="AAWIIRTY_RAWI_IS_TRUE" />
- <result property="isEnactMomc" column="IS_ENACT_MOMC" />
- <result property="isHbiawtrlrprRar" column="IS_HBIAWTRLRPR_RAR" />
- <result property="isGetVwdp" column="IS_GET_VWDP" />
- <result property="isDwutcsitp" column="IS_DWUTCSITP" />
- <result property="wimmIsNorm" column="WIMM_IS_NORM" />
- <result property="isHasOthPblm" column="IS_HAS_OTH_PBLM" />
- <result property="status" column="STATUS"/>
- <result property="recPersId" column="REC_PERS_ID" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- <result property="dwutcsitpType" column="DWUTCSITP_TYPE" />
- <result property="dwutcsitpTypeNote" column="DWUTCSITP_TYPE_NOTE" />
- <result property="wimmNormType" column="WIMM_NORM_TYPE" />
- <result property="wimmNormTypeNote" column="WIMM_NORM_TYPE_NOTE" />
- <result property="ltcoswstwiType" column="LTCOSWSTWI_TYPE" />
- <result property="vwdpNoType" column="VWDP_NO_TYPE" />
- </resultMap>
-
- <sql id="table_columns">
- VWDP_NO_TYPE,
- LTCOSWSTWI_TYPE,
- ID,
- RGSTR_ID,
- WINT_IS_CHK_IN,
- LTCOSWSTWI_IS_TRUE,
- WIMMRI_IS_TRUE,
- TMISITWDP_IS_TRUE,
- AAWIIRTY_RAWI_IS_TRUE,
- IS_ENACT_MOMC,
- IS_HBIAWTRLRPR_RAR,
- IS_GET_VWDP,
- IS_DWUTCSITP,
- WIMM_IS_NORM,
- IS_HAS_OTH_PBLM,
- STATUS,
- REC_PERS_ID,
- INTM,
- UPTM,
- DWUTCSITP_TYPE,
- DWUTCSITP_TYPE_NOTE,
- WIMM_NORM_TYPE,
- WIMM_NORM_TYPE_NOTE
- </sql>
- <sql id="entity_properties">
- #{vwdpNoType},
- #{ltcoswstwiType},
- #{id},
- #{rgstrId},
- #{wintIsChkIn},
- #{ltcoswstwiIsTrue},
- #{wimmriIsTrue},
- #{tmisitwdpIsTrue},
- #{aawiirtyRawiIsTrue},
- #{isEnactMomc},
- #{isHbiawtrlrprRar},
- #{isGetVwdp},
- #{isDwutcsitp},
- #{wimmIsNorm},
- #{isHasOthPblm},
- #{status},
- #{recPersId},
- #{intm},
- #{uptm},
- #{dwutcsitpType},
- #{dwutcsitpTypeNote},
- #{wimmNormType},
- #{wimmNormTypeNote}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">and LTCOSWSTWI_TYPE = #{ltcoswstwiType}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">and WINT_IS_CHK_IN = #{wintIsChkIn}</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">and LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue}</if>
- <if test="wimmriIsTrue != null and wimmriIsTrue != ''">and WIMMRI_IS_TRUE = #{wimmriIsTrue}</if>
- <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">and TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue}</if>
- <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">and AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue}</if>
- <if test="isEnactMomc != null and isEnactMomc != ''">and IS_ENACT_MOMC = #{isEnactMomc}</if>
- <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">and IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar}</if>
- <if test="isGetVwdp != null and isGetVwdp != ''">and IS_GET_VWDP = #{isGetVwdp}</if>
- <if test="isDwutcsitp != null and isDwutcsitp != ''">and IS_DWUTCSITP = #{isDwutcsitp}</if>
- <if test="wimmIsNorm != null and wimmIsNorm != ''">and WIMM_IS_NORM = #{wimmIsNorm}</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">and IS_HAS_OTH_PBLM = #{isHasOthPblm}</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="dwutcsitpType != null and dwutcsitpType != ''">and DWUTCSITP_TYPE = #{dwutcsitpType}</if>
- <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">and DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote}</if>
- <if test="wimmNormType != null and wimmNormType != ''">and WIMM_NORM_TYPE = #{wimmNormType}</if>
- <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">and WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWintRgstrMendLiftResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWintRgstrMendLiftResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWintRgstrMendLiftResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT
- </select>
- <select id="findList" resultMap="bisInspWintRgstrMendLiftResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
- insert into BIS_INSP_WINT_RGSTR_MEND_LIFT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WINT_RGSTR_MEND_LIFT where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
- delete from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WINT_RGSTR_MEND_LIFT set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
- update BIS_INSP_WINT_RGSTR_MEND_LIFT
- <trim prefix="set" suffixOverrides=",">
- <if test="vwdpNoType != null and vwdpNoType != ''">VWDP_NO_TYPE = #{vwdpNoType},</if>
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
- <if test="wimmriIsTrue != null and wimmriIsTrue != ''">WIMMRI_IS_TRUE = #{wimmriIsTrue},</if>
- <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue},</if>
- <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue},</if>
- <if test="isEnactMomc != null and isEnactMomc != ''">IS_ENACT_MOMC = #{isEnactMomc},</if>
- <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar},</if>
- <if test="isGetVwdp != null and isGetVwdp != ''">IS_GET_VWDP = #{isGetVwdp},</if>
- <if test="isDwutcsitp != null and isDwutcsitp != ''">IS_DWUTCSITP = #{isDwutcsitp},</if>
- <if test="wimmIsNorm != null and wimmIsNorm != ''">WIMM_IS_NORM = #{wimmIsNorm},</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="dwutcsitpType != null and dwutcsitpType != ''">DWUTCSITP_TYPE = #{dwutcsitpType},</if>
- <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote},</if>
- <if test="wimmNormType != null and wimmNormType != ''">WIMM_NORM_TYPE = #{wimmNormType},</if>
- <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote},</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.BisInspWintRgstrMendLift">
- update BIS_INSP_WINT_RGSTR_MEND_LIFT
- <trim prefix="set" suffixOverrides=",">
- <if test="vwdpNoType != null and vwdpNoType != ''">VWDP_NO_TYPE = #{vwdpNoType},</if>
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
- <if test="wimmriIsTrue != null and wimmriIsTrue != ''">WIMMRI_IS_TRUE = #{wimmriIsTrue},</if>
- <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue},</if>
- <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue},</if>
- <if test="isEnactMomc != null and isEnactMomc != ''">IS_ENACT_MOMC = #{isEnactMomc},</if>
- <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar},</if>
- <if test="isGetVwdp != null and isGetVwdp != ''">IS_GET_VWDP = #{isGetVwdp},</if>
- <if test="isDwutcsitp != null and isDwutcsitp != ''">IS_DWUTCSITP = #{isDwutcsitp},</if>
- <if test="wimmIsNorm != null and wimmIsNorm != ''">WIMM_IS_NORM = #{wimmIsNorm},</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="dwutcsitpType != null and dwutcsitpType != ''">DWUTCSITP_TYPE = #{dwutcsitpType},</if>
- <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote},</if>
- <if test="wimmNormType != null and wimmNormType != ''">WIMM_NORM_TYPE = #{wimmNormType},</if>
- <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|