| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?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.BisInspJspwiu2024WaterDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water" id="bisInspJspwiu2024WaterResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isCrtf" column="IS_CRTF"/>
- <result property="isWaterIntake" column="IS_WATER_INTAKE"/>
- <result property="isWtrsArgm" column="IS_WTRS_ARGM"/>
- <result property="isOverWtrs" column="IS_OVER_WTRS"/>
- <result property="isOverUser" column="IS_OVER_USER"/>
- <result property="isWtrsPermit" column="IS_WTRS_PERMIT"/>
- <result property="isWtrsCntn" column="IS_WTRS_CNTN"/>
- <result property="isWtrsCryut" column="IS_WTRS_CRYUT"/>
- <result property="isOverYrpln" column="IS_OVER_YRPLN"/>
- <result property="isPayRsrs" column="IS_PAY_RSRS"/>
- <result property="isPayTime" column="IS_PAY_TIME"/>
- <result property="isOplanRsrs" column="IS_OPLAN_RSRS"/>
- <result property="isInstFclt" column="IS_INST_FCLT"/>
- <result property="isInstChk" column="IS_INST_CHK"/>
- <result property="isInstSys" column="IS_INST_SYS"/>
- <result property="isInstPay" column="IS_INST_PAY"/>
- <result property="isFillMeet" column="IS_FILL_MEET"/>
- <result property="isReltnAcrcy" column="IS_RELTN_ACRCY"/>
- <result property="note" column="NOTE"/>
- <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"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_CRTF,
- IS_WATER_INTAKE,
- IS_WTRS_ARGM,
- IS_OVER_WTRS,
- IS_OVER_USER,
- IS_WTRS_PERMIT,
- IS_WTRS_CNTN,
- IS_WTRS_CRYUT,
- IS_OVER_YRPLN,
- IS_PAY_RSRS,
- IS_PAY_TIME,
- IS_OPLAN_RSRS,
- IS_INST_FCLT,
- IS_INST_CHK,
- IS_INST_SYS,
- IS_INST_PAY,
- IS_FILL_MEET,
- IS_RELTN_ACRCY,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isCrtf},
- #{isWaterIntake},
- #{isWtrsArgm},
- #{isOverWtrs},
- #{isOverUser},
- #{isWtrsPermit},
- #{isWtrsCntn},
- #{isWtrsCryut},
- #{isOverYrpln},
- #{isPayRsrs},
- #{isPayTime},
- #{isOplanRsrs},
- #{isInstFclt},
- #{isInstChk},
- #{isInstSys},
- #{isInstPay},
- #{isFillMeet},
- #{isReltnAcrcy},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{state}
- </sql>
- <!-- 浣跨敤like鐢ㄦ硶锛歝olumnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="isCrtf != null and isCrtf != ''">and IS_CRTF = #{isCrtf}</if>
- <if test="isWaterIntake != null and isWaterIntake != ''">and IS_WATER_INTAKE = #{isWaterIntake}</if>
- <if test="isWtrsArgm != null and isWtrsArgm != ''">and IS_WTRS_ARGM = #{isWtrsArgm}</if>
- <if test="isOverWtrs != null and isOverWtrs != ''">and IS_OVER_WTRS = #{isOverWtrs}</if>
- <if test="isOverUser != null and isOverUser != ''">and IS_OVER_USER = #{isOverUser}</if>
- <if test="isWtrsPermit != null and isWtrsPermit != ''">and IS_WTRS_PERMIT = #{isWtrsPermit}</if>
- <if test="isWtrsCntn != null and isWtrsCntn != ''">and IS_WTRS_CNTN = #{isWtrsCntn}</if>
- <if test="isWtrsCryut != null and isWtrsCryut != ''">and IS_WTRS_CRYUT = #{isWtrsCryut}</if>
- <if test="isOverYrpln != null and isOverYrpln != ''">and IS_OVER_YRPLN = #{isOverYrpln}</if>
- <if test="isPayRsrs != null and isPayRsrs != ''">and IS_PAY_RSRS = #{isPayRsrs}</if>
- <if test="isPayTime != null and isPayTime != ''">and IS_PAY_TIME = #{isPayTime}</if>
- <if test="isOplanRsrs != null and isOplanRsrs != ''">and IS_OPLAN_RSRS = #{isOplanRsrs}</if>
- <if test="isInstFclt != null and isInstFclt != ''">and IS_INST_FCLT = #{isInstFclt}</if>
- <if test="isInstChk != null and isInstChk != ''">and IS_INST_CHK = #{isInstChk}</if>
- <if test="isInstSys != null and isInstSys != ''">and IS_INST_SYS = #{isInstSys}</if>
- <if test="isInstPay != null and isInstPay != ''">and IS_INST_PAY = #{isInstPay}</if>
- <if test="isFillMeet != null and isFillMeet != ''">and IS_FILL_MEET = #{isFillMeet}</if>
- <if test="isReltnAcrcy != null and isReltnAcrcy != ''">and IS_RELTN_ACRCY = #{isReltnAcrcy}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspJspwiu2024WaterResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspJspwiu2024WaterResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspJspwiu2024WaterResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER
- </select>
- <select id="findList" resultMap="bisInspJspwiu2024WaterResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
- insert into BIS_INSP_JSPWIU2024_WATER( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU2024_WATER set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
- delete from BIS_INSP_JSPWIU2024_WATER <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU2024_WATER set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiu2024Water">
- update BIS_INSP_JSPWIU2024_WATER
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isCrtf != null and isCrtf != ''">IS_CRTF = #{isCrtf},</if>
- <if test="isWaterIntake != null and isWaterIntake != ''">IS_WATER_INTAKE = #{isWaterIntake},</if>
- <if test="isWtrsArgm != null and isWtrsArgm != ''">IS_WTRS_ARGM = #{isWtrsArgm},</if>
- <if test="isOverWtrs != null and isOverWtrs != ''">IS_OVER_WTRS = #{isOverWtrs},</if>
- <if test="isOverUser != null and isOverUser != ''">IS_OVER_USER = #{isOverUser},</if>
- <if test="isWtrsPermit != null and isWtrsPermit != ''">IS_WTRS_PERMIT = #{isWtrsPermit},</if>
- <if test="isWtrsCntn != null and isWtrsCntn != ''">IS_WTRS_CNTN = #{isWtrsCntn},</if>
- <if test="isWtrsCryut != null and isWtrsCryut != ''">IS_WTRS_CRYUT = #{isWtrsCryut},</if>
- <if test="isOverYrpln != null and isOverYrpln != ''">IS_OVER_YRPLN = #{isOverYrpln},</if>
- <if test="isPayRsrs != null and isPayRsrs != ''">IS_PAY_RSRS = #{isPayRsrs},</if>
- <if test="isPayTime != null and isPayTime != ''">IS_PAY_TIME = #{isPayTime},</if>
- <if test="isOplanRsrs != null and isOplanRsrs != ''">IS_OPLAN_RSRS = #{isOplanRsrs},</if>
- <if test="isInstFclt != null and isInstFclt != ''">IS_INST_FCLT = #{isInstFclt},</if>
- <if test="isInstChk != null and isInstChk != ''">IS_INST_CHK = #{isInstChk},</if>
- <if test="isInstSys != null and isInstSys != ''">IS_INST_SYS = #{isInstSys},</if>
- <if test="isInstPay != null and isInstPay != ''">IS_INST_PAY = #{isInstPay},</if>
- <if test="isFillMeet != null and isFillMeet != ''">IS_FILL_MEET = #{isFillMeet},</if>
- <if test="isReltnAcrcy != null and isReltnAcrcy != ''">IS_RELTN_ACRCY = #{isReltnAcrcy},</if>
- <if test="note != null and note != ''">NOTE = #{note},</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.BisInspJspwiu2024Water">
- update BIS_INSP_JSPWIU2024_WATER
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isCrtf != null and isCrtf != ''">IS_CRTF = #{isCrtf},</if>
- <if test="isWaterIntake != null and isWaterIntake != ''">IS_WATER_INTAKE = #{isWaterIntake},</if>
- <if test="isWtrsArgm != null and isWtrsArgm != ''">IS_WTRS_ARGM = #{isWtrsArgm},</if>
- <if test="isOverWtrs != null and isOverWtrs != ''">IS_OVER_WTRS = #{isOverWtrs},</if>
- <if test="isOverUser != null and isOverUser != ''">IS_OVER_USER = #{isOverUser},</if>
- <if test="isWtrsPermit != null and isWtrsPermit != ''">IS_WTRS_PERMIT = #{isWtrsPermit},</if>
- <if test="isWtrsCntn != null and isWtrsCntn != ''">IS_WTRS_CNTN = #{isWtrsCntn},</if>
- <if test="isWtrsCryut != null and isWtrsCryut != ''">IS_WTRS_CRYUT = #{isWtrsCryut},</if>
- <if test="isOverYrpln != null and isOverYrpln != ''">IS_OVER_YRPLN = #{isOverYrpln},</if>
- <if test="isPayRsrs != null and isPayRsrs != ''">IS_PAY_RSRS = #{isPayRsrs},</if>
- <if test="isPayTime != null and isPayTime != ''">IS_PAY_TIME = #{isPayTime},</if>
- <if test="isOplanRsrs != null and isOplanRsrs != ''">IS_OPLAN_RSRS = #{isOplanRsrs},</if>
- <if test="isInstFclt != null and isInstFclt != ''">IS_INST_FCLT = #{isInstFclt},</if>
- <if test="isInstChk != null and isInstChk != ''">IS_INST_CHK = #{isInstChk},</if>
- <if test="isInstSys != null and isInstSys != ''">IS_INST_SYS = #{isInstSys},</if>
- <if test="isInstPay != null and isInstPay != ''">IS_INST_PAY = #{isInstPay},</if>
- <if test="isFillMeet != null and isFillMeet != ''">IS_FILL_MEET = #{isFillMeet},</if>
- <if test="isReltnAcrcy != null and isReltnAcrcy != ''">IS_RELTN_ACRCY = #{isReltnAcrcy},</if>
- <if test="note != null and note != ''">NOTE = #{note},</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>
- <!-- 鍏朵粬鑷畾涔塖QL -->
- </mapper>
|