| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594 |
- <?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.BisInspVill2021UsrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVill2021Usr" id="bisInspVill2021UsrResultMap">
- <result property="id" column="ID"/>
- <result property="villId" column="VILL_ID"/>
- <result property="usrNm" column="USR_NM"/>
- <result property="usrTel" column="USR_TEL"/>
- <result property="usrLoc" column="USR_LOC"/>
- <result property="usrVill" column="USR_VILL"/>
- <result property="isPoor" column="IS_POOR"/>
- <result property="isWtqa" column="IS_WTQA"/>
- <result property="isWtmt" column="IS_WTMT"/>
- <result property="isWtin" column="IS_WTIN"/>
- <result property="is24wtin" column="IS_24WTIN"/>
- <result property="isEasy" column="IS_EASY"/>
- <result property="isSafe" column="IS_SAFE"/>
- <result property="isKnow" column="IS_KNOW"/>
- <result property="isFee" column="IS_FEE"/>
- <result property="wtType" column="WT_TYPE"/>
- <result property="singCost" column="SING_COST"/>
- <result property="twoCost" column="TWO_COST"/>
- <result property="twoCostLimt" column="TWO_COST_LIMT"/>
- <result property="step1Cost" column="STEP1_COST"/>
- <result property="step1CostLimt" column="STEP1_COST_LIMT"/>
- <result property="step2Cost" column="STEP2_COST"/>
- <result property="step2CostLimt" column="STEP2_COST_LIMT"/>
- <result property="step3Cost" column="STEP3_COST"/>
- <result property="step3CostLimt" column="STEP3_COST_LIMT"/>
- <result property="fixCost" column="FIX_COST"/>
- <result property="fixCostUnit" column="FIX_COST_UNIT"/>
- <result property="isSolve" column="IS_SOLVE"/>
- <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="meaCost" column="MEA_COST"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- VILL_ID,
- USR_NM,
- USR_TEL,
- USR_LOC,
- USR_VILL,
- IS_POOR,
- IS_WTQA,
- IS_WTMT,
- IS_WTIN,
- IS_24WTIN,
- IS_EASY,
- IS_SAFE,
- IS_KNOW,
- IS_FEE,
- WT_TYPE,
- SING_COST,
- TWO_COST,
- TWO_COST_LIMT,
- STEP1_COST,
- STEP1_COST_LIMT,
- STEP2_COST,
- STEP2_COST_LIMT,
- STEP3_COST,
- STEP3_COST_LIMT,
- FIX_COST,
- FIX_COST_UNIT,
- IS_SOLVE,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- MEA_COST
- </sql>
- <sql id="entity_properties">
- #{id},
- #{villId},
- #{usrNm},
- #{usrTel},
- #{usrLoc},
- #{usrVill},
- #{isPoor},
- #{isWtqa},
- #{isWtmt},
- #{isWtin},
- #{is24wtin},
- #{isEasy},
- #{isSafe},
- #{isKnow},
- #{isFee},
- #{wtType},
- #{singCost},
- #{twoCost},
- #{twoCostLimt},
- #{step1Cost},
- #{step1CostLimt},
- #{step2Cost},
- #{step2CostLimt},
- #{step3Cost},
- #{step3CostLimt},
- #{fixCost},
- #{fixCostUnit},
- #{isSolve},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{meaCost}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="villId != null and villId != ''">
- and VILL_ID = #{villId}
- </if>
- <if test="usrNm != null and usrNm != ''">
- and USR_NM = #{usrNm}
- </if>
- <if test="usrTel != null and usrTel != ''">
- and USR_TEL = #{usrTel}
- </if>
- <if test="usrLoc != null and usrLoc != ''">
- and USR_LOC = #{usrLoc}
- </if>
- <if test="usrVill != null and usrVill != ''">
- and USR_VILL = #{usrVill}
- </if>
- <if test="isPoor != null and isPoor != ''">
- and IS_POOR = #{isPoor}
- </if>
- <if test="isWtqa != null and isWtqa != ''">
- and IS_WTQA = #{isWtqa}
- </if>
- <if test="isWtmt != null and isWtmt != ''">
- and IS_WTMT = #{isWtmt}
- </if>
- <if test="isWtin != null and isWtin != ''">
- and IS_WTIN = #{isWtin}
- </if>
- <if test="is24wtin != null and is24wtin != ''">
- and IS_24WTIN = #{is24wtin}
- </if>
- <if test="isEasy != null and isEasy != ''">
- and IS_EASY = #{isEasy}
- </if>
- <if test="isSafe != null and isSafe != ''">
- and IS_SAFE = #{isSafe}
- </if>
- <if test="isKnow != null and isKnow != ''">
- and IS_KNOW = #{isKnow}
- </if>
- <if test="isFee != null and isFee != ''">
- and IS_FEE = #{isFee}
- </if>
- <if test="wtType != null and wtType != ''">
- and WT_TYPE = #{wtType}
- </if>
- <if test="singCost != null and singCost != ''">
- and SING_COST = #{singCost}
- </if>
- <if test="twoCost != null and twoCost != ''">
- and TWO_COST = #{twoCost}
- </if>
- <if test="twoCostLimt != null and twoCostLimt != ''">
- and TWO_COST_LIMT = #{twoCostLimt}
- </if>
- <if test="step1Cost != null and step1Cost != ''">
- and STEP1_COST = #{step1Cost}
- </if>
- <if test="step1CostLimt != null and step1CostLimt != ''">
- and STEP1_COST_LIMT = #{step1CostLimt}
- </if>
- <if test="step2Cost != null and step2Cost != ''">
- and STEP2_COST = #{step2Cost}
- </if>
- <if test="step2CostLimt != null and step2CostLimt != ''">
- and STEP2_COST_LIMT = #{step2CostLimt}
- </if>
- <if test="step3Cost != null and step3Cost != ''">
- and STEP3_COST = #{step3Cost}
- </if>
- <if test="step3CostLimt != null and step3CostLimt != ''">
- and STEP3_COST_LIMT = #{step3CostLimt}
- </if>
- <if test="fixCost != null and fixCost != ''">
- and FIX_COST = #{fixCost}
- </if>
- <if test="fixCostUnit != null and fixCostUnit != ''">
- and FIX_COST_UNIT = #{fixCostUnit}
- </if>
- <if test="isSolve != null and isSolve != ''">
- and IS_SOLVE = #{isSolve}
- </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="meaCost != null and meaCost != ''">
- and MEA_COST = #{meaCost}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVill2021UsrResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_USR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVill2021UsrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_USR
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVill2021UsrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_USR
- </select>
- <select id="findList" resultMap="bisInspVill2021UsrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_USR
- <where>
- <if test="rgstrId != null and rgstrId != ''">
- and VILL_ID IN (select ID FROM BIS_INSP_VILL2021_VILL WHERE RGSTR_ID = #{rgstrId})
- </if>
- <if test="villId != null and villId != ''">
- and VILL_ID = #{villId}
- </if>
- <if test="usrNm != null and usrNm != ''">
- and USR_NM = #{usrNm}
- </if>
- <if test="usrTel != null and usrTel != ''">
- and USR_TEL = #{usrTel}
- </if>
- <if test="usrLoc != null and usrLoc != ''">
- and USR_LOC = #{usrLoc}
- </if>
- <if test="usrVill != null and usrVill != ''">
- and USR_VILL = #{usrVill}
- </if>
- <if test="isPoor != null and isPoor != ''">
- and IS_POOR = #{isPoor}
- </if>
- <if test="isWtqa != null and isWtqa != ''">
- and IS_WTQA = #{isWtqa}
- </if>
- <if test="isWtmt != null and isWtmt != ''">
- and IS_WTMT = #{isWtmt}
- </if>
- <if test="isWtin != null and isWtin != ''">
- and IS_WTIN = #{isWtin}
- </if>
- <if test="is24wtin != null and is24wtin != ''">
- and IS_24WTIN = #{is24wtin}
- </if>
- <if test="isEasy != null and isEasy != ''">
- and IS_EASY = #{isEasy}
- </if>
- <if test="isSafe != null and isSafe != ''">
- and IS_SAFE = #{isSafe}
- </if>
- <if test="isKnow != null and isKnow != ''">
- and IS_KNOW = #{isKnow}
- </if>
- <if test="isFee != null and isFee != ''">
- and IS_FEE = #{isFee}
- </if>
- <if test="wtType != null and wtType != ''">
- and WT_TYPE = #{wtType}
- </if>
- <if test="singCost != null and singCost != ''">
- and SING_COST = #{singCost}
- </if>
- <if test="twoCost != null and twoCost != ''">
- and TWO_COST = #{twoCost}
- </if>
- <if test="twoCostLimt != null and twoCostLimt != ''">
- and TWO_COST_LIMT = #{twoCostLimt}
- </if>
- <if test="step1Cost != null and step1Cost != ''">
- and STEP1_COST = #{step1Cost}
- </if>
- <if test="step1CostLimt != null and step1CostLimt != ''">
- and STEP1_COST_LIMT = #{step1CostLimt}
- </if>
- <if test="step2Cost != null and step2Cost != ''">
- and STEP2_COST = #{step2Cost}
- </if>
- <if test="step2CostLimt != null and step2CostLimt != ''">
- and STEP2_COST_LIMT = #{step2CostLimt}
- </if>
- <if test="step3Cost != null and step3Cost != ''">
- and STEP3_COST = #{step3Cost}
- </if>
- <if test="step3CostLimt != null and step3CostLimt != ''">
- and STEP3_COST_LIMT = #{step3CostLimt}
- </if>
- <if test="fixCost != null and fixCost != ''">
- and FIX_COST = #{fixCost}
- </if>
- <if test="fixCostUnit != null and fixCostUnit != ''">
- and FIX_COST_UNIT = #{fixCostUnit}
- </if>
- <if test="isSolve != null and isSolve != ''">
- and IS_SOLVE = #{isSolve}
- </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="meaCost != null and meaCost != ''">
- and MEA_COST = #{meaCost}
- </if>
- and DATA_STAT='0'
- </where>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILL2021_USR
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Usr">
- insert into BIS_INSP_VILL2021_USR(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILL2021_USR set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Usr">
- update BIS_INSP_VILL2021_USR set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILL2021_USR set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Usr">
- update BIS_INSP_VILL2021_USR
- <trim prefix="set" suffixOverrides=",">
- <if test="villId != null and villId != ''">VILL_ID
- = #{villId},
- </if>
- <if test="usrNm != null and usrNm != ''">USR_NM
- = #{usrNm},
- </if>
- <if test="usrTel != null and usrTel != ''">USR_TEL
- = #{usrTel},
- </if>
- <if test="usrLoc != null and usrLoc != ''">USR_LOC
- = #{usrLoc},
- </if>
- <if test="usrVill != null and usrVill != ''">USR_VILL
- = #{usrVill},
- </if>
- <if test="isPoor != null and isPoor != ''">IS_POOR
- = #{isPoor},
- </if>
- <if test="isWtqa != null and isWtqa != ''">IS_WTQA
- = #{isWtqa},
- </if>
- <if test="isWtmt != null and isWtmt != ''">IS_WTMT
- = #{isWtmt},
- </if>
- <if test="isWtin != null and isWtin != ''">IS_WTIN
- = #{isWtin},
- </if>
- <if test="is24wtin != null and is24wtin != ''">IS_24WTIN
- = #{is24wtin},
- </if>
- <if test="isEasy != null and isEasy != ''">IS_EASY
- = #{isEasy},
- </if>
- <if test="isSafe != null and isSafe != ''">IS_SAFE
- = #{isSafe},
- </if>
- <if test="isKnow != null and isKnow != ''">IS_KNOW
- = #{isKnow},
- </if>
- <if test="isFee != null and isFee != ''">IS_FEE
- = #{isFee},
- </if>
- <if test="wtType != null and wtType != ''">WT_TYPE
- = #{wtType},
- </if>
- <if test="singCost != null and singCost != ''">SING_COST
- = #{singCost},
- </if>
- <if test="twoCost != null and twoCost != ''">TWO_COST
- = #{twoCost},
- </if>
- <if test="twoCostLimt != null and twoCostLimt != ''">TWO_COST_LIMT
- = #{twoCostLimt},
- </if>
- <if test="step1Cost != null and step1Cost != ''">STEP1_COST
- = #{step1Cost},
- </if>
- <if test="step1CostLimt != null and step1CostLimt != ''">STEP1_COST_LIMT
- = #{step1CostLimt},
- </if>
- <if test="step2Cost != null and step2Cost != ''">STEP2_COST
- = #{step2Cost},
- </if>
- <if test="step2CostLimt != null and step2CostLimt != ''">STEP2_COST_LIMT
- = #{step2CostLimt},
- </if>
- <if test="step3Cost != null and step3Cost != ''">STEP3_COST
- = #{step3Cost},
- </if>
- <if test="step3CostLimt != null and step3CostLimt != ''">STEP3_COST_LIMT
- = #{step3CostLimt},
- </if>
- <if test="fixCost != null and fixCost != ''">FIX_COST
- = #{fixCost},
- </if>
- <if test="fixCostUnit != null and fixCostUnit != ''">FIX_COST_UNIT
- = #{fixCostUnit},
- </if>
- <if test="isSolve != null and isSolve != ''">IS_SOLVE
- = #{isSolve},
- </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="meaCost != null and meaCost != ''">MEA_COST
- = #{meaCost},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Usr">
- update BIS_INSP_VILL2021_USR
- <trim prefix="set" suffixOverrides=",">
- <if test="villId != null and villId != ''">VILL_ID
- = #{villId},
- </if>
- <if test="usrNm != null and usrNm != ''">USR_NM
- = #{usrNm},
- </if>
- <if test="usrTel != null and usrTel != ''">USR_TEL
- = #{usrTel},
- </if>
- <if test="usrLoc != null and usrLoc != ''">USR_LOC
- = #{usrLoc},
- </if>
- <if test="usrVill != null and usrVill != ''">USR_VILL
- = #{usrVill},
- </if>
- <if test="isPoor != null and isPoor != ''">IS_POOR
- = #{isPoor},
- </if>
- <if test="isWtqa != null and isWtqa != ''">IS_WTQA
- = #{isWtqa},
- </if>
- <if test="isWtmt != null and isWtmt != ''">IS_WTMT
- = #{isWtmt},
- </if>
- <if test="isWtin != null and isWtin != ''">IS_WTIN
- = #{isWtin},
- </if>
- <if test="is24wtin != null and is24wtin != ''">IS_24WTIN
- = #{is24wtin},
- </if>
- <if test="isEasy != null and isEasy != ''">IS_EASY
- = #{isEasy},
- </if>
- <if test="isSafe != null and isSafe != ''">IS_SAFE
- = #{isSafe},
- </if>
- <if test="isKnow != null and isKnow != ''">IS_KNOW
- = #{isKnow},
- </if>
- <if test="isFee != null and isFee != ''">IS_FEE
- = #{isFee},
- </if>
- <if test="wtType != null and wtType != ''">WT_TYPE
- = #{wtType},
- </if>
- <if test="singCost != null and singCost != ''">SING_COST
- = #{singCost},
- </if>
- <if test="twoCost != null and twoCost != ''">TWO_COST
- = #{twoCost},
- </if>
- <if test="twoCostLimt != null and twoCostLimt != ''">TWO_COST_LIMT
- = #{twoCostLimt},
- </if>
- <if test="step1Cost != null and step1Cost != ''">STEP1_COST
- = #{step1Cost},
- </if>
- <if test="step1CostLimt != null and step1CostLimt != ''">STEP1_COST_LIMT
- = #{step1CostLimt},
- </if>
- <if test="step2Cost != null and step2Cost != ''">STEP2_COST
- = #{step2Cost},
- </if>
- <if test="step2CostLimt != null and step2CostLimt != ''">STEP2_COST_LIMT
- = #{step2CostLimt},
- </if>
- <if test="step3Cost != null and step3Cost != ''">STEP3_COST
- = #{step3Cost},
- </if>
- <if test="step3CostLimt != null and step3CostLimt != ''">STEP3_COST_LIMT
- = #{step3CostLimt},
- </if>
- <if test="fixCost != null and fixCost != ''">FIX_COST
- = #{fixCost},
- </if>
- <if test="fixCostUnit != null and fixCostUnit != ''">FIX_COST_UNIT
- = #{fixCostUnit},
- </if>
- <if test="isSolve != null and isSolve != ''">IS_SOLVE
- = #{isSolve},
- </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="meaCost != null and meaCost != ''">MEA_COST
- = #{meaCost},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|