| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?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.BisInspWrm2021WellDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrm2021Well" id="bisInspWrm2021WellResultMap">
- <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="isFrbd" column="IS_FRBD"/>
- <result property="isGuwtFrdb" column="IS_GUWT_FRDB"/>
- <result property="isAddFrdb" column="IS_ADD_FRDB"/>
- <result property="isFrdbPlan" column="IS_FRDB_PLAN"/>
- <result property="isFrdbAsk" column="IS_FRDB_ASK"/>
- <result property="isFrdbBook" column="IS_FRDB_BOOK"/>
- <result property="isCloseBook" column="IS_CLOSE_BOOK"/>
- <result property="isBuldMsr" column="IS_BULD_MSR"/>
- <result property="isClosePub" column="IS_CLOSE_PUB"/>
- <result property="isSendMend" column="IS_SEND_MEND"/>
- <result property="isMendAsk" column="IS_MEND_ASK"/>
- <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_FRBD,
- IS_GUWT_FRDB,
- IS_ADD_FRDB,
- IS_FRDB_PLAN,
- IS_FRDB_ASK,
- IS_FRDB_BOOK,
- IS_CLOSE_BOOK,
- IS_BULD_MSR,
- IS_CLOSE_PUB,
- IS_SEND_MEND,
- IS_MEND_ASK,
- PERS_ID,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{dataStat},
- #{id},
- #{rgstrId},
- #{bchkDep},
- #{bchkDepCon},
- #{bchkDepDuy},
- #{bchkDepDuyTel},
- #{chkDep},
- #{chkDepPers},
- #{chkTm},
- #{isFrbd},
- #{isGuwtFrdb},
- #{isAddFrdb},
- #{isFrdbPlan},
- #{isFrdbAsk},
- #{isFrdbBook},
- #{isCloseBook},
- #{isBuldMsr},
- #{isClosePub},
- #{isSendMend},
- #{isMendAsk},
- #{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="isFrbd != null and isFrbd != ''">
- and IS_FRBD = #{isFrbd}
- </if>
- <if test="isGuwtFrdb != null and isGuwtFrdb != ''">
- and IS_GUWT_FRDB = #{isGuwtFrdb}
- </if>
- <if test="isAddFrdb != null and isAddFrdb != ''">
- and IS_ADD_FRDB = #{isAddFrdb}
- </if>
- <if test="isFrdbPlan != null and isFrdbPlan != ''">
- and IS_FRDB_PLAN = #{isFrdbPlan}
- </if>
- <if test="isFrdbAsk != null and isFrdbAsk != ''">
- and IS_FRDB_ASK = #{isFrdbAsk}
- </if>
- <if test="isFrdbBook != null and isFrdbBook != ''">
- and IS_FRDB_BOOK = #{isFrdbBook}
- </if>
- <if test="isCloseBook != null and isCloseBook != ''">
- and IS_CLOSE_BOOK = #{isCloseBook}
- </if>
- <if test="isBuldMsr != null and isBuldMsr != ''">
- and IS_BULD_MSR = #{isBuldMsr}
- </if>
- <if test="isClosePub != null and isClosePub != ''">
- and IS_CLOSE_PUB = #{isClosePub}
- </if>
- <if test="isSendMend != null and isSendMend != ''">
- and IS_SEND_MEND = #{isSendMend}
- </if>
- <if test="isMendAsk != null and isMendAsk != ''">
- and IS_MEND_ASK = #{isMendAsk}
- </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="bisInspWrm2021WellResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_WELL where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWrm2021WellResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_WELL
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWrm2021WellResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_WELL
- </select>
- <select id="findList" resultMap="bisInspWrm2021WellResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WRM2021_WELL
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WRM2021_WELL
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Well">
- insert into BIS_INSP_WRM2021_WELL(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WRM2021_WELL set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Well">
- update BIS_INSP_WRM2021_WELL set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WRM2021_WELL set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Well">
- update BIS_INSP_WRM2021_WELL
- <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="isFrbd != null and isFrbd != ''">IS_FRBD
- = #{isFrbd},
- </if>
- <if test="isGuwtFrdb != null and isGuwtFrdb != ''">IS_GUWT_FRDB
- = #{isGuwtFrdb},
- </if>
- <if test="isAddFrdb != null and isAddFrdb != ''">IS_ADD_FRDB
- = #{isAddFrdb},
- </if>
- <if test="isFrdbPlan != null and isFrdbPlan != ''">IS_FRDB_PLAN
- = #{isFrdbPlan},
- </if>
- <if test="isFrdbAsk != null and isFrdbAsk != ''">IS_FRDB_ASK
- = #{isFrdbAsk},
- </if>
- <if test="isFrdbBook != null and isFrdbBook != ''">IS_FRDB_BOOK
- = #{isFrdbBook},
- </if>
- <if test="isCloseBook != null and isCloseBook != ''">IS_CLOSE_BOOK
- = #{isCloseBook},
- </if>
- <if test="isBuldMsr != null and isBuldMsr != ''">IS_BULD_MSR
- = #{isBuldMsr},
- </if>
- <if test="isClosePub != null and isClosePub != ''">IS_CLOSE_PUB
- = #{isClosePub},
- </if>
- <if test="isSendMend != null and isSendMend != ''">IS_SEND_MEND
- = #{isSendMend},
- </if>
- <if test="isMendAsk != null and isMendAsk != ''">IS_MEND_ASK
- = #{isMendAsk},
- </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.BisInspWrm2021Well">
- update BIS_INSP_WRM2021_WELL
- <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="isFrbd != null and isFrbd != ''">IS_FRBD
- = #{isFrbd},
- </if>
- <if test="isGuwtFrdb != null and isGuwtFrdb != ''">IS_GUWT_FRDB
- = #{isGuwtFrdb},
- </if>
- <if test="isAddFrdb != null and isAddFrdb != ''">IS_ADD_FRDB
- = #{isAddFrdb},
- </if>
- <if test="isFrdbPlan != null and isFrdbPlan != ''">IS_FRDB_PLAN
- = #{isFrdbPlan},
- </if>
- <if test="isFrdbAsk != null and isFrdbAsk != ''">IS_FRDB_ASK
- = #{isFrdbAsk},
- </if>
- <if test="isFrdbBook != null and isFrdbBook != ''">IS_FRDB_BOOK
- = #{isFrdbBook},
- </if>
- <if test="isCloseBook != null and isCloseBook != ''">IS_CLOSE_BOOK
- = #{isCloseBook},
- </if>
- <if test="isBuldMsr != null and isBuldMsr != ''">IS_BULD_MSR
- = #{isBuldMsr},
- </if>
- <if test="isClosePub != null and isClosePub != ''">IS_CLOSE_PUB
- = #{isClosePub},
- </if>
- <if test="isSendMend != null and isSendMend != ''">IS_SEND_MEND
- = #{isSendMend},
- </if>
- <if test="isMendAsk != null and isMendAsk != ''">IS_MEND_ASK
- = #{isMendAsk},
- </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>
|