| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444 |
- <?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.BisInspWrm2021SpotaDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota" id="bisInspWrm2021SpotaResultMap">
- <result property="dataStat" column="DATA_STAT"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="bchkDep" column="BCHK_DEP"/>
- <result property="bchkDepCon" column="BCHK_DEP_CON"/>
- <result property="bchkDepDuy" column="BCHK_DEP_DUY"/>
- <result property="bchkDepDuyTel" column="BCHK_DEP_DUY_TEL"/>
- <result property="chkDep" column="CHK_DEP"/>
- <result property="chkDepPers" column="CHK_DEP_PERS"/>
- <result property="chkTm" column="CHK_TM"/>
- <result property="isWtAssg" column="IS_WT_ASSG"/>
- <result property="isOverCassg" column="IS_OVER_CASSG"/>
- <result property="isOverAssg" column="IS_OVER_ASSG"/>
- <result property="isOverAckCassg" column="IS_OVER_ACK_CASSG"/>
- <result property="isOverAckAssg" column="IS_OVER_ACK_ASSG"/>
- <result property="isOverAppCassg" column="IS_OVER_APP_CASSG"/>
- <result property="isOverAppAssg" column="IS_OVER_APP_ASSG"/>
- <result property="isBuldBook" column="IS_BULD_BOOK"/>
- <result property="isAppAck" column="IS_APP_ACK"/>
- <result property="isChkAppAck" column="IS_CHK_APP_ACK"/>
- <result property="isChkUsr" column="IS_CHK_USR"/>
- <result property="isChkUsrReport" column="IS_CHK_USR_REPORT"/>
- <result property="isBreachAdd" column="IS_BREACH_ADD"/>
- <result property="isBuldGov" column="IS_BULD_GOV"/>
- <result property="isChkIn" column="IS_CHK_IN"/>
- <result property="isMendBook" column="IS_MEND_BOOK"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- </resultMap>
- <sql id="table_columns">
- DATA_STAT,
- ID,
- RGSTR_ID,
- BCHK_DEP,
- BCHK_DEP_CON,
- BCHK_DEP_DUY,
- BCHK_DEP_DUY_TEL,
- CHK_DEP,
- CHK_DEP_PERS,
- CHK_TM,
- IS_WT_ASSG,
- IS_OVER_CASSG,
- IS_OVER_ASSG,
- IS_OVER_ACK_CASSG,
- IS_OVER_ACK_ASSG,
- IS_OVER_APP_CASSG,
- IS_OVER_APP_ASSG,
- IS_BULD_BOOK,
- IS_APP_ACK,
- IS_CHK_APP_ACK,
- IS_CHK_USR,
- IS_CHK_USR_REPORT,
- IS_BREACH_ADD,
- IS_BULD_GOV,
- IS_CHK_IN,
- IS_MEND_BOOK,
- PERS_ID,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{dataStat},
- #{id},
- #{rgstrId},
- #{bchkDep},
- #{bchkDepCon},
- #{bchkDepDuy},
- #{bchkDepDuyTel},
- #{chkDep},
- #{chkDepPers},
- #{chkTm},
- #{isWtAssg},
- #{isOverCassg},
- #{isOverAssg},
- #{isOverAckCassg},
- #{isOverAckAssg},
- #{isOverAppCassg},
- #{isOverAppAssg},
- #{isBuldBook},
- #{isAppAck},
- #{isChkAppAck},
- #{isChkUsr},
- #{isChkUsrReport},
- #{isBreachAdd},
- #{isBuldGov},
- #{isChkIn},
- #{isMendBook},
- #{persId},
- #{intm},
- #{uptm},
- #{status}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="bchkDep != null and bchkDep != ''">
- and BCHK_DEP = #{bchkDep}
- </if>
- <if test="bchkDepCon != null and bchkDepCon != ''">
- and BCHK_DEP_CON = #{bchkDepCon}
- </if>
- <if test="bchkDepDuy != null and bchkDepDuy != ''">
- and BCHK_DEP_DUY = #{bchkDepDuy}
- </if>
- <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">
- and BCHK_DEP_DUY_TEL = #{bchkDepDuyTel}
- </if>
- <if test="chkDep != null and chkDep != ''">
- and CHK_DEP = #{chkDep}
- </if>
- <if test="chkDepPers != null and chkDepPers != ''">
- and CHK_DEP_PERS = #{chkDepPers}
- </if>
- <if test="chkTm != null">
- and CHK_TM = #{chkTm}
- </if>
- <if test="isWtAssg != null and isWtAssg != ''">
- and IS_WT_ASSG = #{isWtAssg}
- </if>
- <if test="isOverCassg != null and isOverCassg != ''">
- and IS_OVER_CASSG = #{isOverCassg}
- </if>
- <if test="isOverAssg != null and isOverAssg != ''">
- and IS_OVER_ASSG = #{isOverAssg}
- </if>
- <if test="isOverAckCassg != null and isOverAckCassg != ''">
- and IS_OVER_ACK_CASSG = #{isOverAckCassg}
- </if>
- <if test="isOverAckAssg != null and isOverAckAssg != ''">
- and IS_OVER_ACK_ASSG = #{isOverAckAssg}
- </if>
- <if test="isOverAppCassg != null and isOverAppCassg != ''">
- and IS_OVER_APP_CASSG = #{isOverAppCassg}
- </if>
- <if test="isOverAppAssg != null and isOverAppAssg != ''">
- and IS_OVER_APP_ASSG = #{isOverAppAssg}
- </if>
- <if test="isBuldBook != null and isBuldBook != ''">
- and IS_BULD_BOOK = #{isBuldBook}
- </if>
- <if test="isAppAck != null and isAppAck != ''">
- and IS_APP_ACK = #{isAppAck}
- </if>
- <if test="isChkAppAck != null and isChkAppAck != ''">
- and IS_CHK_APP_ACK = #{isChkAppAck}
- </if>
- <if test="isChkUsr != null and isChkUsr != ''">
- and IS_CHK_USR = #{isChkUsr}
- </if>
- <if test="isChkUsrReport != null and isChkUsrReport != ''">
- and IS_CHK_USR_REPORT = #{isChkUsrReport}
- </if>
- <if test="isBreachAdd != null and isBreachAdd != ''">
- and IS_BREACH_ADD = #{isBreachAdd}
- </if>
- <if test="isBuldGov != null and isBuldGov != ''">
- and IS_BULD_GOV = #{isBuldGov}
- </if>
- <if test="isChkIn != null and isChkIn != ''">
- and IS_CHK_IN = #{isChkIn}
- </if>
- <if test="isMendBook != null and isMendBook != ''">
- and IS_MEND_BOOK = #{isMendBook}
- </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>
- <if test="status != null and status != ''">
- and STATUS = #{status}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWrm2021SpotaResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_SPOTA where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWrm2021SpotaResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_SPOTA
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWrm2021SpotaResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_SPOTA
- </select>
- <select id="findList" resultMap="bisInspWrm2021SpotaResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_SPOTA
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WRM2021_SPOTA
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
- insert into BIS_INSP_WRM2021_SPOTA(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WRM2021_SPOTA set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
- update BIS_INSP_WRM2021_SPOTA set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WRM2021_SPOTA set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
- update BIS_INSP_WRM2021_SPOTA
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="bchkDep != null and bchkDep != ''">BCHK_DEP
- = #{bchkDep},
- </if>
- <if test="bchkDepCon != null and bchkDepCon != ''">BCHK_DEP_CON
- = #{bchkDepCon},
- </if>
- <if test="bchkDepDuy != null and bchkDepDuy != ''">BCHK_DEP_DUY
- = #{bchkDepDuy},
- </if>
- <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">BCHK_DEP_DUY_TEL
- = #{bchkDepDuyTel},
- </if>
- <if test="chkDep != null and chkDep != ''">CHK_DEP
- = #{chkDep},
- </if>
- <if test="chkDepPers != null and chkDepPers != ''">CHK_DEP_PERS
- = #{chkDepPers},
- </if>
- <if test="chkTm != null">CHK_TM
- = #{chkTm},
- </if>
- <if test="isWtAssg != null and isWtAssg != ''">IS_WT_ASSG
- = #{isWtAssg},
- </if>
- <if test="isOverCassg != null and isOverCassg != ''">IS_OVER_CASSG
- = #{isOverCassg},
- </if>
- <if test="isOverAssg != null and isOverAssg != ''">IS_OVER_ASSG
- = #{isOverAssg},
- </if>
- <if test="isOverAckCassg != null and isOverAckCassg != ''">IS_OVER_ACK_CASSG
- = #{isOverAckCassg},
- </if>
- <if test="isOverAckAssg != null and isOverAckAssg != ''">IS_OVER_ACK_ASSG
- = #{isOverAckAssg},
- </if>
- <if test="isOverAppCassg != null and isOverAppCassg != ''">IS_OVER_APP_CASSG
- = #{isOverAppCassg},
- </if>
- <if test="isOverAppAssg != null and isOverAppAssg != ''">IS_OVER_APP_ASSG
- = #{isOverAppAssg},
- </if>
- <if test="isBuldBook != null and isBuldBook != ''">IS_BULD_BOOK
- = #{isBuldBook},
- </if>
- <if test="isAppAck != null and isAppAck != ''">IS_APP_ACK
- = #{isAppAck},
- </if>
- <if test="isChkAppAck != null and isChkAppAck != ''">IS_CHK_APP_ACK
- = #{isChkAppAck},
- </if>
- <if test="isChkUsr != null and isChkUsr != ''">IS_CHK_USR
- = #{isChkUsr},
- </if>
- <if test="isChkUsrReport != null and isChkUsrReport != ''">IS_CHK_USR_REPORT
- = #{isChkUsrReport},
- </if>
- <if test="isBreachAdd != null and isBreachAdd != ''">IS_BREACH_ADD
- = #{isBreachAdd},
- </if>
- <if test="isBuldGov != null and isBuldGov != ''">IS_BULD_GOV
- = #{isBuldGov},
- </if>
- <if test="isChkIn != null and isChkIn != ''">IS_CHK_IN
- = #{isChkIn},
- </if>
- <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
- = #{isMendBook},
- </if>
- <if test="persId != null and persId != ''">PERS_ID
- = #{persId},
- </if>
- <if test="intm != null">INTM
- = #{intm},
- </if>
- <if test="uptm != null">UPTM
- = #{uptm},
- </if>
- <if test="status != null and status != ''">STATUS
- = #{status},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
- update BIS_INSP_WRM2021_SPOTA
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="bchkDep != null and bchkDep != ''">BCHK_DEP
- = #{bchkDep},
- </if>
- <if test="bchkDepCon != null and bchkDepCon != ''">BCHK_DEP_CON
- = #{bchkDepCon},
- </if>
- <if test="bchkDepDuy != null and bchkDepDuy != ''">BCHK_DEP_DUY
- = #{bchkDepDuy},
- </if>
- <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">BCHK_DEP_DUY_TEL
- = #{bchkDepDuyTel},
- </if>
- <if test="chkDep != null and chkDep != ''">CHK_DEP
- = #{chkDep},
- </if>
- <if test="chkDepPers != null and chkDepPers != ''">CHK_DEP_PERS
- = #{chkDepPers},
- </if>
- <if test="chkTm != null">CHK_TM
- = #{chkTm},
- </if>
- <if test="isWtAssg != null and isWtAssg != ''">IS_WT_ASSG
- = #{isWtAssg},
- </if>
- <if test="isOverCassg != null and isOverCassg != ''">IS_OVER_CASSG
- = #{isOverCassg},
- </if>
- <if test="isOverAssg != null and isOverAssg != ''">IS_OVER_ASSG
- = #{isOverAssg},
- </if>
- <if test="isOverAckCassg != null and isOverAckCassg != ''">IS_OVER_ACK_CASSG
- = #{isOverAckCassg},
- </if>
- <if test="isOverAckAssg != null and isOverAckAssg != ''">IS_OVER_ACK_ASSG
- = #{isOverAckAssg},
- </if>
- <if test="isOverAppCassg != null and isOverAppCassg != ''">IS_OVER_APP_CASSG
- = #{isOverAppCassg},
- </if>
- <if test="isOverAppAssg != null and isOverAppAssg != ''">IS_OVER_APP_ASSG
- = #{isOverAppAssg},
- </if>
- <if test="isBuldBook != null and isBuldBook != ''">IS_BULD_BOOK
- = #{isBuldBook},
- </if>
- <if test="isAppAck != null and isAppAck != ''">IS_APP_ACK
- = #{isAppAck},
- </if>
- <if test="isChkAppAck != null and isChkAppAck != ''">IS_CHK_APP_ACK
- = #{isChkAppAck},
- </if>
- <if test="isChkUsr != null and isChkUsr != ''">IS_CHK_USR
- = #{isChkUsr},
- </if>
- <if test="isChkUsrReport != null and isChkUsrReport != ''">IS_CHK_USR_REPORT
- = #{isChkUsrReport},
- </if>
- <if test="isBreachAdd != null and isBreachAdd != ''">IS_BREACH_ADD
- = #{isBreachAdd},
- </if>
- <if test="isBuldGov != null and isBuldGov != ''">IS_BULD_GOV
- = #{isBuldGov},
- </if>
- <if test="isChkIn != null and isChkIn != ''">IS_CHK_IN
- = #{isChkIn},
- </if>
- <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
- = #{isMendBook},
- </if>
- <if test="persId != null and persId != ''">PERS_ID
- = #{persId},
- </if>
- <if test="intm != null">INTM
- = #{intm},
- </if>
- <if test="uptm != null">UPTM
- = #{uptm},
- </if>
- <if test="status != null and status != ''">STATUS
- = #{status},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|