| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491 |
- <?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.BisInspIrrWtusrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr" id="bisInspIrrWtusrResultMap">
- <result property="wtrCause" column="WTR_CAUSE"/>
- <result property="grainOutput" column="GRAIN_OUTPUT"/>
- <result property="isYearLimit" column="IS_YEAR_LIMIT"/>
- <result property="lackGrainOutput" column="LACK_GRAIN_OUTPUT"/>
- <result property="isQuota" column="IS_QUOTA"/>
- <result property="isTend" column="IS_TEND"/>
- <result property="inTend" column="IN_TEND"/>
- <result property="tendNot" column="TEND_NOT"/>
- <result property="tendNotNote" column="TEND_NOT_NOTE"/>
- <result property="isOwnshp" column="IS_OWNSHP"/>
- <result property="isOwnshpTend" column="IS_OWNSHP_TEND"/>
- <result property="whoTend" column="WHO_TEND"/>
- <result property="isPrjBuld" column="IS_PRJ_BULD"/>
- <result property="buldType" column="BULD_TYPE"/>
- <result property="whoBuldPrj" column="WHO_BULD_PRJ"/>
- <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="efuIrrAreaPipe" column="EFU_IRR_AREA_PIPE"/>
- <result property="efuIrrAreaSprn" column="EFU_IRR_AREA_SPRN"/>
- <result property="efuIrrAreaMicro" column="EFU_IRR_AREA_MICRO"/>
- <result property="unusdReason" column="UNUSD_REASON"/>
- <result property="isCollectWtrp" column="IS_COLLECT_WTRP"/>
- <result property="formMeasur" column="FORM_MEASUR"/>
- <result property="wtrpStndType" column="WTRP_STND_TYPE"/>
- <result property="wtrpStndVal" column="WTRP_STND_VAL"/>
- <result property="wtrpStndOthr" column="WTRP_STND_OTHR"/>
- <result property="prjNotTend" column="PRJ_NOT_TEND"/>
- <result property="prjPblmArea" column="PRJ_PBLM_AREA"/>
- <result property="note" column="NOTE"/>
- <result property="invsrName" column="INVSR_NAME"/>
- <result property="invsrPhone" column="INVSR_PHONE"/>
- <result property="invsrTm" column="INVSR_TM"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="state" column="STATE"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="uswtName" column="USWT_NAME"/>
- <result property="uswtPhone" column="USWT_PHONE"/>
- <result property="irrCode" column="IRR_CODE"/>
- <result property="irrName" column="IRR_NAME"/>
- <result property="effIrrArea" column="EFF_IRR_AREA"/>
- <result property="efwIrrArea" column="EFW_IRR_AREA"/>
- <result property="mainCrops" column="MAIN_CROPS"/>
- <result property="irrPrjType" column="IRR_PRJ_TYPE"/>
- <result property="irrOrgType" column="IRR_ORG_TYPE"/>
- <result property="irrWtrType" column="IRR_WTR_TYPE"/>
- <result property="husHldIne" column="HUS_HLD_INE"/>
- <result property="lndHldIne" column="LND_HLD_INE"/>
- <result property="isFillWtr" column="IS_FILL_WTR"/>
- <result property="isFulllWtr" column="IS_FULLL_WTR"/>
- <result property="isDrnWtr" column="IS_DRN_WTR"/>
- <result property="prjPbmArea" column="PRJ_PBM_AREA"/>
- <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="prjNotTendNote" column="PRJ_NOT_TEND_NOTE"/>
- <result property="tendNotReason" column="TEND_NOT_REASON"/>
- <result property="tendNotReasonNote" column="TEND_NOT_REASON_NOTE"/>
- <result property="inTendType" column="IN_TEND_TYPE"/>
- <result property="ifEffIrr" column="IF_EFF_IRR"/>
- <result property="ifAllUsed" column="IF_ALL_USED"/>
- </resultMap>
- <sql id="table_columns">
- IF_EFF_IRR,
- IF_ALL_USED,
- TEND_NOT_REASON,
- TEND_NOT_REASON_NOTE,
- IN_TEND_TYPE,
- PRJ_NOT_TEND_NOTE,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- WTR_CAUSE,
- GRAIN_OUTPUT,
- IS_YEAR_LIMIT,
- LACK_GRAIN_OUTPUT,
- IS_QUOTA,
- IS_TEND,
- IN_TEND,
- TEND_NOT,
- TEND_NOT_NOTE,
- IS_OWNSHP,
- IS_OWNSHP_TEND,
- WHO_TEND,
- IS_PRJ_BULD,
- BULD_TYPE,
- WHO_BULD_PRJ,
- EFF_IRR_AREA_PIPE,
- EFF_IRR_AREA_SPRN,
- EFF_IRR_AREA_MICRO,
- EFU_IRR_AREA_PIPE,
- EFU_IRR_AREA_SPRN,
- EFU_IRR_AREA_MICRO,
- UNUSD_REASON,
- IS_COLLECT_WTRP,
- FORM_MEASUR,
- WTRP_STND_TYPE,
- WTRP_STND_VAL,
- WTRP_STND_OTHR,
- PRJ_NOT_TEND,
- PRJ_PBLM_AREA,
- NOTE,
- INVSR_NAME,
- INVSR_PHONE,
- INVSR_TM,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE,
- ID,
- RGSTR_ID,
- OBJ_ID,
- AD_CODE,
- AD_NAME,
- USWT_NAME,
- USWT_PHONE,
- IRR_CODE,
- IRR_NAME,
- EFF_IRR_AREA,
- EFW_IRR_AREA,
- MAIN_CROPS,
- IRR_PRJ_TYPE,
- IRR_ORG_TYPE,
- IRR_WTR_TYPE,
- HUS_HLD_INE,
- LND_HLD_INE,
- IS_FILL_WTR,
- IS_FULLL_WTR,
- IS_DRN_WTR,
- PRJ_PBM_AREA
- </sql>
- <sql id="entity_properties">
- #{ifEffIrr},
- #{ifAllUsed},
- #{tendNotReason},
- #{tendNotReasonNote},
- #{inTendType},
- #{prjNotTendNote},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{wtrCause},
- #{grainOutput},
- #{isYearLimit},
- #{lackGrainOutput},
- #{isQuota},
- #{isTend},
- #{inTend},
- #{tendNot},
- #{tendNotNote},
- #{isOwnshp},
- #{isOwnshpTend},
- #{whoTend},
- #{isPrjBuld},
- #{buldType},
- #{whoBuldPrj},
- #{effIrrAreaPipe},
- #{effIrrAreaSprn},
- #{effIrrAreaMicro},
- #{efuIrrAreaPipe},
- #{efuIrrAreaSprn},
- #{efuIrrAreaMicro},
- #{unusdReason},
- #{isCollectWtrp},
- #{formMeasur},
- #{wtrpStndType},
- #{wtrpStndVal},
- #{wtrpStndOthr},
- #{prjNotTend},
- #{prjPblmArea},
- #{note},
- #{invsrName},
- #{invsrPhone},
- #{invsrTm},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{state},
- #{id},
- #{rgstrId},
- #{objId},
- #{adCode},
- #{adName},
- #{uswtName},
- #{uswtPhone},
- #{irrCode},
- #{irrName},
- #{effIrrArea},
- #{efwIrrArea},
- #{mainCrops},
- #{irrPrjType},
- #{irrOrgType},
- #{irrWtrType},
- #{husHldIne},
- #{lndHldIne},
- #{isFillWtr},
- #{isFulllWtr},
- #{isDrnWtr},
- #{prjPbmArea}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="ifEffIrr != null and ifEffIrr != ''">and IF_EFF_IRR = #{ifEffIrr}</if>
- <if test="ifAllUsed != null and ifAllUsed != ''">and IF_ALL_USED = #{ifAllUsed}</if>
- <if test="tendNotReason != null and tendNotReason != ''">and TEND_NOT_REASON = #{tendNotReason}</if>
- <if test="tendNotReasonNote != null and tendNotReasonNote != ''">and TEND_NOT_REASON_NOTE = #{tendNotReasonNote}</if>
- <if test="inTendType != null and inTendType != ''">and IN_TEND_TYPE = #{inTendType}</if>
- <if test="prjNotTendNote != null and prjNotTendNote != ''">and PRJ_NOT_TEND_NOTE = #{prjNotTendNote}</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="wtrCause != null and wtrCause != ''">and WTR_CAUSE = #{wtrCause}</if>
- <if test="grainOutput != null and grainOutput != ''">and GRAIN_OUTPUT = #{grainOutput}</if>
- <if test="isYearLimit != null and isYearLimit != ''">and IS_YEAR_LIMIT = #{isYearLimit}</if>
- <if test="lackGrainOutput != null and lackGrainOutput != ''">and LACK_GRAIN_OUTPUT = #{lackGrainOutput}</if>
- <if test="isQuota != null and isQuota != ''">and IS_QUOTA = #{isQuota}</if>
- <if test="isTend != null and isTend != ''">and IS_TEND = #{isTend}</if>
- <if test="inTend != null and inTend != ''">and IN_TEND = #{inTend}</if>
- <if test="tendNot != null and tendNot != ''">and TEND_NOT = #{tendNot}</if>
- <if test="tendNotNote != null and tendNotNote != ''">and TEND_NOT_NOTE = #{tendNotNote}</if>
- <if test="isOwnshp != null and isOwnshp != ''">and IS_OWNSHP = #{isOwnshp}</if>
- <if test="isOwnshpTend != null and isOwnshpTend != ''">and IS_OWNSHP_TEND = #{isOwnshpTend}</if>
- <if test="whoTend != null and whoTend != ''">and WHO_TEND = #{whoTend}</if>
- <if test="isPrjBuld != null and isPrjBuld != ''">and IS_PRJ_BULD = #{isPrjBuld}</if>
- <if test="buldType != null and buldType != ''">and BULD_TYPE = #{buldType}</if>
- <if test="whoBuldPrj != null and whoBuldPrj != ''">and WHO_BULD_PRJ = #{whoBuldPrj}</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="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="unusdReason != null and unusdReason != ''">and UNUSD_REASON = #{unusdReason}</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">and IS_COLLECT_WTRP = #{isCollectWtrp}</if>
- <if test="formMeasur != null and formMeasur != ''">and FORM_MEASUR = #{formMeasur}</if>
- <if test="wtrpStndType != null and wtrpStndType != ''">and WTRP_STND_TYPE = #{wtrpStndType}</if>
- <if test="wtrpStndVal != null and wtrpStndVal != ''">and WTRP_STND_VAL = #{wtrpStndVal}</if>
- <if test="wtrpStndOthr != null and wtrpStndOthr != ''">and WTRP_STND_OTHR = #{wtrpStndOthr}</if>
- <if test="prjNotTend != null and prjNotTend != ''">and PRJ_NOT_TEND = #{prjNotTend}</if>
- <if test="prjPblmArea != null and prjPblmArea != ''">and PRJ_PBLM_AREA = #{prjPblmArea}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</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="invsrTm != null">and INVSR_TM = #{invsrTm}</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="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</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="uswtName != null and uswtName != ''">and USWT_NAME like concat('%',concat(#{uswtName},'%'))</if>
- <if test="uswtPhone != null and uswtPhone != ''">and USWT_PHONE = #{uswtPhone}</if>
- <if test="irrCode != null and irrCode != ''">and IRR_CODE = #{irrCode}</if>
- <if test="irrName != null and irrName != ''">and IRR_NAME = #{irrName}</if>
- <if test="effIrrArea != null and effIrrArea != ''">and EFF_IRR_AREA = #{effIrrArea}</if>
- <if test="efwIrrArea != null and efwIrrArea != ''">and EFW_IRR_AREA = #{efwIrrArea}</if>
- <if test="mainCrops != null and mainCrops != ''">and MAIN_CROPS = #{mainCrops}</if>
- <if test="irrPrjType != null and irrPrjType != ''">and IRR_PRJ_TYPE = #{irrPrjType}</if>
- <if test="irrOrgType != null and irrOrgType != ''">and IRR_ORG_TYPE = #{irrOrgType}</if>
- <if test="irrWtrType != null and irrWtrType != ''">and IRR_WTR_TYPE = #{irrWtrType}</if>
- <if test="husHldIne != null and husHldIne != ''">and HUS_HLD_INE = #{husHldIne}</if>
- <if test="lndHldIne != null and lndHldIne != ''">and LND_HLD_INE = #{lndHldIne}</if>
- <if test="isFillWtr != null and isFillWtr != ''">and IS_FILL_WTR = #{isFillWtr}</if>
- <if test="isFulllWtr != null and isFulllWtr != ''">and IS_FULLL_WTR = #{isFulllWtr}</if>
- <if test="isDrnWtr != null and isDrnWtr != ''">and IS_DRN_WTR = #{isDrnWtr}</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">and PRJ_PBM_AREA = #{prjPbmArea}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspIrrWtusrResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspIrrWtusrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspIrrWtusrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR
- </select>
- <select id="findList" resultMap="bisInspIrrWtusrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_IRR_WTUSR <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
- insert into BIS_INSP_IRR_WTUSR( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_IRR_WTUSR set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
- update BIS_INSP_IRR_WTUSR set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_IRR_WTUSR set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
- update BIS_INSP_IRR_WTUSR
- <trim prefix="set" suffixOverrides=",">
- <if test="ifEffIrr != null and ifEffIrr != ''">IF_EFF_IRR = #{ifEffIrr},</if>
- <if test="ifAllUsed != null and ifAllUsed != ''">IF_ALL_USED = #{ifAllUsed},</if>
- <if test="tendNotReason != null and tendNotReason != ''">TEND_NOT_REASON = #{tendNotReason},</if>
- <if test="tendNotReasonNote != null and tendNotReasonNote != ''">TEND_NOT_REASON_NOTE = #{tendNotReasonNote},</if>
- <if test="inTendType != null and inTendType != ''">IN_TEND_TYPE = #{inTendType},</if>
- <if test="prjNotTendNote != null and prjNotTendNote != ''">PRJ_NOT_TEND_NOTE = #{prjNotTendNote},</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="wtrCause != null and wtrCause != ''">WTR_CAUSE = #{wtrCause},</if>
- <if test="grainOutput != null and grainOutput != ''">GRAIN_OUTPUT = #{grainOutput},</if>
- <if test="isYearLimit != null and isYearLimit != ''">IS_YEAR_LIMIT = #{isYearLimit},</if>
- <if test="lackGrainOutput != null and lackGrainOutput != ''">LACK_GRAIN_OUTPUT = #{lackGrainOutput},</if>
- <if test="isQuota != null and isQuota != ''">IS_QUOTA = #{isQuota},</if>
- <if test="isTend != null and isTend != ''">IS_TEND = #{isTend},</if>
- <if test="inTend != null and inTend != ''">IN_TEND = #{inTend},</if>
- <if test="tendNot != null and tendNot != ''">TEND_NOT = #{tendNot},</if>
- <if test="tendNotNote != null and tendNotNote != ''">TEND_NOT_NOTE = #{tendNotNote},</if>
- <if test="isOwnshp != null and isOwnshp != ''">IS_OWNSHP = #{isOwnshp},</if>
- <if test="isOwnshpTend != null and isOwnshpTend != ''">IS_OWNSHP_TEND = #{isOwnshpTend},</if>
- <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
- <if test="isPrjBuld != null and isPrjBuld != ''">IS_PRJ_BULD = #{isPrjBuld},</if>
- <if test="buldType != null and buldType != ''">BULD_TYPE = #{buldType},</if>
- <if test="whoBuldPrj != null and whoBuldPrj != ''">WHO_BULD_PRJ = #{whoBuldPrj},</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="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="unusdReason != null and unusdReason != ''">UNUSD_REASON = #{unusdReason},</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
- <if test="formMeasur != null and formMeasur != ''">FORM_MEASUR = #{formMeasur},</if>
- <if test="wtrpStndType != null and wtrpStndType != ''">WTRP_STND_TYPE = #{wtrpStndType},</if>
- <if test="wtrpStndVal != null and wtrpStndVal != ''">WTRP_STND_VAL = #{wtrpStndVal},</if>
- <if test="wtrpStndOthr != null and wtrpStndOthr != ''">WTRP_STND_OTHR = #{wtrpStndOthr},</if>
- <if test="prjNotTend != null and prjNotTend != ''">PRJ_NOT_TEND = #{prjNotTend},</if>
- <if test="prjPblmArea != null and prjPblmArea != ''">PRJ_PBLM_AREA = #{prjPblmArea},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
- <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
- <if test="invsrTm != null">INVSR_TM = #{invsrTm},</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="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="uswtName != null and uswtName != ''">USWT_NAME = #{uswtName},</if>
- <if test="uswtPhone != null and uswtPhone != ''">USWT_PHONE = #{uswtPhone},</if>
- <if test="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
- <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
- <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
- <if test="efwIrrArea != null and efwIrrArea != ''">EFW_IRR_AREA = #{efwIrrArea},</if>
- <if test="mainCrops != null and mainCrops != ''">MAIN_CROPS = #{mainCrops},</if>
- <if test="irrPrjType != null and irrPrjType != ''">IRR_PRJ_TYPE = #{irrPrjType},</if>
- <if test="irrOrgType != null and irrOrgType != ''">IRR_ORG_TYPE = #{irrOrgType},</if>
- <if test="irrWtrType != null and irrWtrType != ''">IRR_WTR_TYPE = #{irrWtrType},</if>
- <if test="husHldIne != null and husHldIne != ''">HUS_HLD_INE = #{husHldIne},</if>
- <if test="lndHldIne != null and lndHldIne != ''">LND_HLD_INE = #{lndHldIne},</if>
- <if test="isFillWtr != null and isFillWtr != ''">IS_FILL_WTR = #{isFillWtr},</if>
- <if test="isFulllWtr != null and isFulllWtr != ''">IS_FULLL_WTR = #{isFulllWtr},</if>
- <if test="isDrnWtr != null and isDrnWtr != ''">IS_DRN_WTR = #{isDrnWtr},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
- update BIS_INSP_IRR_WTUSR
- <trim prefix="set" suffixOverrides=",">
- <if test="ifEffIrr != null and ifEffIrr != ''">IF_EFF_IRR = #{ifEffIrr},</if>
- <if test="ifAllUsed != null and ifAllUsed != ''">IF_ALL_USED = #{ifAllUsed},</if>
- <if test="tendNotReason != null and tendNotReason != ''">TEND_NOT_REASON = #{tendNotReason},</if>
- <if test="tendNotReasonNote != null and tendNotReasonNote != ''">TEND_NOT_REASON_NOTE = #{tendNotReasonNote},</if>
- <if test="inTendType != null and inTendType != ''">IN_TEND_TYPE = #{inTendType},</if>
- <if test="prjNotTendNote != null and prjNotTendNote != ''">PRJ_NOT_TEND_NOTE = #{prjNotTendNote},</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="wtrCause != null and wtrCause != ''">WTR_CAUSE = #{wtrCause},</if>
- <if test="grainOutput != null and grainOutput != ''">GRAIN_OUTPUT = #{grainOutput},</if>
- <if test="isYearLimit != null and isYearLimit != ''">IS_YEAR_LIMIT = #{isYearLimit},</if>
- <if test="lackGrainOutput != null and lackGrainOutput != ''">LACK_GRAIN_OUTPUT = #{lackGrainOutput},</if>
- <if test="isQuota != null and isQuota != ''">IS_QUOTA = #{isQuota},</if>
- <if test="isTend != null and isTend != ''">IS_TEND = #{isTend},</if>
- <if test="inTend != null and inTend != ''">IN_TEND = #{inTend},</if>
- <if test="tendNot != null and tendNot != ''">TEND_NOT = #{tendNot},</if>
- <if test="tendNotNote != null and tendNotNote != ''">TEND_NOT_NOTE = #{tendNotNote},</if>
- <if test="isOwnshp != null and isOwnshp != ''">IS_OWNSHP = #{isOwnshp},</if>
- <if test="isOwnshpTend != null and isOwnshpTend != ''">IS_OWNSHP_TEND = #{isOwnshpTend},</if>
- <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
- <if test="isPrjBuld != null and isPrjBuld != ''">IS_PRJ_BULD = #{isPrjBuld},</if>
- <if test="buldType != null and buldType != ''">BULD_TYPE = #{buldType},</if>
- <if test="whoBuldPrj != null and whoBuldPrj != ''">WHO_BULD_PRJ = #{whoBuldPrj},</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="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="unusdReason != null and unusdReason != ''">UNUSD_REASON = #{unusdReason},</if>
- <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
- <if test="formMeasur != null and formMeasur != ''">FORM_MEASUR = #{formMeasur},</if>
- <if test="wtrpStndType != null and wtrpStndType != ''">WTRP_STND_TYPE = #{wtrpStndType},</if>
- <if test="wtrpStndVal != null and wtrpStndVal != ''">WTRP_STND_VAL = #{wtrpStndVal},</if>
- <if test="wtrpStndOthr != null and wtrpStndOthr != ''">WTRP_STND_OTHR = #{wtrpStndOthr},</if>
- <if test="prjNotTend != null and prjNotTend != ''">PRJ_NOT_TEND = #{prjNotTend},</if>
- <if test="prjPblmArea != null and prjPblmArea != ''">PRJ_PBLM_AREA = #{prjPblmArea},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
- <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
- <if test="invsrTm != null">INVSR_TM = #{invsrTm},</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="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="uswtName != null and uswtName != ''">USWT_NAME = #{uswtName},</if>
- <if test="uswtPhone != null and uswtPhone != ''">USWT_PHONE = #{uswtPhone},</if>
- <if test="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
- <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
- <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
- <if test="efwIrrArea != null and efwIrrArea != ''">EFW_IRR_AREA = #{efwIrrArea},</if>
- <if test="mainCrops != null and mainCrops != ''">MAIN_CROPS = #{mainCrops},</if>
- <if test="irrPrjType != null and irrPrjType != ''">IRR_PRJ_TYPE = #{irrPrjType},</if>
- <if test="irrOrgType != null and irrOrgType != ''">IRR_ORG_TYPE = #{irrOrgType},</if>
- <if test="irrWtrType != null and irrWtrType != ''">IRR_WTR_TYPE = #{irrWtrType},</if>
- <if test="husHldIne != null and husHldIne != ''">HUS_HLD_INE = #{husHldIne},</if>
- <if test="lndHldIne != null and lndHldIne != ''">LND_HLD_INE = #{lndHldIne},</if>
- <if test="isFillWtr != null and isFillWtr != ''">IS_FILL_WTR = #{isFillWtr},</if>
- <if test="isFulllWtr != null and isFulllWtr != ''">IS_FULLL_WTR = #{isFulllWtr},</if>
- <if test="isDrnWtr != null and isDrnWtr != ''">IS_DRN_WTR = #{isDrnWtr},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|