| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?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.BisInspIrrWellDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrWell" id="bisInspIrrWellResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="code" column="CODE"/>
- <result property="name" column="NAME"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="sour" column="SOUR"/>
- <result property="compDate" column="COMP_DATE"/>
- <result property="wellDep" column="WELL_DEP"/>
- <result property="desQ" column="DES_Q"/>
- <result property="irrArea" column="IRR_AREA"/>
- <result property="higStnType" column="HIG_STN_TYPE"/>
- <result property="prjPbmArea" column="PRJ_PBM_AREA"/>
- <result property="prjWhoTend" column="PRJ_WHO_TEND"/>
- <result property="prjUsrType" column="PRJ_USR_TYPE"/>
- <result property="whoTend" column="WHO_TEND"/>
- <result property="isTendRcrd" column="IS_TEND_RCRD"/>
- <result property="tendRcrdType" column="TEND_RCRD_TYPE"/>
- <result property="isRun" column="IS_RUN"/>
- <result property="notRunType" column="NOT_RUN_TYPE"/>
- <result property="notRunNote" column="NOT_RUN_NOTE"/>
- <result property="isOutAll" column="IS_OUT_ALL"/>
- <result property="isBulAll" column="IS_BUL_ALL"/>
- <result property="isAll" column="IS_ALL"/>
- <result property="isOutReq" column="IS_OUT_REQ"/>
- <result property="isOutSdmt" column="IS_OUT_SDMT"/>
- <result property="evaluate" column="EVALUATE"/>
- <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="centerX" column="CENTER_X"/>
- <result property="centerY" column="CENTER_Y"/>
- <result property="gdX" column="GD_X"/>
- <result property="gdY" column="GD_Y"/>
- <result property="sourNote" column="SOUR_NOTE"/>
- <result property="prjWhoTendNote" column="PRJ_WHO_TEND_NOTE"/>
- <result property="isAllNote" column="IS_ALL_NOTE"/>
- <result property="isAllBillType" column="IS_ALL_BILL_TYPE"/>
- <result property="isCurryearComp" column="IS_CURRYEAR_COMP"/>
- <result property="beforeCurryearComp" column="BEFROE_CURRYEAR"/>
- <result property="afterCurryearComp" column="AFTER_CURRYEAR"/>
- </resultMap>
- <sql id="table_columns">
- IS_CURRYEAR_COMP,
- BEFROE_CURRYEAR,
- AFTER_CURRYEAR,
- SOUR_NOTE,
- PRJ_WHO_TEND_NOTE,
- IS_ALL_NOTE,
- IS_ALL_BILL_TYPE,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- ID,
- RGSTR_ID,
- OBJ_ID,
- CODE,
- NAME,
- AD_CODE,
- AD_NAME,
- SOUR,
- COMP_DATE,
- WELL_DEP,
- DES_Q,
- IRR_AREA,
- HIG_STN_TYPE,
- PRJ_PBM_AREA,
- PRJ_WHO_TEND,
- PRJ_USR_TYPE,
- WHO_TEND,
- IS_TEND_RCRD,
- TEND_RCRD_TYPE,
- IS_RUN,
- NOT_RUN_TYPE,
- NOT_RUN_NOTE,
- IS_OUT_ALL,
- IS_BUL_ALL,
- IS_ALL,
- IS_OUT_REQ,
- IS_OUT_SDMT,
- EVALUATE,
- NOTE,
- INVSR_NAME,
- INVSR_PHONE,
- INVSR_TM,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{isCurryearComp},
- #{beforeCurryearComp},
- #{afterCurryearComp},
- #{sourNote},
- #{prjWhoTendNote},
- #{isAllNote},
- #{isAllBillType},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{id},
- #{rgstrId},
- #{objId},
- #{code},
- #{name},
- #{adCode},
- #{adName},
- #{sour},
- #{compDate},
- #{wellDep},
- #{desQ},
- #{irrArea},
- #{higStnType},
- #{prjPbmArea},
- #{prjWhoTend},
- #{prjUsrType},
- #{whoTend},
- #{isTendRcrd},
- #{tendRcrdType},
- #{isRun},
- #{notRunType},
- #{notRunNote},
- #{isOutAll},
- #{isBulAll},
- #{isAll},
- #{isOutReq},
- #{isOutSdmt},
- #{evaluate},
- #{note},
- #{invsrName},
- #{invsrPhone},
- #{invsrTm},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{state}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="isCurryearComp != null and isCurryearComp != ''">and IS_CURRYEAR_COMP = #{isCurryearComp}</if>
- <if test="beforeCurryearComp != null and beforeCurryearComp != ''">and BEFROE_CURRYEAR = #{beforeCurryearComp}</if>
- <if test="afterCurryearComp != null and afterCurryearComp != ''">and AFTER_CURRYEAR = #{afterCurryearComp}</if>
- <if test="sourNote != null and sourNote != ''">and SOUR_NOTE = #{sourNote}</if>
- <if test="prjWhoTendNote != null and prjWhoTendNote != ''">and PRJ_WHO_TEND_NOTE = #{prjWhoTendNote}</if>
- <if test="isAllNote != null and isAllNote != ''">and IS_ALL_NOTE = #{isAllNote}</if>
- <if test="isAllBillType != null and isAllBillType != ''">and IS_ALL_BILL_TYPE = #{isAllBillType}</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="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="code != null and code != ''">and CODE = #{code}</if>
- <if test="name != null and name != ''">and NAME like concat('%',concat(#{name},'%'))</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="sour != null and sour != ''">and SOUR = #{sour}</if>
- <if test="compDate != null and compDate != ''">and COMP_DATE = #{compDate}</if>
- <if test="wellDep != null and wellDep != ''">and WELL_DEP = #{wellDep}</if>
- <if test="desQ != null and desQ != ''">and DES_Q = #{desQ}</if>
- <if test="irrArea != null and irrArea != ''">and IRR_AREA = #{irrArea}</if>
- <if test="higStnType != null and higStnType != ''">and HIG_STN_TYPE = #{higStnType}</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">and PRJ_PBM_AREA = #{prjPbmArea}</if>
- <if test="prjWhoTend != null and prjWhoTend != ''">and PRJ_WHO_TEND = #{prjWhoTend}</if>
- <if test="prjUsrType != null and prjUsrType != ''">and PRJ_USR_TYPE = #{prjUsrType}</if>
- <if test="whoTend != null and whoTend != ''">and WHO_TEND = #{whoTend}</if>
- <if test="isTendRcrd != null and isTendRcrd != ''">and IS_TEND_RCRD = #{isTendRcrd}</if>
- <if test="tendRcrdType != null and tendRcrdType != ''">and TEND_RCRD_TYPE = #{tendRcrdType}</if>
- <if test="isRun != null and isRun != ''">and IS_RUN = #{isRun}</if>
- <if test="notRunType != null and notRunType != ''">and NOT_RUN_TYPE = #{notRunType}</if>
- <if test="notRunNote != null and notRunNote != ''">and NOT_RUN_NOTE = #{notRunNote}</if>
- <if test="isOutAll != null and isOutAll != ''">and IS_OUT_ALL = #{isOutAll}</if>
- <if test="isBulAll != null and isBulAll != ''">and IS_BUL_ALL = #{isBulAll}</if>
- <if test="isAll != null and isAll != ''">and IS_ALL = #{isAll}</if>
- <if test="isOutReq != null and isOutReq != ''">and IS_OUT_REQ = #{isOutReq}</if>
- <if test="isOutSdmt != null and isOutSdmt != ''">and IS_OUT_SDMT = #{isOutSdmt}</if>
- <if test="evaluate != null and evaluate != ''">and EVALUATE = #{evaluate}</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>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspIrrWellResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_IRR_WELL where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspIrrWellResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WELL <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspIrrWellResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WELL
- </select>
- <select id="findList" resultMap="bisInspIrrWellResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_WELL <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_IRR_WELL <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWell">
- insert into BIS_INSP_IRR_WELL( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_IRR_WELL set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWell">
- update BIS_INSP_IRR_WELL set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_IRR_WELL set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWell">
- update BIS_INSP_IRR_WELL
- <trim prefix="set" suffixOverrides=",">
- <if test="isCurryearComp != null and isCurryearComp != ''">IS_CURRYEAR_COMP = #{isCurryearComp},</if>
- <if test="beforeCurryearComp != null and beforeCurryearComp != ''">BEFROE_CURRYEAR = #{beforeCurryearComp},</if>
- <if test="afterCurryearComp != null and afterCurryearComp != ''">AFTER_CURRYEAR = #{afterCurryearComp},</if>
- <if test="sourNote != null and sourNote != ''">SOUR_NOTE = #{sourNote},</if>
- <if test="prjWhoTendNote != null and prjWhoTendNote != ''">PRJ_WHO_TEND_NOTE = #{prjWhoTendNote},</if>
- <if test="isAllNote != null and isAllNote != ''">IS_ALL_NOTE = #{isAllNote},</if>
- <if test="isAllBillType != null and isAllBillType != ''">IS_ALL_BILL_TYPE = #{isAllBillType},</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="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="code != null and code != ''">CODE = #{code},</if>
- <if test="name != null and name != ''">NAME = #{name},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="sour != null and sour != ''">SOUR = #{sour},</if>
- <if test="compDate != null and compDate != ''">COMP_DATE = #{compDate},</if>
- <if test="wellDep != null and wellDep != ''">WELL_DEP = #{wellDep},</if>
- <if test="desQ != null and desQ != ''">DES_Q = #{desQ},</if>
- <if test="irrArea != null and irrArea != ''">IRR_AREA = #{irrArea},</if>
- <if test="higStnType != null and higStnType != ''">HIG_STN_TYPE = #{higStnType},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- <if test="prjWhoTend != null and prjWhoTend != ''">PRJ_WHO_TEND = #{prjWhoTend},</if>
- <if test="prjUsrType != null and prjUsrType != ''">PRJ_USR_TYPE = #{prjUsrType},</if>
- <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
- <if test="isTendRcrd != null and isTendRcrd != ''">IS_TEND_RCRD = #{isTendRcrd},</if>
- <if test="tendRcrdType != null and tendRcrdType != ''">TEND_RCRD_TYPE = #{tendRcrdType},</if>
- <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
- <if test="notRunType != null and notRunType != ''">NOT_RUN_TYPE = #{notRunType},</if>
- <if test="notRunNote != null and notRunNote != ''">NOT_RUN_NOTE = #{notRunNote},</if>
- <if test="isOutAll != null and isOutAll != ''">IS_OUT_ALL = #{isOutAll},</if>
- <if test="isBulAll != null and isBulAll != ''">IS_BUL_ALL = #{isBulAll},</if>
- <if test="isAll != null and isAll != ''">IS_ALL = #{isAll},</if>
- <if test="isOutReq != null and isOutReq != ''">IS_OUT_REQ = #{isOutReq},</if>
- <if test="isOutSdmt != null and isOutSdmt != ''">IS_OUT_SDMT = #{isOutSdmt},</if>
- <if test="evaluate != null and evaluate != ''">EVALUATE = #{evaluate},</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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWell">
- update BIS_INSP_IRR_WELL
- <trim prefix="set" suffixOverrides=",">
- <if test="isCurryearComp != null and isCurryearComp != ''">IS_CURRYEAR_COMP = #{isCurryearComp},</if>
- <if test="beforeCurryearComp != null and beforeCurryearComp != ''">BEFROE_CURRYEAR = #{beforeCurryearComp},</if>
- <if test="afterCurryearComp != null and afterCurryearComp != ''">AFTER_CURRYEAR = #{afterCurryearComp},</if>
- <if test="sourNote != null and sourNote != ''">SOUR_NOTE = #{sourNote},</if>
- <if test="prjWhoTendNote != null and prjWhoTendNote != ''">PRJ_WHO_TEND_NOTE = #{prjWhoTendNote},</if>
- <if test="isAllNote != null and isAllNote != ''">IS_ALL_NOTE = #{isAllNote},</if>
- <if test="isAllBillType != null and isAllBillType != ''">IS_ALL_BILL_TYPE = #{isAllBillType},</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="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="code != null and code != ''">CODE = #{code},</if>
- <if test="name != null and name != ''">NAME = #{name},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="sour != null and sour != ''">SOUR = #{sour},</if>
- <if test="compDate != null and compDate != ''">COMP_DATE = #{compDate},</if>
- <if test="wellDep != null and wellDep != ''">WELL_DEP = #{wellDep},</if>
- <if test="desQ != null and desQ != ''">DES_Q = #{desQ},</if>
- <if test="irrArea != null and irrArea != ''">IRR_AREA = #{irrArea},</if>
- <if test="higStnType != null and higStnType != ''">HIG_STN_TYPE = #{higStnType},</if>
- <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
- <if test="prjWhoTend != null and prjWhoTend != ''">PRJ_WHO_TEND = #{prjWhoTend},</if>
- <if test="prjUsrType != null and prjUsrType != ''">PRJ_USR_TYPE = #{prjUsrType},</if>
- <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
- <if test="isTendRcrd != null and isTendRcrd != ''">IS_TEND_RCRD = #{isTendRcrd},</if>
- <if test="tendRcrdType != null and tendRcrdType != ''">TEND_RCRD_TYPE = #{tendRcrdType},</if>
- <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
- <if test="notRunType != null and notRunType != ''">NOT_RUN_TYPE = #{notRunType},</if>
- <if test="notRunNote != null and notRunNote != ''">NOT_RUN_NOTE = #{notRunNote},</if>
- <if test="isOutAll != null and isOutAll != ''">IS_OUT_ALL = #{isOutAll},</if>
- <if test="isBulAll != null and isBulAll != ''">IS_BUL_ALL = #{isBulAll},</if>
- <if test="isAll != null and isAll != ''">IS_ALL = #{isAll},</if>
- <if test="isOutReq != null and isOutReq != ''">IS_OUT_REQ = #{isOutReq},</if>
- <if test="isOutSdmt != null and isOutSdmt != ''">IS_OUT_SDMT = #{isOutSdmt},</if>
- <if test="evaluate != null and evaluate != ''">EVALUATE = #{evaluate},</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>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|