| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655 |
- <?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.BisInspXjvillRunDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspXjvillRun" id="bisInspXjvillRunResultMap">
- <result property="nm" column="NM"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="loc" column="LOC"/>
- <result property="waterSupply" column="WATER_SUPPLY"/>
- <result property="prjNtr" column="PRJ_NTR"/>
- <result property="prjType" column="PRJ_TYPE"/>
- <result property="persSize" column="PERS_SIZE"/>
- <result property="centerX" column="CENTER_X"/>
- <result property="centerY" column="CENTER_Y"/>
- <result property="gdX" column="GD_X"/>
- <result property="gdY" column="GD_Y"/>
- <result property="isRun" column="IS_RUN"/>
- <result property="isMeet" column="IS_MEET"/>
- <result property="isMeetBook" column="IS_MEET_BOOK"/>
- <result property="isChk" column="IS_CHK"/>
- <result property="isChkLeak" column="IS_CHK_LEAK"/>
- <result property="chkInfo" column="CHK_INFO"/>
- <result property="isSprrt" column="IS_SPRRT"/>
- <result property="isLook" column="IS_LOOK"/>
- <result property="isBuldChk" column="IS_BULD_CHK"/>
- <result property="supTel" column="SUP_TEL"/>
- <result property="isSupTel" column="IS_SUP_TEL"/>
- <result property="isTeamDeal" column="IS_TEAM_DEAL"/>
- <result property="isPrice" column="IS_PRICE"/>
- <result property="priceInfo" column="PRICE_INFO"/>
- <result property="isCost" column="IS_COST"/>
- <result property="isCostCover" column="IS_COST_COVER"/>
- <result property="cost" column="COST"/>
- <result property="isImporve" column="IS_IMPORVE"/>
- <result property="isClean" column="IS_CLEAN"/>
- <result property="isCleanRun" column="IS_CLEAN_RUN"/>
- <result property="isDsn" column="IS_DSN"/>
- <result property="isDsnRun" column="IS_DSN_RUN"/>
- <result property="isRpt" column="IS_RPT"/>
- <result property="isRptUp" column="IS_RPT_UP"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="state" column="STATE"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="id" column="ID"/>
- <result property="regmId" column="REGM_ID"/>
- <result property="cwsId" column="CWS_ID"/>
- <result property="pricingBasis" column="PRICING_BASIS"/>
- </resultMap>
- <sql id="table_columns">
- NM,
- AD_CODE,
- AD_NAME,
- LOC,
- WATER_SUPPLY,
- PRJ_NTR,
- PRJ_TYPE,
- PERS_SIZE,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- IS_RUN,
- IS_MEET,
- IS_MEET_BOOK,
- IS_CHK,
- IS_CHK_LEAK,
- CHK_INFO,
- IS_SPRRT,
- IS_LOOK,
- IS_BULD_CHK,
- SUP_TEL,
- IS_SUP_TEL,
- IS_TEAM_DEAL,
- IS_PRICE,
- PRICE_INFO,
- IS_COST,
- IS_COST_COVER,
- COST,
- IS_IMPORVE,
- IS_CLEAN,
- IS_CLEAN_RUN,
- IS_DSN,
- IS_DSN_RUN,
- IS_RPT,
- IS_RPT_UP,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- STATE,
- RGSTR_ID,
- ID,
- REGM_ID,
- CWS_ID,
- PRICING_BASIS
- </sql>
- <sql id="entity_properties">
- #{nm},
- #{adCode},
- #{adName},
- #{loc},
- #{waterSupply},
- #{prjNtr},
- #{prjType},
- #{persSize},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{isRun},
- #{isMeet},
- #{isMeetBook},
- #{isChk},
- #{isChkLeak},
- #{chkInfo},
- #{isSprrt},
- #{isLook},
- #{isBuldChk},
- #{supTel},
- #{isSupTel},
- #{isTeamDeal},
- #{isPrice},
- #{priceInfo},
- #{isCost},
- #{isCostCover},
- #{cost},
- #{isImporve},
- #{isClean},
- #{isCleanRun},
- #{isDsn},
- #{isDsnRun},
- #{isRpt},
- #{isRptUp},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{state},
- #{rgstrId},
- #{id},
- #{regmId},
- #{cwsId},
- #{pricingBasis}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="nm != null and nm != ''">
- and NM = #{nm}
- </if>
- <if test="adCode != null and adCode != ''">
- and AD_CODE = #{adCode}
- </if>
- <if test="adName != null and adName != ''">
- and AD_NAME = #{adName}
- </if>
- <if test="loc != null and loc != ''">
- and LOC = #{loc}
- </if>
- <if test="waterSupply != null and waterSupply != ''">
- and WATER_SUPPLY = #{waterSupply}
- </if>
- <if test="prjNtr != null and prjNtr != ''">
- and PRJ_NTR = #{prjNtr}
- </if>
- <if test="prjType != null and prjType != ''">
- and PRJ_TYPE = #{prjType}
- </if>
- <if test="persSize != null and persSize != ''">
- and PERS_SIZE = #{persSize}
- </if>
- <if test="centerX != null and centerX != ''">
- and CENTER_X = #{centerX}
- </if>
- <if test="centerY != null and centerY != ''">
- and CENTER_Y = #{centerY}
- </if>
- <if test="gdX != null and gdX != ''">
- and GD_X = #{gdX}
- </if>
- <if test="gdY != null and gdY != ''">
- and GD_Y = #{gdY}
- </if>
- <if test="isRun != null and isRun != ''">
- and IS_RUN = #{isRun}
- </if>
- <if test="isMeet != null and isMeet != ''">
- and IS_MEET = #{isMeet}
- </if>
- <if test="isMeetBook != null and isMeetBook != ''">
- and IS_MEET_BOOK = #{isMeetBook}
- </if>
- <if test="isChk != null and isChk != ''">
- and IS_CHK = #{isChk}
- </if>
- <if test="isChkLeak != null and isChkLeak != ''">
- and IS_CHK_LEAK = #{isChkLeak}
- </if>
- <if test="chkInfo != null and chkInfo != ''">
- and CHK_INFO = #{chkInfo}
- </if>
- <if test="isSprrt != null and isSprrt != ''">
- and IS_SPRRT = #{isSprrt}
- </if>
- <if test="isLook != null and isLook != ''">
- and IS_LOOK = #{isLook}
- </if>
- <if test="isBuldChk != null and isBuldChk != ''">
- and IS_BULD_CHK = #{isBuldChk}
- </if>
- <if test="supTel != null and supTel != ''">
- and SUP_TEL = #{supTel}
- </if>
- <if test="isSupTel != null and isSupTel != ''">
- and IS_SUP_TEL = #{isSupTel}
- </if>
- <if test="isTeamDeal != null and isTeamDeal != ''">
- and IS_TEAM_DEAL = #{isTeamDeal}
- </if>
- <if test="isPrice != null and isPrice != ''">
- and IS_PRICE = #{isPrice}
- </if>
- <if test="priceInfo != null and priceInfo != ''">
- and PRICE_INFO = #{priceInfo}
- </if>
- <if test="isCost != null and isCost != ''">
- and IS_COST = #{isCost}
- </if>
- <if test="isCostCover != null and isCostCover != ''">
- and IS_COST_COVER = #{isCostCover}
- </if>
- <if test="cost != null and cost != ''">
- and COST = #{cost}
- </if>
- <if test="isImporve != null and isImporve != ''">
- and IS_IMPORVE = #{isImporve}
- </if>
- <if test="isClean != null and isClean != ''">
- and IS_CLEAN = #{isClean}
- </if>
- <if test="isCleanRun != null and isCleanRun != ''">
- and IS_CLEAN_RUN = #{isCleanRun}
- </if>
- <if test="isDsn != null and isDsn != ''">
- and IS_DSN = #{isDsn}
- </if>
- <if test="isDsnRun != null and isDsnRun != ''">
- and IS_DSN_RUN = #{isDsnRun}
- </if>
- <if test="isRpt != null and isRpt != ''">
- and IS_RPT = #{isRpt}
- </if>
- <if test="isRptUp != null and isRptUp != ''">
- and IS_RPT_UP = #{isRptUp}
- </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="note != null and note != ''">
- and NOTE = #{note}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- <if test="state != null and state != ''">
- and STATE = #{state}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="pricingBasis != null and pricingBasis != ''">
- and PRICING_BASIS = #{pricingBasis}
- </if>
- <if test="regmId != null and regmId != ''">
- and REGM_ID = #{regmId}
- </if>
- <if test="cwsId != null and cwsId != ''">
- and CWS_ID = #{cwsId}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspXjvillRunResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_XJVILL_RUN where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspXjvillRunResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_XJVILL_RUN
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspXjvillRunResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_XJVILL_RUN
- </select>
- <select id="findList" resultMap="bisInspXjvillRunResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_XJVILL_RUN
- <include refid="page_where"/>
- <choose>
- <when test="regmId != null and regmId != ''">
- and REGM_ID = #{regmId}
- </when>
- <otherwise>
- and REGM_ID IS NULL
- </otherwise>
- </choose>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_XJVILL_RUN
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspXjvillRun">
- insert into BIS_INSP_XJVILL_RUN(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_XJVILL_RUN set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspXjvillRun">
- update BIS_INSP_XJVILL_RUN set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_XJVILL_RUN set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspXjvillRun">
- update BIS_INSP_XJVILL_RUN
- <trim prefix="set" suffixOverrides=",">
- <if test="pricingBasis != null and pricingBasis != ''">
- PRICING_BASIS = #{pricingBasis},
- </if>
- <if test="nm != null and nm != ''">NM
- = #{nm},
- </if>
- <if test="adCode != null and adCode != ''">AD_CODE
- = #{adCode},
- </if>
- <if test="adName != null and adName != ''">AD_NAME
- = #{adName},
- </if>
- <if test="loc != null and loc != ''">LOC
- = #{loc},
- </if>
- <if test="waterSupply != null and waterSupply != ''">WATER_SUPPLY
- = #{waterSupply},
- </if>
- <if test="prjNtr != null and prjNtr != ''">PRJ_NTR
- = #{prjNtr},
- </if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE
- = #{prjType},
- </if>
- <if test="persSize != null and persSize != ''">PERS_SIZE
- = #{persSize},
- </if>
- <if test="centerX != null and centerX != ''">CENTER_X
- = #{centerX},
- </if>
- <if test="centerY != null and centerY != ''">CENTER_Y
- = #{centerY},
- </if>
- <if test="gdX != null and gdX != ''">GD_X
- = #{gdX},
- </if>
- <if test="gdY != null and gdY != ''">GD_Y
- = #{gdY},
- </if>
- <if test="isRun != null and isRun != ''">IS_RUN
- = #{isRun},
- </if>
- <if test="isMeet != null and isMeet != ''">IS_MEET
- = #{isMeet},
- </if>
- <if test="isMeetBook != null and isMeetBook != ''">IS_MEET_BOOK
- = #{isMeetBook},
- </if>
- <if test="isChk != null and isChk != ''">IS_CHK
- = #{isChk},
- </if>
- <if test="isChkLeak != null and isChkLeak != ''">IS_CHK_LEAK
- = #{isChkLeak},
- </if>
- <if test="chkInfo != null and chkInfo != ''">CHK_INFO
- = #{chkInfo},
- </if>
- <if test="isSprrt != null and isSprrt != ''">IS_SPRRT
- = #{isSprrt},
- </if>
- <if test="isLook != null and isLook != ''">IS_LOOK
- = #{isLook},
- </if>
- <if test="isBuldChk != null and isBuldChk != ''">IS_BULD_CHK
- = #{isBuldChk},
- </if>
- <if test="supTel != null and supTel != ''">SUP_TEL
- = #{supTel},
- </if>
- <if test="isSupTel != null and isSupTel != ''">IS_SUP_TEL
- = #{isSupTel},
- </if>
- <if test="isTeamDeal != null and isTeamDeal != ''">IS_TEAM_DEAL
- = #{isTeamDeal},
- </if>
- <if test="isPrice != null and isPrice != ''">IS_PRICE
- = #{isPrice},
- </if>
- <if test="priceInfo != null and priceInfo != ''">PRICE_INFO
- = #{priceInfo},
- </if>
- <if test="isCost != null and isCost != ''">IS_COST
- = #{isCost},
- </if>
- <if test="isCostCover != null and isCostCover != ''">IS_COST_COVER
- = #{isCostCover},
- </if>
- <if test="cost != null and cost != ''">COST
- = #{cost},
- </if>
- <if test="isImporve != null and isImporve != ''">IS_IMPORVE
- = #{isImporve},
- </if>
- <if test="isClean != null and isClean != ''">IS_CLEAN
- = #{isClean},
- </if>
- <if test="isCleanRun != null and isCleanRun != ''">IS_CLEAN_RUN
- = #{isCleanRun},
- </if>
- <if test="isDsn != null and isDsn != ''">IS_DSN
- = #{isDsn},
- </if>
- <if test="isDsnRun != null and isDsnRun != ''">IS_DSN_RUN
- = #{isDsnRun},
- </if>
- <if test="isRpt != null and isRpt != ''">IS_RPT
- = #{isRpt},
- </if>
- <if test="isRptUp != null and isRptUp != ''">IS_RPT_UP
- = #{isRptUp},
- </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="note != null and note != ''">NOTE
- = #{note},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="state != null and state != ''">STATE
- = #{state},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="regmId != null and regmId != ''">REGM_ID
- = #{regmId},
- </if>
- <if test="cwsId != null and cwsId != ''">CWS_ID
- = #{cwsId},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspXjvillRun">
- update BIS_INSP_XJVILL_RUN
- <trim prefix="set" suffixOverrides=",">
- <if test="pricingBasis != null and pricingBasis != ''">
- PRICING_BASIS = #{pricingBasis},
- </if>
- <if test="nm != null and nm != ''">NM
- = #{nm},
- </if>
- <if test="adCode != null and adCode != ''">AD_CODE
- = #{adCode},
- </if>
- <if test="adName != null and adName != ''">AD_NAME
- = #{adName},
- </if>
- <if test="loc != null and loc != ''">LOC
- = #{loc},
- </if>
- <if test="waterSupply != null and waterSupply != ''">WATER_SUPPLY
- = #{waterSupply},
- </if>
- <if test="prjNtr != null and prjNtr != ''">PRJ_NTR
- = #{prjNtr},
- </if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE
- = #{prjType},
- </if>
- <if test="persSize != null and persSize != ''">PERS_SIZE
- = #{persSize},
- </if>
- <if test="centerX != null and centerX != ''">CENTER_X
- = #{centerX},
- </if>
- <if test="centerY != null and centerY != ''">CENTER_Y
- = #{centerY},
- </if>
- <if test="gdX != null and gdX != ''">GD_X
- = #{gdX},
- </if>
- <if test="gdY != null and gdY != ''">GD_Y
- = #{gdY},
- </if>
- <if test="isRun != null and isRun != ''">IS_RUN
- = #{isRun},
- </if>
- <if test="isMeet != null and isMeet != ''">IS_MEET
- = #{isMeet},
- </if>
- <if test="isMeetBook != null and isMeetBook != ''">IS_MEET_BOOK
- = #{isMeetBook},
- </if>
- <if test="isChk != null and isChk != ''">IS_CHK
- = #{isChk},
- </if>
- <if test="isChkLeak != null and isChkLeak != ''">IS_CHK_LEAK
- = #{isChkLeak},
- </if>
- <if test="chkInfo != null and chkInfo != ''">CHK_INFO
- = #{chkInfo},
- </if>
- <if test="isSprrt != null and isSprrt != ''">IS_SPRRT
- = #{isSprrt},
- </if>
- <if test="isLook != null and isLook != ''">IS_LOOK
- = #{isLook},
- </if>
- <if test="isBuldChk != null and isBuldChk != ''">IS_BULD_CHK
- = #{isBuldChk},
- </if>
- <if test="supTel != null and supTel != ''">SUP_TEL
- = #{supTel},
- </if>
- <if test="isSupTel != null and isSupTel != ''">IS_SUP_TEL
- = #{isSupTel},
- </if>
- <if test="isTeamDeal != null and isTeamDeal != ''">IS_TEAM_DEAL
- = #{isTeamDeal},
- </if>
- <if test="isPrice != null and isPrice != ''">IS_PRICE
- = #{isPrice},
- </if>
- <if test="priceInfo != null and priceInfo != ''">PRICE_INFO
- = #{priceInfo},
- </if>
- <if test="isCost != null and isCost != ''">IS_COST
- = #{isCost},
- </if>
- <if test="isCostCover != null and isCostCover != ''">IS_COST_COVER
- = #{isCostCover},
- </if>
- <if test="cost != null and cost != ''">COST
- = #{cost},
- </if>
- <if test="isImporve != null and isImporve != ''">IS_IMPORVE
- = #{isImporve},
- </if>
- <if test="isClean != null and isClean != ''">IS_CLEAN
- = #{isClean},
- </if>
- <if test="isCleanRun != null and isCleanRun != ''">IS_CLEAN_RUN
- = #{isCleanRun},
- </if>
- <if test="isDsn != null and isDsn != ''">IS_DSN
- = #{isDsn},
- </if>
- <if test="isDsnRun != null and isDsnRun != ''">IS_DSN_RUN
- = #{isDsnRun},
- </if>
- <if test="isRpt != null and isRpt != ''">IS_RPT
- = #{isRpt},
- </if>
- <if test="isRptUp != null and isRptUp != ''">IS_RPT_UP
- = #{isRptUp},
- </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="note != null and note != ''">NOTE
- = #{note},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="state != null and state != ''">STATE
- = #{state},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="regmId != null and regmId != ''">REGM_ID
- = #{regmId},
- </if>
- <if test="cwsId != null and cwsId != ''">CWS_ID
- = #{cwsId},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|