| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- <?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.BisInspIrrMicroDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrMicro" id="bisInspIrrMicroResultMap">
- <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="irrCode" column="IRR_CODE"/>
- <result property="irrName" column="IRR_NAME"/>
- <result property="stapleCrop" column="STAPLE_CROP"/>
- <result property="irrArea" column="IRR_AREA"/>
- <result property="higStnType" column="HIG_STN_TYPE"/>
- <result property="microType" column="MICRO_TYPE"/>
- <result property="avgWorkDay" column="AVG_WORK_DAY"/>
- <result property="hsType" column="HS_TYPE"/>
- <result property="powerType" column="POWER_TYPE"/>
- <result property="powerVal" column="POWER_VAL"/>
- <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="isMicroAvg" column="IS_MICRO_AVG"/>
- <result property="isMicroFull" column="IS_MICRO_FULL"/>
- <result property="isMsrAll" column="IS_MSR_ALL"/>
- <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="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,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- ID,
- RGSTR_ID,
- OBJ_ID,
- CODE,
- NAME,
- AD_CODE,
- AD_NAME,
- SOUR,
- COMP_DATE,
- IRR_CODE,
- IRR_NAME,
- STAPLE_CROP,
- IRR_AREA,
- HIG_STN_TYPE,
- MICRO_TYPE,
- AVG_WORK_DAY,
- HS_TYPE,
- POWER_TYPE,
- POWER_VAL,
- 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_MICRO_AVG,
- IS_MICRO_FULL,
- IS_MSR_ALL,
- EVALUATE,
- NOTE,
- INVSR_NAME,
- INVSR_PHONE,
- INVSR_TM,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{isCurryearComp},
- #{beforeCurryearComp},
- #{afterCurryearComp},
- #{sourNote},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{id},
- #{rgstrId},
- #{objId},
- #{code},
- #{name},
- #{adCode},
- #{adName},
- #{sour},
- #{compDate},
- #{irrCode},
- #{irrName},
- #{stapleCrop},
- #{irrArea},
- #{higStnType},
- #{microType},
- #{avgWorkDay},
- #{hsType},
- #{powerType},
- #{powerVal},
- #{prjPbmArea},
- #{prjWhoTend},
- #{prjUsrType},
- #{whoTend},
- #{isTendRcrd},
- #{tendRcrdType},
- #{isRun},
- #{notRunType},
- #{notRunNote},
- #{isMicroAvg},
- #{isMicroFull},
- #{isMsrAll},
- #{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="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 = #{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="irrCode != null and irrCode != ''">and IRR_CODE = #{irrCode}</if>
- <if test="irrName != null and irrName != ''">and IRR_NAME = #{irrName}</if>
- <if test="stapleCrop != null and stapleCrop != ''">and STAPLE_CROP = #{stapleCrop}</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="microType != null and microType != ''">and MICRO_TYPE = #{microType}</if>
- <if test="avgWorkDay != null and avgWorkDay != ''">and AVG_WORK_DAY = #{avgWorkDay}</if>
- <if test="hsType != null and hsType != ''">and HS_TYPE = #{hsType}</if>
- <if test="powerType != null and powerType != ''">and POWER_TYPE = #{powerType}</if>
- <if test="powerVal != null and powerVal != ''">and POWER_VAL = #{powerVal}</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="isMicroAvg != null and isMicroAvg != ''">and IS_MICRO_AVG = #{isMicroAvg}</if>
- <if test="isMicroFull != null and isMicroFull != ''">and IS_MICRO_FULL = #{isMicroFull}</if>
- <if test="isMsrAll != null and isMsrAll != ''">and IS_MSR_ALL = #{isMsrAll}</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="bisInspIrrMicroResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_IRR_MICRO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspIrrMicroResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_MICRO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspIrrMicroResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_MICRO
- </select>
- <select id="findList" resultMap="bisInspIrrMicroResultMap">
- select <include refid="table_columns" /> from BIS_INSP_IRR_MICRO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_IRR_MICRO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrMicro">
- insert into BIS_INSP_IRR_MICRO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_IRR_MICRO set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrMicro">
- update BIS_INSP_IRR_MICRO set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_IRR_MICRO set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrMicro">
- update BIS_INSP_IRR_MICRO
- <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="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="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
- <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
- <if test="stapleCrop != null and stapleCrop != ''">STAPLE_CROP = #{stapleCrop},</if>
- <if test="irrArea != null and irrArea != ''">IRR_AREA = #{irrArea},</if>
- <if test="higStnType != null and higStnType != ''">HIG_STN_TYPE = #{higStnType},</if>
- <if test="microType != null and microType != ''">MICRO_TYPE = #{microType},</if>
- <if test="avgWorkDay != null and avgWorkDay != ''">AVG_WORK_DAY = #{avgWorkDay},</if>
- <if test="hsType != null and hsType != ''">HS_TYPE = #{hsType},</if>
- <if test="powerType != null and powerType != ''">POWER_TYPE = #{powerType},</if>
- <if test="powerVal != null and powerVal != ''">POWER_VAL = #{powerVal},</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="isMicroAvg != null and isMicroAvg != ''">IS_MICRO_AVG = #{isMicroAvg},</if>
- <if test="isMicroFull != null and isMicroFull != ''">IS_MICRO_FULL = #{isMicroFull},</if>
- <if test="isMsrAll != null and isMsrAll != ''">IS_MSR_ALL = #{isMsrAll},</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.BisInspIrrMicro">
- update BIS_INSP_IRR_MICRO
- <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="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="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
- <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
- <if test="stapleCrop != null and stapleCrop != ''">STAPLE_CROP = #{stapleCrop},</if>
- <if test="irrArea != null and irrArea != ''">IRR_AREA = #{irrArea},</if>
- <if test="higStnType != null and higStnType != ''">HIG_STN_TYPE = #{higStnType},</if>
- <if test="microType != null and microType != ''">MICRO_TYPE = #{microType},</if>
- <if test="avgWorkDay != null and avgWorkDay != ''">AVG_WORK_DAY = #{avgWorkDay},</if>
- <if test="hsType != null and hsType != ''">HS_TYPE = #{hsType},</if>
- <if test="powerType != null and powerType != ''">POWER_TYPE = #{powerType},</if>
- <if test="powerVal != null and powerVal != ''">POWER_VAL = #{powerVal},</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="isMicroAvg != null and isMicroAvg != ''">IS_MICRO_AVG = #{isMicroAvg},</if>
- <if test="isMicroFull != null and isMicroFull != ''">IS_MICRO_FULL = #{isMicroFull},</if>
- <if test="isMsrAll != null and isMsrAll != ''">IS_MSR_ALL = #{isMsrAll},</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>
|