| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?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.BisInspWiuRgstrApprInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo" id="bisInspWiuRgstrApprInfoResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isHasUaotpwpPblm" column="IS_HAS_UAOTPWP_PBLM"/>
- <result property="isHasEaotpwpPblm" column="IS_HAS_EAOTPWP_PBLM"/>
- <result property="isCtropwrdar" column="IS_CTROPWRDAR"/>
- <result property="isCoaowipofar" column="IS_COAOWIPOFAR"/>
- <result property="isTariNwdplpCwaai" column="IS_TARI_NWDPLP_CWAAI"/>
- <result property="isTiawdpWduatr" column="IS_TIAWDP_WDUATR"/>
- <result property="isSsbcWduwdpeAl" column="IS_SSBC_WDUWDPE_AL"/>
- <result property="isTwcslis" column="IS_TWCSLIS"/>
- <result property="isCwrfatr" column="IS_CWRFATR"/>
- <result property="isTmceAacwdpCwrlar" column="IS_TMCE_AACWDP_CWRLAR"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="inTm" column="IN_TM"/>
- <result property="upTm" column="UP_TM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_HAS_UAOTPWP_PBLM,
- IS_HAS_EAOTPWP_PBLM,
- IS_CTROPWRDAR,
- IS_COAOWIPOFAR,
- IS_TARI_NWDPLP_CWAAI,
- IS_TIAWDP_WDUATR,
- IS_SSBC_WDUWDPE_AL,
- IS_TWCSLIS,
- IS_CWRFATR,
- IS_TMCE_AACWDP_CWRLAR,
- REC_PERS_ID,
- IN_TM,
- UP_TM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isHasUaotpwpPblm},
- #{isHasEaotpwpPblm},
- #{isCtropwrdar},
- #{isCoaowipofar},
- #{isTariNwdplpCwaai},
- #{isTiawdpWduatr},
- #{isSsbcWduwdpeAl},
- #{isTwcslis},
- #{isCwrfatr},
- #{isTmceAacwdpCwrlar},
- #{recPersId},
- #{inTm},
- #{upTm},
- #{dataStat}
- </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="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">and IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm}</if>
- <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">and IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm}</if>
- <if test="isCtropwrdar != null and isCtropwrdar != ''">and IS_CTROPWRDAR = #{isCtropwrdar}</if>
- <if test="isCoaowipofar != null and isCoaowipofar != ''">and IS_COAOWIPOFAR = #{isCoaowipofar}</if>
- <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">and IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai}</if>
- <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">and IS_TIAWDP_WDUATR = #{isTiawdpWduatr}</if>
- <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">and IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl}</if>
- <if test="isTwcslis != null and isTwcslis != ''">and IS_TWCSLIS = #{isTwcslis}</if>
- <if test="isCwrfatr != null and isCwrfatr != ''">and IS_CWRFATR = #{isCwrfatr}</if>
- <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">and IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="inTm != null">and IN_TM = #{inTm}</if>
- <if test="upTm != null">and UP_TM = #{upTm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWiuRgstrApprInfoResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWiuRgstrApprInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWiuRgstrApprInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO
- </select>
- <select id="findList" resultMap="bisInspWiuRgstrApprInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
- insert into BIS_INSP_WIU_RGSTR_APPR_INFO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WIU_RGSTR_APPR_INFO where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
- delete from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WIU_RGSTR_APPR_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
- update BIS_INSP_WIU_RGSTR_APPR_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm},</if>
- <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm},</if>
- <if test="isCtropwrdar != null and isCtropwrdar != ''">IS_CTROPWRDAR = #{isCtropwrdar},</if>
- <if test="isCoaowipofar != null and isCoaowipofar != ''">IS_COAOWIPOFAR = #{isCoaowipofar},</if>
- <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai},</if>
- <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">IS_TIAWDP_WDUATR = #{isTiawdpWduatr},</if>
- <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl},</if>
- <if test="isTwcslis != null and isTwcslis != ''">IS_TWCSLIS = #{isTwcslis},</if>
- <if test="isCwrfatr != null and isCwrfatr != ''">IS_CWRFATR = #{isCwrfatr},</if>
- <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
- update BIS_INSP_WIU_RGSTR_APPR_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm},</if>
- <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm},</if>
- <if test="isCtropwrdar != null and isCtropwrdar != ''">IS_CTROPWRDAR = #{isCtropwrdar},</if>
- <if test="isCoaowipofar != null and isCoaowipofar != ''">IS_COAOWIPOFAR = #{isCoaowipofar},</if>
- <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai},</if>
- <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">IS_TIAWDP_WDUATR = #{isTiawdpWduatr},</if>
- <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl},</if>
- <if test="isTwcslis != null and isTwcslis != ''">IS_TWCSLIS = #{isTwcslis},</if>
- <if test="isCwrfatr != null and isCwrfatr != ''">IS_CWRFATR = #{isCwrfatr},</if>
- <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|