| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?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.BisInspVillqhFeeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillqhFee" id="bisInspVillqhFeeResultMap">
- <result property="id" column="ID"/>
- <result property="regstrId" column="REGSTR_ID"/>
- <result property="prjId" column="PRJ_ID"/>
- <result property="prjNm" column="PRJ_NM"/>
- <result property="prjType" column="PRJ_TYPE"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- <result property="addr" column="ADDR"/>
- <result property="isEarlyWk" column="IS_EARLY_WK"/>
- <result property="buldTm" column="BULD_TM"/>
- <result property="buldCost" column="BULD_COST"/>
- <result property="buldPcity" column="BULD_PCITY"/>
- <result property="buldPrsSize" column="BULD_PRS_SIZE"/>
- <result property="buldPprsSize" column="BULD_PPRS_SIZE"/>
- <result property="isBuld" column="IS_BULD"/>
- <result property="isChk" column="IS_CHK"/>
- <result property="isPubWtrt" column="IS_PUB_WTRT"/>
- <result property="isImpSys" column="IS_IMP_SYS"/>
- <result property="yearCost" column="YEAR_COST"/>
- <result property="invest" column="INVEST"/>
- <result property="prjSize" column="PRJ_SIZE"/>
- <result property="pesSize" column="PES_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="visitDate" column="VISIT_DATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- <result property="isDrawPlan" column="IS_DRAW_PLAN"/>
- <result property="isExApp" column="IS_EX_APP"/>
- <result property="isIssue" column="IS_ISSUE"/>
- <result property="planCost" column="PLAN_COST"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isConTask" column="IS_CON_TASK"/>
- <result property="isWaMeInst" column="IS_WA_ME_INST"/>
- <result property="waChgWay" column="WA_CHG_WAY"/>
- <result property="waterBill" column="WATER_BILL"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- REGSTR_ID,
- PLAN_COST,
- PRJ_ID,
- PRJ_NM,
- PRJ_TYPE,
- AD_CODE,
- AD_NAME,
- AD_FULL_NAME,
- ADDR,
- IS_EARLY_WK,
- BULD_TM,
- BULD_COST,
- BULD_PCITY,
- BULD_PRS_SIZE,
- BULD_PPRS_SIZE,
- IS_BULD,
- IS_DRAW_PLAN,
- IS_EX_APP,
- IS_ISSUE,
- IS_CHK,
- IS_PUB_WTRT,
- IS_IMP_SYS,
- YEAR_COST,
- INVEST,
- PRJ_SIZE,
- PES_SIZE,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- VISIT_DATE,
- PERS_ID,
- REC_PERS,
- INTM,
- UPTM,
- STATUS,
- DATA_STAT,
- IS_CON_TASK,
- IS_WA_ME_INST,
- WA_CHG_WAY,
- WATER_BILL
- </sql>
- <sql id="entity_properties">
- #{id},
- #{regstrId},
- #{planCost},
- #{prjId},
- #{prjNm},
- #{prjType},
- #{adCode},
- #{adName},
- #{adFullName},
- #{addr},
- #{isEarlyWk},
- #{buldTm},
- #{buldCost},
- #{buldPcity},
- #{buldPrsSize},
- #{buldPprsSize},
- #{isBuld},
- #{isDrawPlan},
- #{isExApp},
- #{isIssue},
- #{isChk},
- #{isPubWtrt},
- #{isImpSys},
- #{yearCost},
- #{invest},
- #{prjSize},
- #{pesSize},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{visitDate},
- #{persId},
- #{recPers},
- #{intm},
- #{uptm},
- #{status},
- #{dataStat},
- #{isConTask},
- #{isWaMeInst},
- #{waChgWay},
- #{waterBill}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="regstrId != null and regstrId != ''">and REGSTR_ID = #{regstrId}</if>
- <if test="planCost != null and planCost != ''">and PLAN_COST = #{planCost}</if>
- <if test="prjId != null and prjId != ''">and PRJ_ID = #{prjId}</if>
- <if test="prjNm != null and prjNm != ''">and PRJ_NM = #{prjNm}</if>
- <if test="prjType != null and prjType != ''">and PRJ_TYPE = #{prjType}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE LIKE '${adCode}%'</if>
- <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="addr != null and addr != ''">and ADDR = #{addr}</if>
- <if test="isEarlyWk != null and isEarlyWk != ''">and IS_EARLY_WK = #{isEarlyWk}</if>
- <if test="buldTm != null and buldTm != ''">and BULD_TM = #{buldTm}</if>
- <if test="buldCost != null and buldCost != ''">and BULD_COST = #{buldCost}</if>
- <if test="buldPcity != null and buldPcity != ''">and BULD_PCITY = #{buldPcity}</if>
- <if test="buldPrsSize != null and buldPrsSize != ''">and BULD_PRS_SIZE = #{buldPrsSize}</if>
- <if test="buldPprsSize != null and buldPprsSize != ''">and BULD_PPRS_SIZE = #{buldPprsSize}</if>
- <if test="isBuld != null and isBuld != ''">and IS_BULD = #{isBuld}</if>
- <if test="isDrawPlan != null and isDrawPlan != ''">and IS_DRAW_PLAN = #{isDrawPlan}</if>
- <if test="isExApp != null and isExApp != ''">and IS_EX_APP = #{isExApp}</if>
- <if test="isIssue != null and isIssue != ''">and IS_ISSUE = #{isIssue}</if>
- <if test="isChk != null and isChk != ''">and IS_CHK = #{isChk}</if>
- <if test="isPubWtrt != null and isPubWtrt != ''">and IS_PUB_WTRT = #{isPubWtrt}</if>
- <if test="isImpSys != null and isImpSys != ''">and IS_IMP_SYS = #{isImpSys}</if>
- <if test="yearCost != null and yearCost != ''">and YEAR_COST = #{yearCost}</if>
- <if test="invest != null and invest != ''">and INVEST = #{invest}</if>
- <if test="prjSize != null and prjSize != ''">and PRJ_SIZE = #{prjSize}</if>
- <if test="pesSize != null and pesSize != ''">and PES_SIZE = #{pesSize}</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="visitDate != null and visitDate != ''">and VISIT_DATE = #{visitDate}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</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>
- <if test="isConTask != null and isConTask != ''">and IS_CON_TASK = #{isConTask}</if>
- <if test="isWaMeInst != null and isWaMeInst != ''">and IS_WA_ME_INST = #{isWaMeInst}</if>
- <if test="waChgWay != null and waChgWay != ''">and WA_CHG_WAY = #{waChgWay}</if>
- <if test="waterBill != null">and WATER_BILL = #{waterBill}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVillqhFeeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLQH_FEE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVillqhFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLQH_FEE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVillqhFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLQH_FEE
- </select>
- <select id="findList" resultMap="bisInspVillqhFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLQH_FEE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILLQH_FEE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
- insert into BIS_INSP_VILLQH_FEE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILLQH_FEE set DATA_STAT='9' WHERE ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
- update BIS_INSP_VILLQH_FEE set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILLQH_FEE set DATA_STAT='9' WHERE ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
- update BIS_INSP_VILLQH_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="planCost != null and planCost != ''">PLAN_COST = #{planCost},</if>
- <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
- <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="addr != null and addr != ''">ADDR = #{addr},</if>
- <if test="isEarlyWk != null and isEarlyWk != ''">IS_EARLY_WK = #{isEarlyWk},</if>
- <if test="buldTm != null and buldTm != ''">BULD_TM = #{buldTm},</if>
- <if test="buldCost != null and buldCost != ''">BULD_COST = #{buldCost},</if>
- <if test="buldPcity != null and buldPcity != ''">BULD_PCITY = #{buldPcity},</if>
- <if test="buldPrsSize != null and buldPrsSize != ''">BULD_PRS_SIZE = #{buldPrsSize},</if>
- <if test="buldPprsSize != null and buldPprsSize != ''">BULD_PPRS_SIZE = #{buldPprsSize},</if>
- <if test="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
- <if test="isDrawPlan != null and isDrawPlan != ''">IS_DRAW_PLAN = #{isDrawPlan},</if>
- <if test="isExApp != null and isExApp != ''">IS_EX_APP = #{isExApp},</if>
- <if test="isIssue != null and isIssue != ''">IS_ISSUE = #{isIssue},</if>
- <if test="isChk != null and isChk != ''">IS_CHK = #{isChk},</if>
- <if test="isPubWtrt != null and isPubWtrt != ''">IS_PUB_WTRT = #{isPubWtrt},</if>
- <if test="isImpSys != null and isImpSys != ''">IS_IMP_SYS = #{isImpSys},</if>
- <if test="yearCost != null and yearCost != ''">YEAR_COST = #{yearCost},</if>
- <if test="invest != null and invest != ''">INVEST = #{invest},</if>
- <if test="prjSize != null and prjSize != ''">PRJ_SIZE = #{prjSize},</if>
- <if test="pesSize != null and pesSize != ''">PES_SIZE = #{pesSize},</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="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isConTask != null and isConTask != ''">IS_CON_TASK = #{isConTask},</if>
- <if test="isWaMeInst != null and isWaMeInst != ''"> IS_WA_ME_INST = #{isWaMeInst},</if>
- <if test="waChgWay != null and waChgWay != ''"> WA_CHG_WAY = #{waChgWay},</if>
- <if test="waterBill != null"> WATER_BILL = #{waterBill},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillqhFee">
- update BIS_INSP_VILLQH_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="planCost != null and planCost != ''">PLAN_COST = #{planCost},</if>
- <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
- <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="addr != null and addr != ''">ADDR = #{addr},</if>
- <if test="isEarlyWk != null and isEarlyWk != ''">IS_EARLY_WK = #{isEarlyWk},</if>
- <if test="buldTm != null and buldTm != ''">BULD_TM = #{buldTm},</if>
- <if test="buldCost != null and buldCost != ''">BULD_COST = #{buldCost},</if>
- <if test="buldPcity != null and buldPcity != ''">BULD_PCITY = #{buldPcity},</if>
- <if test="buldPrsSize != null and buldPrsSize != ''">BULD_PRS_SIZE = #{buldPrsSize},</if>
- <if test="buldPprsSize != null and buldPprsSize != ''">BULD_PPRS_SIZE = #{buldPprsSize},</if>
- <if test="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
- <if test="isDrawPlan != null and isDrawPlan != ''">IS_DRAW_PLAN = #{isDrawPlan},</if>
- <if test="isExApp != null and isExApp != ''">IS_EX_APP = #{isExApp},</if>
- <if test="isIssue != null and isIssue != ''">IS_ISSUE = #{isIssue},</if>
- <if test="isChk != null and isChk != ''">IS_CHK = #{isChk},</if>
- <if test="isPubWtrt != null and isPubWtrt != ''">IS_PUB_WTRT = #{isPubWtrt},</if>
- <if test="isImpSys != null and isImpSys != ''">IS_IMP_SYS = #{isImpSys},</if>
- <if test="yearCost != null and yearCost != ''">YEAR_COST = #{yearCost},</if>
- <if test="invest != null and invest != ''">INVEST = #{invest},</if>
- <if test="prjSize != null and prjSize != ''">PRJ_SIZE = #{prjSize},</if>
- <if test="pesSize != null and pesSize != ''">PES_SIZE = #{pesSize},</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="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isConTask != null and isConTask != ''">IS_CON_TASK = #{isConTask},</if>
- <if test="isWaMeInst != null and isWaMeInst != ''"> IS_WA_ME_INST = #{isWaMeInst},</if>
- <if test="waChgWay != null and waChgWay != ''"> WA_CHG_WAY = #{waChgWay},</if>
- <if test="waterBill != null"> WATER_BILL = #{waterBill},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|