| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?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.AttRsBaseCrrctRepeatDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.AttRsBaseCrrct" id="attRsBaseCrrctRepeatResultMap">
- <result property="engScal" column="ENG_SCAL"/>
- <result property="limStag" column="LIM_STAG"/>
- <result property="totCap" column="TOT_CAP"/>
- <result property="rsAdmName" column="RS_ADM_NAME"/>
- <result property="rsAdmCode" column="RS_ADM_CODE"/>
- <result property="rsAdmDep" column="RS_ADM_DEP"/>
- <result property="admAttRel" column="ADM_ATT_REL"/>
- <result property="rsCode" column="RS_CODE"/>
- <result property="rsName" column="RS_NAME"/>
- <result property="longitude" column="LONGITUDE"/>
- <result property="latitude" column="LATITUDE"/>
- <result property="location" column="LOCATION"/>
- <result property="admDiv" column="ADM_DIV"/>
- <result property="rsType" column="RS_TYPE"/>
- <result property="damTypeMat" column="DAM_TYPE_MAT"/>
- <result property="damTypeStr" column="DAM_TYPE_STR"/>
- <result property="damSizeHig" column="DAM_SIZE_HIG"/>
- <result property="centerX" column="CENTER_X"/>
- <result property="centerY" column="CENTER_Y"/>
- <result property="src" column="SRC"/>
- <result property="dataQuality" column="DATA_QUALITY"/>
- <result property="centerXGd" column="CENTER_X_GD"/>
- <result property="centerYGd" column="CENTER_Y_GD"/>
- <result property="rsLoc" column="RS_LOC"/>
- <result property="regCode" column="REG_CODE"/>
- <result property="compDate" column="COMP_DATE"/>
- <result property="intm" column="INTM"/>
- <result property="regNo" column="REG_NO"/>
- <result property="chkState" column="CHK_STATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="hstInsp" column="HST_INSP"/>
- <result property="uptm" column="UPTM"/>
- <result property="edtrPesr" column="EDTR_PESR"/>
- <result property="crrctId" column="CRRCT_ID"/>
- <result property="compDateStr" column="COMP_DATE_STR"/>
- <result property="objId" column="OBJ_ID"/>
- </resultMap>
-
- <sql id="table_columns">
- ENG_SCAL,
- LIM_STAG,
- TOT_CAP,
- RS_ADM_NAME,
- RS_ADM_CODE,
- RS_ADM_DEP,
- ADM_ATT_REL,
- RS_CODE,
- RS_NAME,
- LONGITUDE,
- LATITUDE,
- LOCATION,
- ADM_DIV,
- RS_TYPE,
- DAM_TYPE_MAT,
- DAM_TYPE_STR,
- DAM_SIZE_HIG,
- CENTER_X,
- CENTER_Y,
- SRC,
- DATA_QUALITY,
- CENTER_X_GD,
- CENTER_Y_GD,
- RS_LOC,
- REG_CODE,
- COMP_DATE,
- INTM,
- REG_NO,
- CHK_STATE,
- PERS_ID,
- HST_INSP,
- UPTM,
- EDTR_PESR,
- CRRCT_ID,
- COMP_DATE_STR,
- OBJ_ID
- </sql>
- <sql id="entity_properties">
- #{engScal},
- #{limStag},
- #{totCap},
- #{rsAdmName},
- #{rsAdmCode},
- #{rsAdmDep},
- #{admAttRel},
- #{rsCode},
- #{rsName},
- #{longitude},
- #{latitude},
- #{location},
- #{admDiv},
- #{rsType},
- #{damTypeMat},
- #{damTypeStr},
- #{damSizeHig},
- #{centerX},
- #{centerY},
- #{src},
- #{dataQuality},
- #{centerXGd},
- #{centerYGd},
- #{rsLoc},
- #{regCode},
- #{compDate},
- #{intm},
- #{regNo},
- #{chkState},
- #{persId},
- #{hstInsp},
- #{uptm},
- #{edtrPesr},
- #{crrctId},
- #{compDateStr},
- #{objId}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="limStag != null and limStag != ''">and LIM_STAG = #{limStag}</if>
- <if test="totCap != null and totCap != ''">and TOT_CAP = #{totCap}</if>
- <if test="rsAdmName != null and rsAdmName != ''">and RS_ADM_NAME = #{rsAdmName}</if>
- <if test="rsAdmCode != null and rsAdmCode != ''">and RS_ADM_CODE = #{rsAdmCode}</if>
- <if test="rsAdmDep != null and rsAdmDep != ''">and RS_ADM_DEP = #{rsAdmDep}</if>
- <if test="admAttRel != null and admAttRel != ''">and ADM_ATT_REL = #{admAttRel}</if>
- <if test="rsCode != null and rsCode != ''">and RS_CODE = #{rsCode}</if>
- <if test="rsName != null and rsName != ''">and RS_NAME = #{rsName}</if>
- <if test="longitude != null and longitude != ''">and LONGITUDE = #{longitude}</if>
- <if test="latitude != null and latitude != ''">and LATITUDE = #{latitude}</if>
- <if test="location != null and location != ''">and LOCATION = #{location}</if>
- <if test="admDiv != null and admDiv != ''">and ADM_DIV = #{admDiv}</if>
- <if test="rsType != null and rsType != ''">and RS_TYPE = #{rsType}</if>
- <if test="damTypeMat != null and damTypeMat != ''">and DAM_TYPE_MAT = #{damTypeMat}</if>
- <if test="damTypeStr != null and damTypeStr != ''">and DAM_TYPE_STR = #{damTypeStr}</if>
- <if test="damSizeHig != null and damSizeHig != ''">and DAM_SIZE_HIG = #{damSizeHig}</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="src != null and src != ''">and SRC = #{src}</if>
- <if test="dataQuality != null and dataQuality != ''">and DATA_QUALITY = #{dataQuality}</if>
- <if test="centerXGd != null and centerXGd != ''">and CENTER_X_GD = #{centerXGd}</if>
- <if test="centerYGd != null and centerYGd != ''">and CENTER_Y_GD = #{centerYGd}</if>
- <if test="rsLoc != null and rsLoc != ''">and RS_LOC = #{rsLoc}</if>
- <if test="regCode != null and regCode != ''">and REG_CODE = #{regCode}</if>
- <if test="compDate != null">and COMP_DATE = #{compDate}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="regNo != null and regNo != ''">and REG_NO = #{regNo}</if>
- <if test="chkState != null and chkState != ''">and CHK_STATE = #{chkState}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="hstInsp != null and hstInsp != ''">and HST_INSP = #{hstInsp}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="edtrPesr != null and edtrPesr != ''">and EDTR_PESR = #{edtrPesr}</if>
- <if test="crrctId != null and crrctId != ''">and CRRCT_ID = #{crrctId}</if>
- <if test="compDateStr != null and compDateStr != ''">and COMP_DATE_STR = #{compDateStr}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="attRsBaseCrrctRepeatResultMap" parameterType="String" >
- select <include refid="table_columns" /> from ATT_RS_BASE_CRRCT_REPEAT where ID = #{id}
- </select>
- <select id="getBy" resultMap="attRsBaseCrrctRepeatResultMap">
- select <include refid="table_columns" /> from ATT_RS_BASE_CRRCT_REPEAT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="attRsBaseCrrctRepeatResultMap">
- select <include refid="table_columns" /> from ATT_RS_BASE_CRRCT_REPEAT
- </select>
- <select id="findList" resultMap="attRsBaseCrrctRepeatResultMap">
- select <include refid="table_columns" /> from ATT_RS_BASE_CRRCT_REPEAT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from ATT_RS_BASE_CRRCT_REPEAT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseCrrct">
- insert into ATT_RS_BASE_CRRCT_REPEAT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from ATT_RS_BASE_CRRCT_REPEAT where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseCrrct">
- delete from ATT_RS_BASE_CRRCT_REPEAT <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update ATT_RS_BASE_CRRCT_REPEAT set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseCrrct">
- update ATT_RS_BASE_CRRCT_REPEAT
- <trim prefix="set" suffixOverrides=",">
- <if test="limStag != null and limStag != ''">LIM_STAG = #{limStag},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="rsAdmName != null and rsAdmName != ''">RS_ADM_NAME = #{rsAdmName},</if>
- <if test="rsAdmCode != null and rsAdmCode != ''">RS_ADM_CODE = #{rsAdmCode},</if>
- <if test="rsAdmDep != null and rsAdmDep != ''">RS_ADM_DEP = #{rsAdmDep},</if>
- <if test="admAttRel != null and admAttRel != ''">ADM_ATT_REL = #{admAttRel},</if>
- <if test="rsCode != null and rsCode != ''">RS_CODE = #{rsCode},</if>
- <if test="rsName != null and rsName != ''">RS_NAME = #{rsName},</if>
- <if test="longitude != null and longitude != ''">LONGITUDE = #{longitude},</if>
- <if test="latitude != null and latitude != ''">LATITUDE = #{latitude},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="admDiv != null and admDiv != ''">ADM_DIV = #{admDiv},</if>
- <if test="rsType != null and rsType != ''">RS_TYPE = #{rsType},</if>
- <if test="damTypeMat != null and damTypeMat != ''">DAM_TYPE_MAT = #{damTypeMat},</if>
- <if test="damTypeStr != null and damTypeStr != ''">DAM_TYPE_STR = #{damTypeStr},</if>
- <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="src != null and src != ''">SRC = #{src},</if>
- <if test="dataQuality != null and dataQuality != ''">DATA_QUALITY = #{dataQuality},</if>
- <if test="centerXGd != null and centerXGd != ''">CENTER_X_GD = #{centerXGd},</if>
- <if test="centerYGd != null and centerYGd != ''">CENTER_Y_GD = #{centerYGd},</if>
- <if test="rsLoc != null and rsLoc != ''">RS_LOC = #{rsLoc},</if>
- <if test="regCode != null and regCode != ''">REG_CODE = #{regCode},</if>
- <if test="compDate != null">COMP_DATE = #{compDate},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="regNo != null and regNo != ''">REG_NO = #{regNo},</if>
- <if test="chkState != null and chkState != ''">CHK_STATE = #{chkState},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="hstInsp != null and hstInsp != ''">HST_INSP = #{hstInsp},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="edtrPesr != null and edtrPesr != ''">EDTR_PESR = #{edtrPesr},</if>
- <if test="crrctId != null and crrctId != ''">CRRCT_ID = #{crrctId},</if>
- <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseCrrct">
- update ATT_RS_BASE_CRRCT_REPEAT
- <trim prefix="set" suffixOverrides=",">
- <if test="limStag != null and limStag != ''">LIM_STAG = #{limStag},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="rsAdmName != null and rsAdmName != ''">RS_ADM_NAME = #{rsAdmName},</if>
- <if test="rsAdmCode != null and rsAdmCode != ''">RS_ADM_CODE = #{rsAdmCode},</if>
- <if test="rsAdmDep != null and rsAdmDep != ''">RS_ADM_DEP = #{rsAdmDep},</if>
- <if test="admAttRel != null and admAttRel != ''">ADM_ATT_REL = #{admAttRel},</if>
- <if test="rsCode != null and rsCode != ''">RS_CODE = #{rsCode},</if>
- <if test="rsName != null and rsName != ''">RS_NAME = #{rsName},</if>
- <if test="longitude != null and longitude != ''">LONGITUDE = #{longitude},</if>
- <if test="latitude != null and latitude != ''">LATITUDE = #{latitude},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="admDiv != null and admDiv != ''">ADM_DIV = #{admDiv},</if>
- <if test="rsType != null and rsType != ''">RS_TYPE = #{rsType},</if>
- <if test="damTypeMat != null and damTypeMat != ''">DAM_TYPE_MAT = #{damTypeMat},</if>
- <if test="damTypeStr != null and damTypeStr != ''">DAM_TYPE_STR = #{damTypeStr},</if>
- <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="src != null and src != ''">SRC = #{src},</if>
- <if test="dataQuality != null and dataQuality != ''">DATA_QUALITY = #{dataQuality},</if>
- <if test="centerXGd != null and centerXGd != ''">CENTER_X_GD = #{centerXGd},</if>
- <if test="centerYGd != null and centerYGd != ''">CENTER_Y_GD = #{centerYGd},</if>
- <if test="rsLoc != null and rsLoc != ''">RS_LOC = #{rsLoc},</if>
- <if test="regCode != null and regCode != ''">REG_CODE = #{regCode},</if>
- <if test="compDate != null">COMP_DATE = #{compDate},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="regNo != null and regNo != ''">REG_NO = #{regNo},</if>
- <if test="chkState != null and chkState != ''">CHK_STATE = #{chkState},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="hstInsp != null and hstInsp != ''">HST_INSP = #{hstInsp},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="edtrPesr != null and edtrPesr != ''">EDTR_PESR = #{edtrPesr},</if>
- <if test="crrctId != null and crrctId != ''">CRRCT_ID = #{crrctId},</if>
- <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|