| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?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.BisInspWiujsWtruDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWiujsWtru" id="bisInspWiujsWtruResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isPlan" column="IS_PLAN"/>
- <result property="planWater" column="PLAN_WATER"/>
- <result property="isReport" column="IS_REPORT"/>
- <result property="isAdjPlan" column="IS_ADJ_PLAN"/>
- <result property="isYmadj" column="IS_YMADJ"/>
- <result property="actualWater" column="ACTUAL_WATER"/>
- <result property="isByndPlan" column="IS_BYND_PLAN"/>
- <result property="isPayBynd" column="IS_PAY_BYND"/>
- <result property="mainProd" column="MAIN_PROD"/>
- <result property="mainStandard" column="MAIN_STANDARD"/>
- <result property="isByndQuota" column="IS_BYND_QUOTA"/>
- <result property="isInstall" column="IS_INSTALL"/>
- <result property="isNrmlEqpt" column="IS_NRML_EQPT"/>
- <result property="isCheck" column="IS_CHECK"/>
- <result property="isBuildRta" column="IS_BUILD_RTA"/>
- <result property="isRecord" column="IS_RECORD"/>
- <result property="isNwtrEqpt" column="IS_NWTR_EQPT"/>
- <result property="isSndMchnsm" column="IS_SND_MCHNSM"/>
- <result property="isTest" column="IS_TEST"/>
- <result property="isAudit" column="IS_AUDIT"/>
- <result property="isBuildSvi" column="IS_BUILD_SVI"/>
- <result property="isWaterEffect" column="IS_WATER_EFFECT"/>
- <result property="isTechRnvtn" column="IS_TECH_RNVTN"/>
- <result property="isUncnvWater" column="IS_UNCNV_WATER"/>
- <result property="isWaterSys" column="IS_WATER_SYS"/>
- <result property="isSavAdvr" column="IS_SAV_ADVR"/>
- <result property="isNnvtWork" column="IS_NNVT_WORK"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- INTM,
- UPTM,
- DATA_STAT,
- IS_PLAN,
- PLAN_WATER,
- IS_REPORT,
- IS_ADJ_PLAN,
- IS_YMADJ,
- ACTUAL_WATER,
- IS_BYND_PLAN,
- IS_PAY_BYND,
- MAIN_PROD,
- MAIN_STANDARD,
- IS_BYND_QUOTA,
- IS_INSTALL,
- IS_NRML_EQPT,
- IS_CHECK,
- IS_BUILD_RTA,
- IS_RECORD,
- IS_NWTR_EQPT,
- IS_SND_MCHNSM,
- IS_TEST,
- IS_AUDIT,
- IS_BUILD_SVI,
- IS_WATER_EFFECT,
- IS_TECH_RNVTN,
- IS_UNCNV_WATER,
- IS_WATER_SYS,
- IS_SAV_ADVR,
- IS_NNVT_WORK
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{isPlan},
- #{planWater},
- #{isReport},
- #{isAdjPlan},
- #{isYmadj},
- #{actualWater},
- #{isByndPlan},
- #{isPayBynd},
- #{mainProd},
- #{mainStandard},
- #{isByndQuota},
- #{isInstall},
- #{isNrmlEqpt},
- #{isCheck},
- #{isBuildRta},
- #{isRecord},
- #{isNwtrEqpt},
- #{isSndMchnsm},
- #{isTest},
- #{isAudit},
- #{isBuildSvi},
- #{isWaterEffect},
- #{isTechRnvtn},
- #{isUncnvWater},
- #{isWaterSys},
- #{isSavAdvr},
- #{isNnvtWork}
- </sql>
- <!-- 使用like用法:columnName 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="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="isPlan != null and isPlan != ''">and IS_PLAN = #{isPlan}</if>
- <if test="planWater != null and planWater != ''">and PLAN_WATER = #{planWater}</if>
- <if test="isReport != null and isReport != ''">and IS_REPORT = #{isReport}</if>
- <if test="isAdjPlan != null and isAdjPlan != ''">and IS_ADJ_PLAN = #{isAdjPlan}</if>
- <if test="isYmadj != null and isYmadj != ''">and IS_YMADJ = #{isYmadj}</if>
- <if test="actualWater != null and actualWater != ''">and ACTUAL_WATER = #{actualWater}</if>
- <if test="isByndPlan != null and isByndPlan != ''">and IS_BYND_PLAN = #{isByndPlan}</if>
- <if test="isPayBynd != null and isPayBynd != ''">and IS_PAY_BYND = #{isPayBynd}</if>
- <if test="mainProd != null and mainProd != ''">and MAIN_PROD = #{mainProd}</if>
- <if test="mainStandard != null and mainStandard != ''">and MAIN_STANDARD = #{mainStandard}</if>
- <if test="isByndQuota != null and isByndQuota != ''">and IS_BYND_QUOTA = #{isByndQuota}</if>
- <if test="isInstall != null and isInstall != ''">and IS_INSTALL = #{isInstall}</if>
- <if test="isNrmlEqpt != null and isNrmlEqpt != ''">and IS_NRML_EQPT = #{isNrmlEqpt}</if>
- <if test="isCheck != null and isCheck != ''">and IS_CHECK = #{isCheck}</if>
- <if test="isBuildRta != null and isBuildRta != ''">and IS_BUILD_RTA = #{isBuildRta}</if>
- <if test="isRecord != null and isRecord != ''">and IS_RECORD = #{isRecord}</if>
- <if test="isNwtrEqpt != null and isNwtrEqpt != ''">and IS_NWTR_EQPT = #{isNwtrEqpt}</if>
- <if test="isSndMchnsm != null and isSndMchnsm != ''">and IS_SND_MCHNSM = #{isSndMchnsm}</if>
- <if test="isTest != null and isTest != ''">and IS_TEST = #{isTest}</if>
- <if test="isAudit != null and isAudit != ''">and IS_AUDIT = #{isAudit}</if>
- <if test="isBuildSvi != null and isBuildSvi != ''">and IS_BUILD_SVI = #{isBuildSvi}</if>
- <if test="isWaterEffect != null and isWaterEffect != ''">and IS_WATER_EFFECT = #{isWaterEffect}</if>
- <if test="isTechRnvtn != null and isTechRnvtn != ''">and IS_TECH_RNVTN = #{isTechRnvtn}</if>
- <if test="isUncnvWater != null and isUncnvWater != ''">and IS_UNCNV_WATER = #{isUncnvWater}</if>
- <if test="isWaterSys != null and isWaterSys != ''">and IS_WATER_SYS = #{isWaterSys}</if>
- <if test="isSavAdvr != null and isSavAdvr != ''">and IS_SAV_ADVR = #{isSavAdvr}</if>
- <if test="isNnvtWork != null and isNnvtWork != ''">and IS_NNVT_WORK = #{isNnvtWork}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWiujsWtruResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_WTRU where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWiujsWtruResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_WTRU
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWiujsWtruResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_WTRU
- </select>
- <select id="findList" resultMap="bisInspWiujsWtruResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_WTRU
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WIUJS_WTRU
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsWtru">
- insert into BIS_INSP_WIUJS_WTRU(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WIUJS_WTRU set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsWtru">
- update BIS_INSP_WIUJS_WTRU set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WIUJS_WTRU set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsWtru">
- update BIS_INSP_WIUJS_WTRU
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="isPlan != null and isPlan != ''">IS_PLAN = #{isPlan},</if>
- <if test="planWater != null and planWater != ''">PLAN_WATER = #{planWater},</if>
- <if test="isReport != null and isReport != ''">IS_REPORT = #{isReport},</if>
- <if test="isAdjPlan != null and isAdjPlan != ''">IS_ADJ_PLAN = #{isAdjPlan},</if>
- <if test="isYmadj != null and isYmadj != ''">IS_YMADJ = #{isYmadj},</if>
- <if test="actualWater != null and actualWater != ''">ACTUAL_WATER = #{actualWater},</if>
- <if test="isByndPlan != null and isByndPlan != ''">IS_BYND_PLAN = #{isByndPlan},</if>
- <if test="isPayBynd != null and isPayBynd != ''">IS_PAY_BYND = #{isPayBynd},</if>
- <if test="mainProd != null and mainProd != ''">MAIN_PROD = #{mainProd},</if>
- <if test="mainStandard != null and mainStandard != ''">MAIN_STANDARD = #{mainStandard},</if>
- <if test="isByndQuota != null and isByndQuota != ''">IS_BYND_QUOTA = #{isByndQuota},</if>
- <if test="isInstall != null and isInstall != ''">IS_INSTALL = #{isInstall},</if>
- <if test="isNrmlEqpt != null and isNrmlEqpt != ''">IS_NRML_EQPT = #{isNrmlEqpt},</if>
- <if test="isCheck != null and isCheck != ''">IS_CHECK = #{isCheck},</if>
- <if test="isBuildRta != null and isBuildRta != ''">IS_BUILD_RTA = #{isBuildRta},</if>
- <if test="isRecord != null and isRecord != ''">IS_RECORD = #{isRecord},</if>
- <if test="isNwtrEqpt != null and isNwtrEqpt != ''">IS_NWTR_EQPT = #{isNwtrEqpt},</if>
- <if test="isSndMchnsm != null and isSndMchnsm != ''">IS_SND_MCHNSM = #{isSndMchnsm},</if>
- <if test="isTest != null and isTest != ''">IS_TEST = #{isTest},</if>
- <if test="isAudit != null and isAudit != ''">IS_AUDIT = #{isAudit},</if>
- <if test="isBuildSvi != null and isBuildSvi != ''">IS_BUILD_SVI = #{isBuildSvi},</if>
- <if test="isWaterEffect != null and isWaterEffect != ''">IS_WATER_EFFECT = #{isWaterEffect},</if>
- <if test="isTechRnvtn != null and isTechRnvtn != ''">IS_TECH_RNVTN = #{isTechRnvtn},</if>
- <if test="isUncnvWater != null and isUncnvWater != ''">IS_UNCNV_WATER = #{isUncnvWater},</if>
- <if test="isWaterSys != null and isWaterSys != ''">IS_WATER_SYS = #{isWaterSys},</if>
- <if test="isSavAdvr != null and isSavAdvr != ''">IS_SAV_ADVR = #{isSavAdvr},</if>
- <if test="isNnvtWork != null and isNnvtWork != ''">IS_NNVT_WORK = #{isNnvtWork},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsWtru">
- update BIS_INSP_WIUJS_WTRU
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="isPlan != null and isPlan != ''">IS_PLAN = #{isPlan},</if>
- <if test="planWater != null and planWater != ''">PLAN_WATER = #{planWater},</if>
- <if test="isReport != null and isReport != ''">IS_REPORT = #{isReport},</if>
- <if test="isAdjPlan != null and isAdjPlan != ''">IS_ADJ_PLAN = #{isAdjPlan},</if>
- <if test="isYmadj != null and isYmadj != ''">IS_YMADJ = #{isYmadj},</if>
- <if test="actualWater != null and actualWater != ''">ACTUAL_WATER = #{actualWater},</if>
- <if test="isByndPlan != null and isByndPlan != ''">IS_BYND_PLAN = #{isByndPlan},</if>
- <if test="isPayBynd != null and isPayBynd != ''">IS_PAY_BYND = #{isPayBynd},</if>
- <if test="mainProd != null and mainProd != ''">MAIN_PROD = #{mainProd},</if>
- <if test="mainStandard != null and mainStandard != ''">MAIN_STANDARD = #{mainStandard},</if>
- <if test="isByndQuota != null and isByndQuota != ''">IS_BYND_QUOTA = #{isByndQuota},</if>
- <if test="isInstall != null and isInstall != ''">IS_INSTALL = #{isInstall},</if>
- <if test="isNrmlEqpt != null and isNrmlEqpt != ''">IS_NRML_EQPT = #{isNrmlEqpt},</if>
- <if test="isCheck != null and isCheck != ''">IS_CHECK = #{isCheck},</if>
- <if test="isBuildRta != null and isBuildRta != ''">IS_BUILD_RTA = #{isBuildRta},</if>
- <if test="isRecord != null and isRecord != ''">IS_RECORD = #{isRecord},</if>
- <if test="isNwtrEqpt != null and isNwtrEqpt != ''">IS_NWTR_EQPT = #{isNwtrEqpt},</if>
- <if test="isSndMchnsm != null and isSndMchnsm != ''">IS_SND_MCHNSM = #{isSndMchnsm},</if>
- <if test="isTest != null and isTest != ''">IS_TEST = #{isTest},</if>
- <if test="isAudit != null and isAudit != ''">IS_AUDIT = #{isAudit},</if>
- <if test="isBuildSvi != null and isBuildSvi != ''">IS_BUILD_SVI = #{isBuildSvi},</if>
- <if test="isWaterEffect != null and isWaterEffect != ''">IS_WATER_EFFECT = #{isWaterEffect},</if>
- <if test="isTechRnvtn != null and isTechRnvtn != ''">IS_TECH_RNVTN = #{isTechRnvtn},</if>
- <if test="isUncnvWater != null and isUncnvWater != ''">IS_UNCNV_WATER = #{isUncnvWater},</if>
- <if test="isWaterSys != null and isWaterSys != ''">IS_WATER_SYS = #{isWaterSys},</if>
- <if test="isSavAdvr != null and isSavAdvr != ''">IS_SAV_ADVR = #{isSavAdvr},</if>
- <if test="isNnvtWork != null and isNnvtWork != ''">IS_NNVT_WORK = #{isNnvtWork},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|