| 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.BisInspVillgdVillDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillgdVill" id="bisInspVillgdVillResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="nm" column="NM"/>
- <result property="loc" column="LOC"/>
- <result property="isPov" column="IS_POV"/>
- <result property="isMin" column="IS_MIN"/>
- <result property="isOver" column="IS_OVER"/>
- <result property="othNote" column="OTH_NOTE"/>
- <result property="tm" column="TM"/>
- <result property="isInHome" column="IS_IN_HOME"/>
- <result property="total" column="TOTAL"/>
- <result property="inTotal" column="IN_TOTAL"/>
- <result property="inRate" column="IN_RATE"/>
- <result property="isTari" column="IS_TARI"/>
- <result property="tariMet" column="TARI_MET"/>
- <result property="tariMon" column="TARI_MON"/>
- <result property="isPayCost" column="IS_PAY_COST"/>
- <result property="isWaterSupply" column="IS_WATER_SUPPLY"/>
- <result property="supplyPblm" column="SUPPLY_PBLM"/>
- <result property="supplyNote" column="SUPPLY_NOTE"/>
- <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"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- NM,
- LOC,
- IS_POV,
- IS_MIN,
- IS_OVER,
- OTH_NOTE,
- TM,
- IS_IN_HOME,
- TOTAL,
- IN_TOTAL,
- IN_RATE,
- IS_TARI,
- TARI_MET,
- TARI_MON,
- IS_PAY_COST,
- IS_WATER_SUPPLY,
- SUPPLY_PBLM,
- SUPPLY_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{nm},
- #{loc},
- #{isPov},
- #{isMin},
- #{isOver},
- #{othNote},
- #{tm},
- #{isInHome},
- #{total},
- #{inTotal},
- #{inRate},
- #{isTari},
- #{tariMet},
- #{tariMon},
- #{isPayCost},
- #{isWaterSupply},
- #{supplyPblm},
- #{supplyNote},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{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="nm != null and nm != ''">
- and NM = #{nm}
- </if>
- <if test="loc != null and loc != ''">
- and LOC = #{loc}
- </if>
- <if test="isPov != null and isPov != ''">
- and IS_POV = #{isPov}
- </if>
- <if test="isMin != null and isMin != ''">
- and IS_MIN = #{isMin}
- </if>
- <if test="isOver != null and isOver != ''">
- and IS_OVER = #{isOver}
- </if>
- <if test="othNote != null and othNote != ''">
- and OTH_NOTE = #{othNote}
- </if>
- <if test="tm != null">
- and TM = #{tm}
- </if>
- <if test="isInHome != null and isInHome != ''">
- and IS_IN_HOME = #{isInHome}
- </if>
- <if test="total != null and total != ''">
- and TOTAL = #{total}
- </if>
- <if test="inTotal != null and inTotal != ''">
- and IN_TOTAL = #{inTotal}
- </if>
- <if test="inRate != null and inRate != ''">
- and IN_RATE = #{inRate}
- </if>
- <if test="isTari != null and isTari != ''">
- and IS_TARI = #{isTari}
- </if>
- <if test="tariMet != null and tariMet != ''">
- and TARI_MET = #{tariMet}
- </if>
- <if test="tariMon != null and tariMon != ''">
- and TARI_MON = #{tariMon}
- </if>
- <if test="isPayCost != null and isPayCost != ''">
- and IS_PAY_COST = #{isPayCost}
- </if>
- <if test="isWaterSupply != null and isWaterSupply != ''">
- and IS_WATER_SUPPLY = #{isWaterSupply}
- </if>
- <if test="supplyPblm != null and supplyPblm != ''">
- and SUPPLY_PBLM = #{supplyPblm}
- </if>
- <if test="supplyNote != null and supplyNote != ''">
- and SUPPLY_NOTE = #{supplyNote}
- </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>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVillgdVillResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_VILL where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVillgdVillResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_VILL
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVillgdVillResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_VILL
- </select>
- <select id="findList" resultMap="bisInspVillgdVillResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_VILL
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILLGD_VILL
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdVill">
- insert into BIS_INSP_VILLGD_VILL(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_VILL set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdVill">
- update BIS_INSP_VILLGD_VILL set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_VILL set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdVill">
- update BIS_INSP_VILLGD_VILL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="nm != null and nm != ''">NM
- = #{nm},
- </if>
- <if test="loc != null and loc != ''">LOC
- = #{loc},
- </if>
- <if test="isPov != null and isPov != ''">IS_POV
- = #{isPov},
- </if>
- <if test="isMin != null and isMin != ''">IS_MIN
- = #{isMin},
- </if>
- <if test="isOver != null and isOver != ''">IS_OVER
- = #{isOver},
- </if>
- <if test="othNote != null and othNote != ''">OTH_NOTE
- = #{othNote},
- </if>
- <if test="tm != null">TM
- = #{tm},
- </if>
- <if test="isInHome != null and isInHome != ''">IS_IN_HOME
- = #{isInHome},
- </if>
- <if test="total != null and total != ''">TOTAL
- = #{total},
- </if>
- <if test="inTotal != null and inTotal != ''">IN_TOTAL
- = #{inTotal},
- </if>
- <if test="inRate != null and inRate != ''">IN_RATE
- = #{inRate},
- </if>
- <if test="isTari != null and isTari != ''">IS_TARI
- = #{isTari},
- </if>
- <if test="tariMet != null and tariMet != ''">TARI_MET
- = #{tariMet},
- </if>
- <if test="tariMon != null and tariMon != ''">TARI_MON
- = #{tariMon},
- </if>
- <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST
- = #{isPayCost},
- </if>
- <if test="isWaterSupply != null and isWaterSupply != ''">IS_WATER_SUPPLY
- = #{isWaterSupply},
- </if>
- <if test="supplyPblm != null and supplyPblm != ''">SUPPLY_PBLM
- = #{supplyPblm},
- </if>
- <if test="supplyNote != null and supplyNote != ''">SUPPLY_NOTE
- = #{supplyNote},
- </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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdVill">
- update BIS_INSP_VILLGD_VILL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="nm != null and nm != ''">NM
- = #{nm},
- </if>
- <if test="loc != null and loc != ''">LOC
- = #{loc},
- </if>
- <if test="isPov != null and isPov != ''">IS_POV
- = #{isPov},
- </if>
- <if test="isMin != null and isMin != ''">IS_MIN
- = #{isMin},
- </if>
- <if test="isOver != null and isOver != ''">IS_OVER
- = #{isOver},
- </if>
- <if test="othNote != null and othNote != ''">OTH_NOTE
- = #{othNote},
- </if>
- <if test="tm != null">TM
- = #{tm},
- </if>
- <if test="isInHome != null and isInHome != ''">IS_IN_HOME
- = #{isInHome},
- </if>
- <if test="total != null and total != ''">TOTAL
- = #{total},
- </if>
- <if test="inTotal != null and inTotal != ''">IN_TOTAL
- = #{inTotal},
- </if>
- <if test="inRate != null and inRate != ''">IN_RATE
- = #{inRate},
- </if>
- <if test="isTari != null and isTari != ''">IS_TARI
- = #{isTari},
- </if>
- <if test="tariMet != null and tariMet != ''">TARI_MET
- = #{tariMet},
- </if>
- <if test="tariMon != null and tariMon != ''">TARI_MON
- = #{tariMon},
- </if>
- <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST
- = #{isPayCost},
- </if>
- <if test="isWaterSupply != null and isWaterSupply != ''">IS_WATER_SUPPLY
- = #{isWaterSupply},
- </if>
- <if test="supplyPblm != null and supplyPblm != ''">SUPPLY_PBLM
- = #{supplyPblm},
- </if>
- <if test="supplyNote != null and supplyNote != ''">SUPPLY_NOTE
- = #{supplyNote},
- </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>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|