| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978 |
- <?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.BisInspIrrRgstrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr" id="bisInspIrrRgstrResultMap">
- <result property="id" column="ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="rurPop" column="RUR_POP"/>
- <result property="cltArea" column="CLT_AREA"/>
- <result property="lndfrm" column="LNDFRM"/>
- <result property="irrPrpSrf" column="IRR_PRP_SRF"/>
- <result property="irrPrpGru" column="IRR_PRP_GRU"/>
- <result property="effIrrArea" column="EFF_IRR_AREA"/>
- <result property="higStnArea" column="HIG_STN_AREA"/>
- <result property="actIrrArea" column="ACT_IRR_AREA"/>
- <result property="smlIrrSize" column="SML_IRR_SIZE"/>
- <result property="smlIrrRate" column="SML_IRR_RATE"/>
- <result property="smlRegSize" column="SML_REG_SIZE"/>
- <result property="isCrtPlan" column="IS_CRT_PLAN"/>
- <result property="isCrtPlanGive" column="IS_CRT_PLAN_GIVE"/>
- <result property="prjPbmArea" column="PRJ_PBM_AREA"/>
- <result property="smlChanLng" column="SML_CHAN_LNG"/>
- <result property="chanLnnLng" column="CHAN_LNN_LNG"/>
- <result property="pondSize" column="POND_SIZE"/>
- <result property="pustSize" column="PUST_SIZE"/>
- <result property="wasSize" column="WAS_SIZE"/>
- <result property="wellSize" column="WELL_SIZE"/>
- <result property="effIrrAreaPipe" column="EFF_IRR_AREA_PIPE"/>
- <result property="effIrrAreaSprn" column="EFF_IRR_AREA_SPRN"/>
- <result property="effIrrAreaMicro" column="EFF_IRR_AREA_MICRO"/>
- <result property="effIrrAreaCount" column="EFF_IRR_AREA_COUNT"/>
- <result property="efuIrrAreaPipe" column="EFU_IRR_AREA_PIPE"/>
- <result property="efuIrrAreaSprn" column="EFU_IRR_AREA_SPRN"/>
- <result property="efuIrrAreaMicro" column="EFU_IRR_AREA_MICRO"/>
- <result property="efuIrrAreaCount" column="EFU_IRR_AREA_COUNT"/>
- <result property="wtrSttnSize" column="WTR_STTN_SIZE"/>
- <result property="wtrSttnRel" column="WTR_STTN_REL"/>
- <result property="wtrSttnRelNote" column="WTR_STTN_REL_NOTE"/>
- <result property="fwtrSttnSize" column="FWTR_STTN_SIZE"/>
- <result property="wtrSttnPopSize" column="WTR_STTN_POP_SIZE"/>
- <result property="wtrSttnProSize" column="WTR_STTN_PRO_SIZE"/>
- <result property="rurOrgSize" column="RUR_ORG_SIZE"/>
- <result property="orgIrrArea" column="ORG_IRR_AREA"/>
- <result property="villPopSize" column="VILL_POP_SIZE"/>
- <result property="villAvgSize" column="VILL_AVG_SIZE"/>
- <result property="wtrSrvcSize" column="WTR_SRVC_SIZE"/>
- <result property="wtrSrvcEvlt" column="WTR_SRVC_EVLT"/>
- <result property="isRfrmPrjRght" column="IS_RFRM_PRJ_RGHT"/>
- <result property="smlCnsrSize" column="SML_CNSR_SIZE"/>
- <result property="smlCnsrSttSize" column="SML_CNSR_STT_SIZE"/>
- <result property="smlCnsrVillSize" column="SML_CNSR_VILL_SIZE"/>
- <result property="smlCnsrOgrSize" column="SML_CNSR_OGR_SIZE"/>
- <result property="smlCnsrPopSize" column="SML_CNSR_POP_SIZE"/>
- <result property="bulDep" column="BUL_DEP"/>
- <result property="higStnMoney" column="HIG_STN_MONEY"/>
- <result property="higStnMoneyWtr" column="HIG_STN_MONEY_WTR"/>
- <result property="higStnAreaLst" column="HIG_STN_AREA_LST"/>
- <result property="othrStnMoney" column="OTHR_STN_MONEY"/>
- <result property="smlRunDep" column="SML_RUN_DEP"/>
- <result property="isRunPlan" column="IS_RUN_PLAN"/>
- <result property="isBulProt" column="IS_BUL_PROT"/>
- <result property="isPrjLdg" column="IS_PRJ_LDG"/>
- <result property="cunRunType" column="CUN_RUN_TYPE"/>
- <result property="cunRunTypeNote" column="CUN_RUN_TYPE_NOTE"/>
- <result property="avgRunMoney" column="AVG_RUN_MONEY"/>
- <result property="proRunMoney" column="PRO_RUN_MONEY"/>
- <result property="cityRunMoney" column="CITY_RUN_MONEY"/>
- <result property="cunRunMoney" column="CUN_RUN_MONEY"/>
- <result property="isRunChk" column="IS_RUN_CHK"/>
- <result property="wtrCmpPrcArea" column="WTR_CMP_PRC_AREA"/>
- <result property="hasReformArea" column="HAS_REFORM_AREA"/>
- <result property="isWtrPrice" column="IS_WTR_PRICE"/>
- <result property="wtrPriceRun" column="WTR_PRICE_RUN"/>
- <result property="isCollectWtrp" column="IS_COLLECT_WTRP"/>
- <result property="collectWtrp" column="COLLECT_WTRP"/>
- <result property="wtrpCollect" column="WTRP_COLLECT"/>
- <result property="collectMain" column="COLLECT_MAIN"/>
- <result property="wtrpAvgCube" column="WTRP_AVG_CUBE"/>
- <result property="wtrpAvgArea" column="WTRP_AVG_AREA"/>
- <result property="wtrpAvgDegree" column="WTRP_AVG_DEGREE"/>
- <result property="wtrpDrc" column="WTRP_DRC"/>
- <result property="wtrpPblm" column="WTRP_PBLM"/>
- <result property="comments" column="COMMENTS"/>
- <result property="invsrName" column="INVSR_NAME"/>
- <result property="invsrPhone" column="INVSR_PHONE"/>
- <result property="cunCntcName" column="CUN_CNTC_NAME"/>
- <result property="cunCntcPhone" column="CUN_CNTC_PHONE"/>
- <result property="rsrchTm" column="RSRCH_TM"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <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="state" column="STATE"/>
- <result property="bulDepNote" column="BUL_DEP_NOTE"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- </resultMap>
- <sql id="table_columns">
- AD_FULL_NAME,
- BUL_DEP_NOTE,
- STATE,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- ID,
- OBJ_ID,
- AD_CODE,
- AD_NAME,
- RUR_POP,
- CLT_AREA,
- LNDFRM,
- IRR_PRP_SRF,
- IRR_PRP_GRU,
- EFF_IRR_AREA,
- HIG_STN_AREA,
- ACT_IRR_AREA,
- SML_IRR_SIZE,
- SML_IRR_RATE,
- SML_REG_SIZE,
- IS_CRT_PLAN,
- IS_CRT_PLAN_GIVE,
- PRJ_PBM_AREA,
- SML_CHAN_LNG,
- CHAN_LNN_LNG,
- POND_SIZE,
- PUST_SIZE,
- WAS_SIZE,
- WELL_SIZE,
- EFF_IRR_AREA_PIPE,
- EFF_IRR_AREA_SPRN,
- EFF_IRR_AREA_MICRO,
- EFF_IRR_AREA_COUNT,
- EFU_IRR_AREA_PIPE,
- EFU_IRR_AREA_SPRN,
- EFU_IRR_AREA_MICRO,
- EFU_IRR_AREA_COUNT,
- WTR_STTN_SIZE,
- WTR_STTN_REL,
- WTR_STTN_REL_NOTE,
- FWTR_STTN_SIZE,
- WTR_STTN_POP_SIZE,
- WTR_STTN_PRO_SIZE,
- RUR_ORG_SIZE,
- ORG_IRR_AREA,
- VILL_POP_SIZE,
- VILL_AVG_SIZE,
- WTR_SRVC_SIZE,
- WTR_SRVC_EVLT,
- IS_RFRM_PRJ_RGHT,
- SML_CNSR_SIZE,
- SML_CNSR_STT_SIZE,
- SML_CNSR_VILL_SIZE,
- SML_CNSR_OGR_SIZE,
- SML_CNSR_POP_SIZE,
- BUL_DEP,
- HIG_STN_MONEY,
- HIG_STN_MONEY_WTR,
- HIG_STN_AREA_LST,
- OTHR_STN_MONEY,
- SML_RUN_DEP,
- IS_RUN_PLAN,
- IS_BUL_PROT,
- IS_PRJ_LDG,
- CUN_RUN_TYPE,
- CUN_RUN_TYPE_NOTE,
- AVG_RUN_MONEY,
- PRO_RUN_MONEY,
- CITY_RUN_MONEY,
- CUN_RUN_MONEY,
- IS_RUN_CHK,
- WTR_CMP_PRC_AREA,
- HAS_REFORM_AREA,
- IS_WTR_PRICE,
- WTR_PRICE_RUN,
- IS_COLLECT_WTRP,
- COLLECT_WTRP,
- WTRP_COLLECT,
- COLLECT_MAIN,
- WTRP_AVG_CUBE,
- WTRP_AVG_AREA,
- WTRP_AVG_DEGREE,
- WTRP_DRC,
- WTRP_PBLM,
- COMMENTS,
- INVSR_NAME,
- INVSR_PHONE,
- CUN_CNTC_NAME,
- CUN_CNTC_PHONE,
- RSRCH_TM,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{adFullName},
- #{bulDepNote},
- #{state},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{id},
- #{objId},
- #{adCode},
- #{adName},
- #{rurPop},
- #{cltArea},
- #{lndfrm},
- #{irrPrpSrf},
- #{irrPrpGru},
- #{effIrrArea},
- #{higStnArea},
- #{actIrrArea},
- #{smlIrrSize},
- #{smlIrrRate},
- #{smlRegSize},
- #{isCrtPlan},
- #{isCrtPlanGive},
- #{prjPbmArea},
- #{smlChanLng},
- #{chanLnnLng},
- #{pondSize},
- #{pustSize},
- #{wasSize},
- #{wellSize},
- #{effIrrAreaPipe},
- #{effIrrAreaSprn},
- #{effIrrAreaMicro},
- #{effIrrAreaCount},
- #{efuIrrAreaPipe},
- #{efuIrrAreaSprn},
- #{efuIrrAreaMicro},
- #{efuIrrAreaCount},
- #{wtrSttnSize},
- #{wtrSttnRel},
- #{wtrSttnRelNote},
- #{fwtrSttnSize},
- #{wtrSttnPopSize},
- #{wtrSttnProSize},
- #{rurOrgSize},
- #{orgIrrArea},
- #{villPopSize},
- #{villAvgSize},
- #{wtrSrvcSize},
- #{wtrSrvcEvlt},
- #{isRfrmPrjRght},
- #{smlCnsrSize},
- #{smlCnsrSttSize},
- #{smlCnsrVillSize},
- #{smlCnsrOgrSize},
- #{smlCnsrPopSize},
- #{bulDep},
- #{higStnMoney},
- #{higStnMoneyWtr},
- #{higStnAreaLst},
- #{othrStnMoney},
- #{smlRunDep},
- #{isRunPlan},
- #{isBulProt},
- #{isPrjLdg},
- #{cunRunType},
- #{cunRunTypeNote},
- #{avgRunMoney},
- #{proRunMoney},
- #{cityRunMoney},
- #{cunRunMoney},
- #{isRunChk},
- #{wtrCmpPrcArea},
- #{hasReformArea},
- #{isWtrPrice},
- #{wtrPriceRun},
- #{isCollectWtrp},
- #{collectWtrp},
- #{wtrpCollect},
- #{collectMain},
- #{wtrpAvgCube},
- #{wtrpAvgArea},
- #{wtrpAvgDegree},
- #{wtrpDrc},
- #{wtrpPblm},
- #{comments},
- #{invsrName},
- #{invsrPhone},
- #{cunCntcName},
- #{cunCntcPhone},
- #{rsrchTm},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="bulDepNote != null and bulDepNote != ''">and BUL_DEP_NOTE = #{bulDepNote}</if>
- <if test="state != null and state != ''">and STATE = #{state}</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="objId != null and objId != ''">and OBJ_ID = #{objId}</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="rurPop != null and rurPop != ''">and RUR_POP = #{rurPop}</if>
- <if test="cltArea != null and cltArea != ''">and CLT_AREA = #{cltArea}</if>
- <if test="lndfrm != null and lndfrm != ''">and LNDFRM = #{lndfrm}</if>
- <if test="irrPrpSrf != null and irrPrpSrf != ''">and IRR_PRP_SRF = #{irrPrpSrf}</if>
- <if test="irrPrpGru != null and irrPrpGru != ''">and IRR_PRP_GRU = #{irrPrpGru}</if>
- <if test="effIrrArea != null and effIrrArea != ''">and EFF_IRR_AREA = #{effIrrArea}</if>
- <if test="higStnArea != null and higStnArea != ''">and HIG_STN_AREA = #{higStnArea}</if>
- <if test="actIrrArea != null and actIrrArea != ''">and ACT_IRR_AREA = #{actIrrArea}</if>
- <if test="smlIrrSize != null and smlIrrSize != ''">and SML_IRR_SIZE = #{smlIrrSize}</if>
- <if test="smlIrrRate != null and smlIrrRate != ''">and SML_IRR_RATE = #{smlIrrRate}</if>
- <if test="smlRegSize != null and smlRegSize != ''">and SML_REG_SIZE = #{smlRegSize}</if>
- <if test="isCrtPlan != null and isCrtPlan != ''">and IS_CRT_PLAN = #{isCrtPlan}</if>
- <if test="isCrtPlanGive != null and isCrtPlanGive != ''">and IS_CRT_PLAN_GIVE = #{isCrtPlanGive}</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">and PRJ_PBM_AREA = #{prjPbmArea}</if>
- <if test="smlChanLng != null and smlChanLng != ''">and SML_CHAN_LNG = #{smlChanLng}</if>
- <if test="chanLnnLng != null and chanLnnLng != ''">and CHAN_LNN_LNG = #{chanLnnLng}</if>
- <if test="pondSize != null and pondSize != ''">and POND_SIZE = #{pondSize}</if>
- <if test="pustSize != null and pustSize != ''">and PUST_SIZE = #{pustSize}</if>
- <if test="wasSize != null and wasSize != ''">and WAS_SIZE = #{wasSize}</if>
- <if test="wellSize != null and wellSize != ''">and WELL_SIZE = #{wellSize}</if>
- <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">and EFF_IRR_AREA_PIPE = #{effIrrAreaPipe}</if>
- <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">and EFF_IRR_AREA_SPRN = #{effIrrAreaSprn}</if>
- <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">and EFF_IRR_AREA_MICRO = #{effIrrAreaMicro}</if>
- <if test="effIrrAreaCount != null and effIrrAreaCount != ''">and EFF_IRR_AREA_COUNT = #{effIrrAreaCount}</if>
- <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">and EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe}</if>
- <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">and EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn}</if>
- <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">and EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro}</if>
- <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">and EFU_IRR_AREA_COUNT = #{efuIrrAreaCount}</if>
- <if test="wtrSttnSize != null and wtrSttnSize != ''">and WTR_STTN_SIZE = #{wtrSttnSize}</if>
- <if test="wtrSttnRel != null and wtrSttnRel != ''">and WTR_STTN_REL = #{wtrSttnRel}</if>
- <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">and WTR_STTN_REL_NOTE = #{wtrSttnRelNote}</if>
- <if test="fwtrSttnSize != null and fwtrSttnSize != ''">and FWTR_STTN_SIZE = #{fwtrSttnSize}</if>
- <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">and WTR_STTN_POP_SIZE = #{wtrSttnPopSize}</if>
- <if test="wtrSttnProSize != null and wtrSttnProSize != ''">and WTR_STTN_PRO_SIZE = #{wtrSttnProSize}</if>
- <if test="rurOrgSize != null and rurOrgSize != ''">and RUR_ORG_SIZE = #{rurOrgSize}</if>
- <if test="orgIrrArea != null and orgIrrArea != ''">and ORG_IRR_AREA = #{orgIrrArea}</if>
- <if test="villPopSize != null and villPopSize != ''">and VILL_POP_SIZE = #{villPopSize}</if>
- <if test="villAvgSize != null and villAvgSize != ''">and VILL_AVG_SIZE = #{villAvgSize}</if>
- <if test="wtrSrvcSize != null and wtrSrvcSize != ''">and WTR_SRVC_SIZE = #{wtrSrvcSize}</if>
- <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">and WTR_SRVC_EVLT = #{wtrSrvcEvlt}</if>
- <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">and IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght}</if>
- <if test="smlCnsrSize != null and smlCnsrSize != ''">and SML_CNSR_SIZE = #{smlCnsrSize}</if>
- <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">and SML_CNSR_STT_SIZE = #{smlCnsrSttSize}</if>
- <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">and SML_CNSR_VILL_SIZE = #{smlCnsrVillSize}</if>
- <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">and SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize}</if>
- <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">and SML_CNSR_POP_SIZE = #{smlCnsrPopSize}</if>
- <if test="bulDep != null and bulDep != ''">and BUL_DEP = #{bulDep}</if>
- <if test="higStnMoney != null and higStnMoney != ''">and HIG_STN_MONEY = #{higStnMoney}</if>
- <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">and HIG_STN_MONEY_WTR = #{higStnMoneyWtr}</if>
- <if test="higStnAreaLst != null and higStnAreaLst != ''">and HIG_STN_AREA_LST = #{higStnAreaLst}</if>
- <if test="othrStnMoney != null and othrStnMoney != ''">and OTHR_STN_MONEY = #{othrStnMoney}</if>
- <if test="smlRunDep != null and smlRunDep != ''">and SML_RUN_DEP = #{smlRunDep}</if>
- <if test="isRunPlan != null and isRunPlan != ''">and IS_RUN_PLAN = #{isRunPlan}</if>
- <if test="isBulProt != null and isBulProt != ''">and IS_BUL_PROT = #{isBulProt}</if>
- <if test="isPrjLdg != null and isPrjLdg != ''">and IS_PRJ_LDG = #{isPrjLdg}</if>
- <if test="cunRunType != null and cunRunType != ''">and CUN_RUN_TYPE = #{cunRunType}</if>
- <if test="cunRunTypeNote != null and cunRunTypeNote != ''">and CUN_RUN_TYPE_NOTE = #{cunRunTypeNote}</if>
- <if test="avgRunMoney != null and avgRunMoney != ''">and AVG_RUN_MONEY = #{avgRunMoney}</if>
- <if test="proRunMoney != null and proRunMoney != ''">and PRO_RUN_MONEY = #{proRunMoney}</if>
- <if test="cityRunMoney != null and cityRunMoney != ''">and CITY_RUN_MONEY = #{cityRunMoney}</if>
- <if test="cunRunMoney != null and cunRunMoney != ''">and CUN_RUN_MONEY = #{cunRunMoney}</if>
- <if test="isRunChk != null and isRunChk != ''">and IS_RUN_CHK = #{isRunChk}</if>
- <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">and WTR_CMP_PRC_AREA = #{wtrCmpPrcArea}</if>
- <if test="hasReformArea != null and hasReformArea != ''">and HAS_REFORM_AREA = #{hasReformArea}</if>
- <if test="isWtrPrice != null and isWtrPrice != ''">and IS_WTR_PRICE = #{isWtrPrice}</if>
- <if test="wtrPriceRun != null and wtrPriceRun != ''">and WTR_PRICE_RUN = #{wtrPriceRun}</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">and IS_COLLECT_WTRP = #{isCollectWtrp}</if>
- <if test="collectWtrp != null and collectWtrp != ''">and COLLECT_WTRP = #{collectWtrp}</if>
- <if test="wtrpCollect != null and wtrpCollect != ''">and WTRP_COLLECT = #{wtrpCollect}</if>
- <if test="collectMain != null and collectMain != ''">and COLLECT_MAIN = #{collectMain}</if>
- <if test="wtrpAvgCube != null and wtrpAvgCube != ''">and WTRP_AVG_CUBE = #{wtrpAvgCube}</if>
- <if test="wtrpAvgArea != null and wtrpAvgArea != ''">and WTRP_AVG_AREA = #{wtrpAvgArea}</if>
- <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">and WTRP_AVG_DEGREE = #{wtrpAvgDegree}</if>
- <if test="wtrpDrc != null and wtrpDrc != ''">and WTRP_DRC = #{wtrpDrc}</if>
- <if test="wtrpPblm != null and wtrpPblm != ''">and WTRP_PBLM = #{wtrpPblm}</if>
- <if test="comments != null and comments != ''">and COMMENTS = #{comments}</if>
- <if test="invsrName != null and invsrName != ''">and INVSR_NAME = #{invsrName}</if>
- <if test="invsrPhone != null and invsrPhone != ''">and INVSR_PHONE = #{invsrPhone}</if>
- <if test="cunCntcName != null and cunCntcName != ''">and CUN_CNTC_NAME = #{cunCntcName}</if>
- <if test="cunCntcPhone != null and cunCntcPhone != ''">and CUN_CNTC_PHONE = #{cunCntcPhone}</if>
- <if test="rsrchTm != null">and RSRCH_TM = #{rsrchTm}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspIrrRgstrResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspIrrRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspIrrRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR
- </select>
- <select id="findList" resultMap="bisInspIrrRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_IRR_RGSTR <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
- insert into BIS_INSP_IRR_RGSTR( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_IRR_RGSTR set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
- update BIS_INSP_IRR_RGSTR set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_IRR_RGSTR set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
- update BIS_INSP_IRR_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="bulDepNote != null and bulDepNote != ''">BUL_DEP_NOTE = #{bulDepNote},</if>
- <if test="state != null and state != ''">STATE = #{state},</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="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="rurPop != null and rurPop != ''">RUR_POP = #{rurPop},</if>
- <if test="cltArea != null and cltArea != ''">CLT_AREA = #{cltArea},</if>
- <if test="lndfrm != null and lndfrm != ''">LNDFRM = #{lndfrm},</if>
- <if test="irrPrpSrf != null and irrPrpSrf != ''">IRR_PRP_SRF = #{irrPrpSrf},</if>
- <if test="irrPrpGru != null and irrPrpGru != ''">IRR_PRP_GRU = #{irrPrpGru},</if>
- <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
- <if test="higStnArea != null and higStnArea != ''">HIG_STN_AREA = #{higStnArea},</if>
- <if test="actIrrArea != null and actIrrArea != ''">ACT_IRR_AREA = #{actIrrArea},</if>
- <if test="smlIrrSize != null and smlIrrSize != ''">SML_IRR_SIZE = #{smlIrrSize},</if>
- <if test="smlIrrRate != null and smlIrrRate != ''">SML_IRR_RATE = #{smlIrrRate},</if>
- <if test="smlRegSize != null and smlRegSize != ''">SML_REG_SIZE = #{smlRegSize},</if>
- <if test="isCrtPlan != null and isCrtPlan != ''">IS_CRT_PLAN = #{isCrtPlan},</if>
- <if test="isCrtPlanGive != null and isCrtPlanGive != ''">IS_CRT_PLAN_GIVE = #{isCrtPlanGive},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- <if test="smlChanLng != null and smlChanLng != ''">SML_CHAN_LNG = #{smlChanLng},</if>
- <if test="chanLnnLng != null and chanLnnLng != ''">CHAN_LNN_LNG = #{chanLnnLng},</if>
- <if test="pondSize != null and pondSize != ''">POND_SIZE = #{pondSize},</if>
- <if test="pustSize != null and pustSize != ''">PUST_SIZE = #{pustSize},</if>
- <if test="wasSize != null and wasSize != ''">WAS_SIZE = #{wasSize},</if>
- <if test="wellSize != null and wellSize != ''">WELL_SIZE = #{wellSize},</if>
- <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
- <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
- <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
- <if test="effIrrAreaCount != null and effIrrAreaCount != ''">EFF_IRR_AREA_COUNT = #{effIrrAreaCount},</if>
- <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
- <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
- <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
- <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">EFU_IRR_AREA_COUNT = #{efuIrrAreaCount},</if>
- <if test="wtrSttnSize != null and wtrSttnSize != ''">WTR_STTN_SIZE = #{wtrSttnSize},</if>
- <if test="wtrSttnRel != null and wtrSttnRel != ''">WTR_STTN_REL = #{wtrSttnRel},</if>
- <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">WTR_STTN_REL_NOTE = #{wtrSttnRelNote},</if>
- <if test="fwtrSttnSize != null and fwtrSttnSize != ''">FWTR_STTN_SIZE = #{fwtrSttnSize},</if>
- <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">WTR_STTN_POP_SIZE = #{wtrSttnPopSize},</if>
- <if test="wtrSttnProSize != null and wtrSttnProSize != ''">WTR_STTN_PRO_SIZE = #{wtrSttnProSize},</if>
- <if test="rurOrgSize != null and rurOrgSize != ''">RUR_ORG_SIZE = #{rurOrgSize},</if>
- <if test="orgIrrArea != null and orgIrrArea != ''">ORG_IRR_AREA = #{orgIrrArea},</if>
- <if test="villPopSize != null and villPopSize != ''">VILL_POP_SIZE = #{villPopSize},</if>
- <if test="villAvgSize != null and villAvgSize != ''">VILL_AVG_SIZE = #{villAvgSize},</if>
- <if test="wtrSrvcSize != null and wtrSrvcSize != ''">WTR_SRVC_SIZE = #{wtrSrvcSize},</if>
- <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">WTR_SRVC_EVLT = #{wtrSrvcEvlt},</if>
- <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght},</if>
- <if test="smlCnsrSize != null and smlCnsrSize != ''">SML_CNSR_SIZE = #{smlCnsrSize},</if>
- <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">SML_CNSR_STT_SIZE = #{smlCnsrSttSize},</if>
- <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">SML_CNSR_VILL_SIZE = #{smlCnsrVillSize},</if>
- <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize},</if>
- <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">SML_CNSR_POP_SIZE = #{smlCnsrPopSize},</if>
- <if test="bulDep != null and bulDep != ''">BUL_DEP = #{bulDep},</if>
- <if test="higStnMoney != null and higStnMoney != ''">HIG_STN_MONEY = #{higStnMoney},</if>
- <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">HIG_STN_MONEY_WTR = #{higStnMoneyWtr},</if>
- <if test="higStnAreaLst != null and higStnAreaLst != ''">HIG_STN_AREA_LST = #{higStnAreaLst},</if>
- <if test="othrStnMoney != null and othrStnMoney != ''">OTHR_STN_MONEY = #{othrStnMoney},</if>
- <if test="smlRunDep != null and smlRunDep != ''">SML_RUN_DEP = #{smlRunDep},</if>
- <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
- <if test="isBulProt != null and isBulProt != ''">IS_BUL_PROT = #{isBulProt},</if>
- <if test="isPrjLdg != null and isPrjLdg != ''">IS_PRJ_LDG = #{isPrjLdg},</if>
- <if test="cunRunType != null and cunRunType != ''">CUN_RUN_TYPE = #{cunRunType},</if>
- <if test="cunRunTypeNote != null and cunRunTypeNote != ''">CUN_RUN_TYPE_NOTE = #{cunRunTypeNote},</if>
- <if test="avgRunMoney != null and avgRunMoney != ''">AVG_RUN_MONEY = #{avgRunMoney},</if>
- <if test="proRunMoney != null and proRunMoney != ''">PRO_RUN_MONEY = #{proRunMoney},</if>
- <if test="cityRunMoney != null and cityRunMoney != ''">CITY_RUN_MONEY = #{cityRunMoney},</if>
- <if test="cunRunMoney != null and cunRunMoney != ''">CUN_RUN_MONEY = #{cunRunMoney},</if>
- <if test="isRunChk != null and isRunChk != ''">IS_RUN_CHK = #{isRunChk},</if>
- <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">WTR_CMP_PRC_AREA = #{wtrCmpPrcArea},</if>
- <if test="hasReformArea != null and hasReformArea != ''">HAS_REFORM_AREA = #{hasReformArea},</if>
- <if test="isWtrPrice != null and isWtrPrice != ''">IS_WTR_PRICE = #{isWtrPrice},</if>
- <if test="wtrPriceRun != null and wtrPriceRun != ''">WTR_PRICE_RUN = #{wtrPriceRun},</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
- <if test="collectWtrp != null and collectWtrp != ''">COLLECT_WTRP = #{collectWtrp},</if>
- <if test="wtrpCollect != null and wtrpCollect != ''">WTRP_COLLECT = #{wtrpCollect},</if>
- <if test="collectMain != null and collectMain != ''">COLLECT_MAIN = #{collectMain},</if>
- <if test="wtrpAvgCube != null and wtrpAvgCube != ''">WTRP_AVG_CUBE = #{wtrpAvgCube},</if>
- <if test="wtrpAvgArea != null and wtrpAvgArea != ''">WTRP_AVG_AREA = #{wtrpAvgArea},</if>
- <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">WTRP_AVG_DEGREE = #{wtrpAvgDegree},</if>
- <if test="wtrpDrc != null and wtrpDrc != ''">WTRP_DRC = #{wtrpDrc},</if>
- <if test="wtrpPblm != null and wtrpPblm != ''">WTRP_PBLM = #{wtrpPblm},</if>
- <if test="comments != null and comments != ''">COMMENTS = #{comments},</if>
- <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
- <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
- <if test="cunCntcName != null and cunCntcName != ''">CUN_CNTC_NAME = #{cunCntcName},</if>
- <if test="cunCntcPhone != null and cunCntcPhone != ''">CUN_CNTC_PHONE = #{cunCntcPhone},</if>
- <if test="rsrchTm != null">RSRCH_TM = #{rsrchTm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</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.BisInspIrrRgstr">
- update BIS_INSP_IRR_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="bulDepNote != null and bulDepNote != ''">BUL_DEP_NOTE = #{bulDepNote},</if>
- <if test="state != null and state != ''">STATE = #{state},</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="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="rurPop != null and rurPop != ''">RUR_POP = #{rurPop},</if>
- <if test="cltArea != null and cltArea != ''">CLT_AREA = #{cltArea},</if>
- <if test="lndfrm != null and lndfrm != ''">LNDFRM = #{lndfrm},</if>
- <if test="irrPrpSrf != null and irrPrpSrf != ''">IRR_PRP_SRF = #{irrPrpSrf},</if>
- <if test="irrPrpGru != null and irrPrpGru != ''">IRR_PRP_GRU = #{irrPrpGru},</if>
- <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
- <if test="higStnArea != null and higStnArea != ''">HIG_STN_AREA = #{higStnArea},</if>
- <if test="actIrrArea != null and actIrrArea != ''">ACT_IRR_AREA = #{actIrrArea},</if>
- <if test="smlIrrSize != null and smlIrrSize != ''">SML_IRR_SIZE = #{smlIrrSize},</if>
- <if test="smlIrrRate != null and smlIrrRate != ''">SML_IRR_RATE = #{smlIrrRate},</if>
- <if test="smlRegSize != null and smlRegSize != ''">SML_REG_SIZE = #{smlRegSize},</if>
- <if test="isCrtPlan != null and isCrtPlan != ''">IS_CRT_PLAN = #{isCrtPlan},</if>
- <if test="isCrtPlanGive != null and isCrtPlanGive != ''">IS_CRT_PLAN_GIVE = #{isCrtPlanGive},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- <if test="smlChanLng != null and smlChanLng != ''">SML_CHAN_LNG = #{smlChanLng},</if>
- <if test="chanLnnLng != null and chanLnnLng != ''">CHAN_LNN_LNG = #{chanLnnLng},</if>
- <if test="pondSize != null and pondSize != ''">POND_SIZE = #{pondSize},</if>
- <if test="pustSize != null and pustSize != ''">PUST_SIZE = #{pustSize},</if>
- <if test="wasSize != null and wasSize != ''">WAS_SIZE = #{wasSize},</if>
- <if test="wellSize != null and wellSize != ''">WELL_SIZE = #{wellSize},</if>
- <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
- <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
- <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
- <if test="effIrrAreaCount != null and effIrrAreaCount != ''">EFF_IRR_AREA_COUNT = #{effIrrAreaCount},</if>
- <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
- <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
- <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
- <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">EFU_IRR_AREA_COUNT = #{efuIrrAreaCount},</if>
- <if test="wtrSttnSize != null and wtrSttnSize != ''">WTR_STTN_SIZE = #{wtrSttnSize},</if>
- <if test="wtrSttnRel != null and wtrSttnRel != ''">WTR_STTN_REL = #{wtrSttnRel},</if>
- <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">WTR_STTN_REL_NOTE = #{wtrSttnRelNote},</if>
- <if test="fwtrSttnSize != null and fwtrSttnSize != ''">FWTR_STTN_SIZE = #{fwtrSttnSize},</if>
- <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">WTR_STTN_POP_SIZE = #{wtrSttnPopSize},</if>
- <if test="wtrSttnProSize != null and wtrSttnProSize != ''">WTR_STTN_PRO_SIZE = #{wtrSttnProSize},</if>
- <if test="rurOrgSize != null and rurOrgSize != ''">RUR_ORG_SIZE = #{rurOrgSize},</if>
- <if test="orgIrrArea != null and orgIrrArea != ''">ORG_IRR_AREA = #{orgIrrArea},</if>
- <if test="villPopSize != null and villPopSize != ''">VILL_POP_SIZE = #{villPopSize},</if>
- <if test="villAvgSize != null and villAvgSize != ''">VILL_AVG_SIZE = #{villAvgSize},</if>
- <if test="wtrSrvcSize != null and wtrSrvcSize != ''">WTR_SRVC_SIZE = #{wtrSrvcSize},</if>
- <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">WTR_SRVC_EVLT = #{wtrSrvcEvlt},</if>
- <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght},</if>
- <if test="smlCnsrSize != null and smlCnsrSize != ''">SML_CNSR_SIZE = #{smlCnsrSize},</if>
- <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">SML_CNSR_STT_SIZE = #{smlCnsrSttSize},</if>
- <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">SML_CNSR_VILL_SIZE = #{smlCnsrVillSize},</if>
- <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize},</if>
- <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">SML_CNSR_POP_SIZE = #{smlCnsrPopSize},</if>
- <if test="bulDep != null and bulDep != ''">BUL_DEP = #{bulDep},</if>
- <if test="higStnMoney != null and higStnMoney != ''">HIG_STN_MONEY = #{higStnMoney},</if>
- <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">HIG_STN_MONEY_WTR = #{higStnMoneyWtr},</if>
- <if test="higStnAreaLst != null and higStnAreaLst != ''">HIG_STN_AREA_LST = #{higStnAreaLst},</if>
- <if test="othrStnMoney != null and othrStnMoney != ''">OTHR_STN_MONEY = #{othrStnMoney},</if>
- <if test="smlRunDep != null and smlRunDep != ''">SML_RUN_DEP = #{smlRunDep},</if>
- <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
- <if test="isBulProt != null and isBulProt != ''">IS_BUL_PROT = #{isBulProt},</if>
- <if test="isPrjLdg != null and isPrjLdg != ''">IS_PRJ_LDG = #{isPrjLdg},</if>
- <if test="cunRunType != null and cunRunType != ''">CUN_RUN_TYPE = #{cunRunType},</if>
- <if test="cunRunTypeNote != null and cunRunTypeNote != ''">CUN_RUN_TYPE_NOTE = #{cunRunTypeNote},</if>
- <if test="avgRunMoney != null and avgRunMoney != ''">AVG_RUN_MONEY = #{avgRunMoney},</if>
- <if test="proRunMoney != null and proRunMoney != ''">PRO_RUN_MONEY = #{proRunMoney},</if>
- <if test="cityRunMoney != null and cityRunMoney != ''">CITY_RUN_MONEY = #{cityRunMoney},</if>
- <if test="cunRunMoney != null and cunRunMoney != ''">CUN_RUN_MONEY = #{cunRunMoney},</if>
- <if test="isRunChk != null and isRunChk != ''">IS_RUN_CHK = #{isRunChk},</if>
- <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">WTR_CMP_PRC_AREA = #{wtrCmpPrcArea},</if>
- <if test="hasReformArea != null and hasReformArea != ''">HAS_REFORM_AREA = #{hasReformArea},</if>
- <if test="isWtrPrice != null and isWtrPrice != ''">IS_WTR_PRICE = #{isWtrPrice},</if>
- <if test="wtrPriceRun != null and wtrPriceRun != ''">WTR_PRICE_RUN = #{wtrPriceRun},</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
- <if test="collectWtrp != null and collectWtrp != ''">COLLECT_WTRP = #{collectWtrp},</if>
- <if test="wtrpCollect != null and wtrpCollect != ''">WTRP_COLLECT = #{wtrpCollect},</if>
- <if test="collectMain != null and collectMain != ''">COLLECT_MAIN = #{collectMain},</if>
- <if test="wtrpAvgCube != null and wtrpAvgCube != ''">WTRP_AVG_CUBE = #{wtrpAvgCube},</if>
- <if test="wtrpAvgArea != null and wtrpAvgArea != ''">WTRP_AVG_AREA = #{wtrpAvgArea},</if>
- <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">WTRP_AVG_DEGREE = #{wtrpAvgDegree},</if>
- <if test="wtrpDrc != null and wtrpDrc != ''">WTRP_DRC = #{wtrpDrc},</if>
- <if test="wtrpPblm != null and wtrpPblm != ''">WTRP_PBLM = #{wtrpPblm},</if>
- <if test="comments != null and comments != ''">COMMENTS = #{comments},</if>
- <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
- <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
- <if test="cunCntcName != null and cunCntcName != ''">CUN_CNTC_NAME = #{cunCntcName},</if>
- <if test="cunCntcPhone != null and cunCntcPhone != ''">CUN_CNTC_PHONE = #{cunCntcPhone},</if>
- <if test="rsrchTm != null">RSRCH_TM = #{rsrchTm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- <select id="findIrrList" parameterType="cn.com.goldenwater.dcproj.param.TypeParam"
- resultType="cn.com.goldenwater.dcproj.dto.BisInspRgstrDto">
- SELECT * FROM (
- select A.CODE,A.ID nodeId,
- A.NM,
- #{pType} PTYPE,
- C.LGTDPC pc_x,
- c.LTTDPC pc_y,
- C.LGTD GD_X,
- C.LTTD GD_y,
- A.OBJ_ID,B.ID ID,b.id as rgstrId,
- (case when b.State is null then '0' else b.state end)STATE
- ,B.INTM,
- c.ad_full_name as adName,
- ia.pnm groupName,b.ad_code
- from BIS_INSP_ALL_OBJ
- A LEFT JOIN BIS_INSP_IRR_RGSTR B ON A.OBJ_ID=B.OBJ_ID
- LEFT JOIN ATT_AD_X_BASE C ON B.Ad_CODE=C.AD_CODE
- LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
- where A.ptype= #{pType}
- <if test="tabType =='2'.toString()">
- and ia.entm <to_date(#{nowTime},'yyyy-MM-dd')+1
- </if>
- <if test="tabType =='1'.toString()">
- and ia.entm >=to_date(#{nowTime},'yyyy-MM-dd')
- </if>
- <if test="adCodes ==null or adCodes ==''">
- and
- A.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{presId} and TYPE = #{pType} and length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{presId} and TYPE = #{pType} and length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- </if>
- <if test="poorCountry != null and poorCountry != ''">
- and (case when b.POOR_COUNTRY is null then c.IS_REPORT else b.POOR_COUNTRY end ) = #{poorCountry}
- </if>
- <if test="adCode != null and adCode != ''">
- and b.ad_code like '${adCode}%'
- </if>
- ) A WHERE a.PTYPE=#{pType}
- <if test="plnaId !=null and plnaId !=''">
- and a.nodeId like '${plnaId}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE in (${state})
- </if>
- <if test="rsName !=null and rsName !=''">
- and a.nm like '%${rsName}%'
- </if>
- <if test="code !=null and code !=''">
- and a.code = #{code}
- </if>
- <if test="adName != null and adName != ''">and a.adName like '%${adName}%'</if>
- <if test="sttm != null and sttm != ''">and a.INTM>= TO_DATE(#{sttm},'YYYY-MM-DD')</if>
- <if test="entm != null and entm != ''">and a.INTM < To_DATE(#{entm},'yyyy-MM-dd') + 1</if>
- <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
- <if test="adCodes !=null and adCodes !=''">
- and
- <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
- ad_code like concat('${item}','%')
- </foreach>
- </if>
- order by nodeId asc
- <if test="orderBy != null and orderBy != ''">
- ,nlssort(nm,'NLS_SORT=SCHINESE_PINYIN_M')
- </if>
- </select>
- <select id="getIrrVillList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
- select * from (
- select t.id as code,t.ad_name as nm,
- (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
- (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
- (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
- (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
- t.obj_id,t.ad_code,t.rgstr_id,t.state
- from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
- left join bis_insp_all_obj o on t.obj_id = o.obj_id
- where t.data_stat = '0' and substr(t.ad_code,10) != '000' and o.ptype = '28'
- and
- o.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{persGuid} and TYPE = '28' and length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- ) w where 1=1
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="adCode != null and adCode != ''">
- and w.ad_code like '${adCode}%'
- </if>
- <if test="rsName != null and rsName != ''">
- and t.nm like '%${rsName}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE in (${state})
- </if>
- </select>
- <select id="getIrrTownList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
- select * from (
- select t.id as code,t.ad_name as nm,
- (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
- (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
- (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
- (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
- t.obj_id,t.ad_code,t.rgstr_id,t.state
- from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
- left join bis_insp_all_obj o on t.obj_id = o.obj_id
- where t.data_stat = '0' and substr(t.ad_code,10) = '000' and o.ptype = '28'
- and
- o.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{persGuid} and TYPE = '28' and length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- ) w where 1=1
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="adCode != null and adCode != ''">
- and w.ad_code like '${adCode}%'
- </if>
- <if test="rsName != null and rsName != ''">
- and t.nm like '%${rsName}%'
- </if>
- <if test="state !=null and state != ''">
- and state in (${state})
- </if>
- </select>
- <select id="getIrrWtusrList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
- select * from (
- select t.id as code,t.USWT_NAME as nm,USWT_PHONE as phone,
- (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
- (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
- (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
- (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
- t.obj_id,t.ad_code,t.rgstr_id,t.state
- from BIS_INSP_IRR_WTUSR t left join att_ad_x_base ba on t.ad_code = ba.ad_code
- left join bis_insp_all_obj o on t.obj_id = o.obj_id
- where t.data_stat = '0' and o.ptype = '28'
- and
- o.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{persGuid} and length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{persGuid} and length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- ) w where 1=1
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="adCode != null and adCode != ''">
- and w.ad_code like '${adCode}%'
- </if>
- <if test="rsName != null and rsName != ''">
- and t.nm like '%${rsName}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE in (${state})
- </if>
- </select>
- <select id="getIrrProList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
- select * from (
- select t.id as code,t.name as nm,t.type as type,
- (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
- (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
- (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
- (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
- t.obj_id,t.ad_code,t.rgstr_id,t.state
- from view_irr_list t left join att_ad_x_base ba on t.ad_code = ba.ad_code
- left join bis_insp_all_obj o on t.obj_id = o.obj_id
- where o.ptype = '28'
- and
- o.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{persGuid} and length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{persGuid} and length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- ) w where 1=1
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="adCode != null and adCode != ''">
- and w.ad_code like '${adCode}%'
- </if>
- <if test="rsName != null and rsName != ''">
- and t.nm like '%${rsName}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE in (${state})
- </if>
- </select>
- <select id="getIrrBaseList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
- select * from (
- select t.id as code,t.IRR_NAME as nm,t.ad_code,
- (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
- (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
- (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
- (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd
- from ATT_IRR_BASE t left join att_ad_x_base ba on t.ad_code = ba.ad_code
- where t.data_stat = '0'
- <if test="irrEngScal != null and irrEngScal != ''">
- and t.IRR_ENG_SCAL in (${irrEngScal})
- </if>
- ) w where 1=1
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="adCode != null and adCode != ''">
- and w.ad_code like '${adCode}%'
- </if>
- <if test="rsName != null and rsName != ''">
- and t.nm like '%${rsName}%'
- </if>
- </select>
- <sql id="choseSql">
- <choose>
- <when test="province !=null and province !=''">
- AND ad_code=#{province}
- </when>
- <otherwise>
- AND ad_code is null
- </otherwise>
- </choose>
- </sql>
- <select id="getObjListNotInspGroupId" parameterType="String" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase">
- select t.*
- from att_irr_base t
- where t.id not in (
- select CODE from BIS_INSP_ALL_OBJ B where id like concat(#{inspGroupId},'%') and B.obj_type=#{objType}
- <choose>
- <when test="province !=null and province !=''">
- and B.AD_CODE =#{province}
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- )
- <if test="adName != null and adName != ''">and t.nm LIKE '%${adName}%'</if>
- <if test="adCode != null and adCode != ''">and t.AD_CODE LIKE '${adCode}%'</if>
- </select>
- <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase" parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
- select t.*,C.id groupId,C.PNM groupName,B.obj_id,r.ad_full_name as loc
- from att_irr_base t
- left join BIS_INSP_ALL_OBJ B
- on B.CODE = t.id
- LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
- and B.ptype ='28'
- left join bis_insp_irr_rgstr r on b.obj_id=r.obj_id
- where 1 = 1
- <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
- <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
- <if test="adCode != null and adCode != ''">
- and t.AD_CODE like '${adCode}%'
- </if>
- <choose>
- <when test="province != null and province != ''">
- and B.AD_CODE LIKE '${province}%'
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- </select>
- </mapper>
|