| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <?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.BisInspRsvrRgstrRepeatDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsvrRgstr" id="bisInspRsvrRgstrRepeatResultMap">
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="rsvrNm" column="RSVR_NM"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="resCreateTime" column="RES_CREATE_TIME"/>
- <result property="hystSite" column="HYST_SITE"/>
- <result property="totCap" column="TOT_CAP"/>
- <result property="damRegCode" column="DAM_REG_CODE"/>
- <result property="damType" column="DAM_TYPE"/>
- <result property="hasDamRegCode" column="HAS_DAM_REG_CODE"/>
- <result property="resCreateTimeNote" column="RES_CREATE_TIME_NOTE"/>
- <result property="engScalNote" column="ENG_SCAL_NOTE"/>
- <result property="state" column="STATE"/>
- <result property="groupLeader" column="GROUP_LEADER"/>
- <result property="groupLeaderTel" column="GROUP_LEADER_TEL"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="uptm" column="UPTM"/>
- <result property="intm" column="INTM"/>
- <result property="note" column="NOTE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="rsvrLong" column="RSVR_LONG"/>
- <result property="rsvrLat" column="RSVR_LAT"/>
- <result property="baseStat" column="BASE_STAT"/>
- <result property="presStat" column="PRES_STAT"/>
- <result property="resRunStat" column="RES_RUN_STAT"/>
- <result property="viewStat" column="VIEW_STAT"/>
- <result property="damMaxHigh" column="DAM_MAX_HIGH"/>
- <result property="rsCode" column="RS_CODE"/>
- <result property="liaisonManTel" column="LIAISON_MAN_TEL"/>
- <result property="liaisonMan" column="LIAISON_MAN"/>
- <result property="rsvrAdmName" column="RSVR_ADM_NAME"/>
- <result property="engScal" column="ENG_SCAL"/>
- <result property="compDateStr" column="COMP_DATE_STR"/>
- <result property="location" column="LOCATION"/>
- <result property="reverStat" column="REVER_STAT"/>
- <result property="benefitStat" column="BENEFIT_STAT"/>
- <result property="orgId" column="ORG_ID"/>
- <result property="repeatId" column="REPEAT_ID"/>
- </resultMap>
-
- <sql id="table_columns">
- RGSTR_ID,
- OBJ_ID,
- RSVR_NM,
- AD_CODE,
- RES_CREATE_TIME,
- HYST_SITE,
- TOT_CAP,
- DAM_REG_CODE,
- DAM_TYPE,
- HAS_DAM_REG_CODE,
- RES_CREATE_TIME_NOTE,
- ENG_SCAL_NOTE,
- STATE,
- GROUP_LEADER,
- GROUP_LEADER_TEL,
- REC_PERS_ID,
- REC_PERS,
- REC_PERS_TEL,
- UPTM,
- INTM,
- NOTE,
- DATA_STAT,
- RSVR_LONG,
- RSVR_LAT,
- BASE_STAT,
- PRES_STAT,
- RES_RUN_STAT,
- VIEW_STAT,
- DAM_MAX_HIGH,
- RS_CODE,
- LIAISON_MAN_TEL,
- LIAISON_MAN,
- RSVR_ADM_NAME,
- ENG_SCAL,
- COMP_DATE_STR,
- LOCATION,
- REVER_STAT,
- BENEFIT_STAT,
- ORG_ID,
- REPEAT_ID
- </sql>
- <sql id="entity_properties">
- #{rgstrId},
- #{objId},
- #{rsvrNm},
- #{adCode},
- #{resCreateTime},
- #{hystSite},
- #{totCap},
- #{damRegCode},
- #{damType},
- #{hasDamRegCode},
- #{resCreateTimeNote},
- #{engScalNote},
- #{state},
- #{groupLeader},
- #{groupLeaderTel},
- #{recPersId},
- #{recPers},
- #{recPersTel},
- #{uptm},
- #{intm},
- #{note},
- #{dataStat},
- #{rsvrLong},
- #{rsvrLat},
- #{baseStat},
- #{presStat},
- #{resRunStat},
- #{viewStat},
- #{damMaxHigh},
- #{rsCode},
- #{liaisonManTel},
- #{liaisonMan},
- #{rsvrAdmName},
- #{engScal},
- #{compDateStr},
- #{location},
- #{reverStat},
- #{benefitStat},
- #{orgId},
- #{repeatId}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="rsvrNm != null and rsvrNm != ''">and RSVR_NM = #{rsvrNm}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="resCreateTime != null">and RES_CREATE_TIME = #{resCreateTime}</if>
- <if test="hystSite != null and hystSite != ''">and HYST_SITE = #{hystSite}</if>
- <if test="totCap != null and totCap != ''">and TOT_CAP = #{totCap}</if>
- <if test="damRegCode != null and damRegCode != ''">and DAM_REG_CODE = #{damRegCode}</if>
- <if test="damType != null and damType != ''">and DAM_TYPE = #{damType}</if>
- <if test="hasDamRegCode != null and hasDamRegCode != ''">and HAS_DAM_REG_CODE = #{hasDamRegCode}</if>
- <if test="resCreateTimeNote != null and resCreateTimeNote != ''">and RES_CREATE_TIME_NOTE = #{resCreateTimeNote}</if>
- <if test="engScalNote != null and engScalNote != ''">and ENG_SCAL_NOTE = #{engScalNote}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="groupLeader != null and groupLeader != ''">and GROUP_LEADER = #{groupLeader}</if>
- <if test="groupLeaderTel != null and groupLeaderTel != ''">and GROUP_LEADER_TEL = #{groupLeaderTel}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
- <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="rsvrLong != null and rsvrLong != ''">and RSVR_LONG = #{rsvrLong}</if>
- <if test="rsvrLat != null and rsvrLat != ''">and RSVR_LAT = #{rsvrLat}</if>
- <if test="baseStat != null and baseStat != ''">and BASE_STAT = #{baseStat}</if>
- <if test="presStat != null and presStat != ''">and PRES_STAT = #{presStat}</if>
- <if test="resRunStat != null and resRunStat != ''">and RES_RUN_STAT = #{resRunStat}</if>
- <if test="viewStat != null and viewStat != ''">and VIEW_STAT = #{viewStat}</if>
- <if test="damMaxHigh != null and damMaxHigh != ''">and DAM_MAX_HIGH = #{damMaxHigh}</if>
- <if test="rsCode != null and rsCode != ''">and RS_CODE = #{rsCode}</if>
- <if test="liaisonManTel != null and liaisonManTel != ''">and LIAISON_MAN_TEL = #{liaisonManTel}</if>
- <if test="liaisonMan != null and liaisonMan != ''">and LIAISON_MAN = #{liaisonMan}</if>
- <if test="rsvrAdmName != null and rsvrAdmName != ''">and RSVR_ADM_NAME = #{rsvrAdmName}</if>
- <if test="engScal != null and engScal != ''">and ENG_SCAL = #{engScal}</if>
- <if test="compDateStr != null and compDateStr != ''">and COMP_DATE_STR = #{compDateStr}</if>
- <if test="location != null and location != ''">and LOCATION = #{location}</if>
- <if test="reverStat != null and reverStat != ''">and REVER_STAT = #{reverStat}</if>
- <if test="benefitStat != null and benefitStat != ''">and BENEFIT_STAT = #{benefitStat}</if>
- <if test="orgId != null and orgId != ''">and ORG_ID = #{orgId}</if>
- <if test="repeatId != null and repeatId != ''">and REPEAT_ID = #{repeatId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsvrRgstrRepeatResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSVR_RGSTR_repeat where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsvrRgstrRepeatResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_RGSTR_repeat <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsvrRgstrRepeatResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_RGSTR_repeat
- </select>
- <select id="findList" resultMap="bisInspRsvrRgstrRepeatResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_RGSTR_repeat <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSVR_RGSTR_repeat <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrRgstr">
- insert into BIS_INSP_RSVR_RGSTR_repeat( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSVR_RGSTR_repeat where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrRgstr">
- delete from BIS_INSP_RSVR_RGSTR_repeat <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSVR_RGSTR_repeat set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrRgstr">
- update BIS_INSP_RSVR_RGSTR_repeat
- <trim prefix="set" suffixOverrides=",">
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="rsvrNm != null and rsvrNm != ''">RSVR_NM = #{rsvrNm},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="resCreateTime != null">RES_CREATE_TIME = #{resCreateTime},</if>
- <if test="hystSite != null and hystSite != ''">HYST_SITE = #{hystSite},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="damRegCode != null and damRegCode != ''">DAM_REG_CODE = #{damRegCode},</if>
- <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
- <if test="hasDamRegCode != null and hasDamRegCode != ''">HAS_DAM_REG_CODE = #{hasDamRegCode},</if>
- <if test="resCreateTimeNote != null and resCreateTimeNote != ''">RES_CREATE_TIME_NOTE = #{resCreateTimeNote},</if>
- <if test="engScalNote != null and engScalNote != ''">ENG_SCAL_NOTE = #{engScalNote},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="groupLeader != null and groupLeader != ''">GROUP_LEADER = #{groupLeader},</if>
- <if test="groupLeaderTel != null and groupLeaderTel != ''">GROUP_LEADER_TEL = #{groupLeaderTel},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="rsvrLong != null and rsvrLong != ''">RSVR_LONG = #{rsvrLong},</if>
- <if test="rsvrLat != null and rsvrLat != ''">RSVR_LAT = #{rsvrLat},</if>
- <if test="baseStat != null and baseStat != ''">BASE_STAT = #{baseStat},</if>
- <if test="presStat != null and presStat != ''">PRES_STAT = #{presStat},</if>
- <if test="resRunStat != null and resRunStat != ''">RES_RUN_STAT = #{resRunStat},</if>
- <if test="viewStat != null and viewStat != ''">VIEW_STAT = #{viewStat},</if>
- <if test="damMaxHigh != null and damMaxHigh != ''">DAM_MAX_HIGH = #{damMaxHigh},</if>
- <if test="rsCode != null and rsCode != ''">RS_CODE = #{rsCode},</if>
- <if test="liaisonManTel != null and liaisonManTel != ''">LIAISON_MAN_TEL = #{liaisonManTel},</if>
- <if test="liaisonMan != null and liaisonMan != ''">LIAISON_MAN = #{liaisonMan},</if>
- <if test="rsvrAdmName != null and rsvrAdmName != ''">RSVR_ADM_NAME = #{rsvrAdmName},</if>
- <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
- <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="reverStat != null and reverStat != ''">REVER_STAT = #{reverStat},</if>
- <if test="benefitStat != null and benefitStat != ''">BENEFIT_STAT = #{benefitStat},</if>
- <if test="orgId != null and orgId != ''">ORG_ID = #{orgId},</if>
- <if test="repeatId != null and repeatId != ''">REPEAT_ID = #{repeatId},</if>
- </trim>
- <where>RGSTR_ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrRgstr">
- update BIS_INSP_RSVR_RGSTR_repeat
- <trim prefix="set" suffixOverrides=",">
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="rsvrNm != null and rsvrNm != ''">RSVR_NM = #{rsvrNm},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="resCreateTime != null">RES_CREATE_TIME = #{resCreateTime},</if>
- <if test="hystSite != null and hystSite != ''">HYST_SITE = #{hystSite},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="damRegCode != null and damRegCode != ''">DAM_REG_CODE = #{damRegCode},</if>
- <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
- <if test="hasDamRegCode != null and hasDamRegCode != ''">HAS_DAM_REG_CODE = #{hasDamRegCode},</if>
- <if test="resCreateTimeNote != null and resCreateTimeNote != ''">RES_CREATE_TIME_NOTE = #{resCreateTimeNote},</if>
- <if test="engScalNote != null and engScalNote != ''">ENG_SCAL_NOTE = #{engScalNote},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="groupLeader != null and groupLeader != ''">GROUP_LEADER = #{groupLeader},</if>
- <if test="groupLeaderTel != null and groupLeaderTel != ''">GROUP_LEADER_TEL = #{groupLeaderTel},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="rsvrLong != null and rsvrLong != ''">RSVR_LONG = #{rsvrLong},</if>
- <if test="rsvrLat != null and rsvrLat != ''">RSVR_LAT = #{rsvrLat},</if>
- <if test="baseStat != null and baseStat != ''">BASE_STAT = #{baseStat},</if>
- <if test="presStat != null and presStat != ''">PRES_STAT = #{presStat},</if>
- <if test="resRunStat != null and resRunStat != ''">RES_RUN_STAT = #{resRunStat},</if>
- <if test="viewStat != null and viewStat != ''">VIEW_STAT = #{viewStat},</if>
- <if test="damMaxHigh != null and damMaxHigh != ''">DAM_MAX_HIGH = #{damMaxHigh},</if>
- <if test="rsCode != null and rsCode != ''">RS_CODE = #{rsCode},</if>
- <if test="liaisonManTel != null and liaisonManTel != ''">LIAISON_MAN_TEL = #{liaisonManTel},</if>
- <if test="liaisonMan != null and liaisonMan != ''">LIAISON_MAN = #{liaisonMan},</if>
- <if test="rsvrAdmName != null and rsvrAdmName != ''">RSVR_ADM_NAME = #{rsvrAdmName},</if>
- <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
- <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="reverStat != null and reverStat != ''">REVER_STAT = #{reverStat},</if>
- <if test="benefitStat != null and benefitStat != ''">BENEFIT_STAT = #{benefitStat},</if>
- <if test="orgId != null and orgId != ''">ORG_ID = #{orgId},</if>
- <if test="repeatId != null and repeatId != ''">REPEAT_ID = #{repeatId},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|