| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?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.BisInspSvwtAreaRgstrWswmDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm" id="bisInspSvwtAreaRgstrWswmResultMap">
- <result property="upTm" column="UP_TM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="useWwYy" column="USE_WW_YY"/>
- <result property="relUseWw" column="REL_USE_WW"/>
- <result property="useWwIsOp" column="USE_WW_IS_OP"/>
- <result property="indWu" column="IND_WU"/>
- <result property="agrWu" column="AGR_WU"/>
- <result property="lifeWu" column="LIFE_WU"/>
- <result property="ecoWu" column="ECO_WU"/>
- <result property="gdpWu" column="GDP_WU"/>
- <result property="indAddWu" column="IND_ADD_WU"/>
- <result property="irrR" column="IRR_R"/>
- <result property="oth" column="OTH"/>
- <result property="othRt" column="OTH_RT"/>
- <result property="othRtVal" column="OTH_RT_VAL"/>
- <result property="othUseWw" column="OTH_USE_WW"/>
- <result property="useWwYr" column="USE_WW_YR"/>
- <result property="useWwIsTask" column="USE_WW_IS_TASK"/>
- <result property="wpRdIsComp" column="WP_RD_IS_COMP"/>
- <result property="wpOfIsComp" column="WP_OF_IS_COMP"/>
- <result property="pwmidUnitNum" column="PWMID_UNIT_NUM"/>
- <result property="pwmiUnitNum" column="PWMI_UNIT_NUM"/>
- <result property="pwmidPwmiR" column="PWMID_PWMI_R"/>
- <result property="apwuIsIwtopwuar" column="APWU_IS_IWTOPWUAR"/>
- <result property="isUmwImc" column="IS_UMW_IMC"/>
- <result property="apwuIsAwupou" column="APWU_IS_AWUPOU"/>
- <result property="buldWcNum" column="BULD_WC_NUM"/>
- <result property="buldCompNum" column="BULD_COMP_NUM"/>
- <result property="buldTituNum" column="BULD_TITU_NUM"/>
- <result property="buldOfficeNum" column="BULD_OFFICE_NUM"/>
- <result property="buldUnvstNum" column="BULD_UNVST_NUM"/>
- <result property="buldSchoolNum" column="BULD_SCHOOL_NUM"/>
- <result property="buldOthTituNum" column="BULD_OTH_TITU_NUM"/>
- <result property="buldOthWcNum" column="BULD_OTH_WC_NUM"/>
- <result property="persId" column="PERS_ID"/>
- <result property="inTm" column="IN_TM"/>
- <result property="buldPlotNum" column="BULD_PLOT_NUM"/>
- </resultMap>
-
- <sql id="table_columns">
- UP_TM,
- DATA_STAT,
- ID,
- RGSTR_ID,
- USE_WW_YY,
- REL_USE_WW,
- USE_WW_IS_OP,
- IND_WU,
- AGR_WU,
- LIFE_WU,
- ECO_WU,
- GDP_WU,
- IND_ADD_WU,
- IRR_R,
- OTH,
- OTH_RT,
- OTH_RT_VAL,
- OTH_USE_WW,
- USE_WW_YR,
- USE_WW_IS_TASK,
- WP_RD_IS_COMP,
- WP_OF_IS_COMP,
- PWMID_UNIT_NUM,
- PWMI_UNIT_NUM,
- PWMID_PWMI_R,
- APWU_IS_IWTOPWUAR,
- IS_UMW_IMC,
- APWU_IS_AWUPOU,
- BULD_WC_NUM,
- BULD_COMP_NUM,
- BULD_TITU_NUM,
- BULD_OFFICE_NUM,
- BULD_UNVST_NUM,
- BULD_SCHOOL_NUM,
- BULD_OTH_TITU_NUM,
- BULD_OTH_WC_NUM,
- PERS_ID,
- IN_TM,
- BULD_PLOT_NUM
- </sql>
- <sql id="entity_properties">
- #{upTm},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{useWwYy},
- #{relUseWw},
- #{useWwIsOp},
- #{indWu},
- #{agrWu},
- #{lifeWu},
- #{ecoWu},
- #{gdpWu},
- #{indAddWu},
- #{irrR},
- #{oth},
- #{othRt},
- #{othRtVal},
- #{othUseWw},
- #{useWwYr},
- #{useWwIsTask},
- #{wpRdIsComp},
- #{wpOfIsComp},
- #{pwmidUnitNum},
- #{pwmiUnitNum},
- #{pwmidPwmiR},
- #{apwuIsIwtopwuar},
- #{isUmwImc},
- #{apwuIsAwupou},
- #{buldWcNum},
- #{buldCompNum},
- #{buldTituNum},
- #{buldOfficeNum},
- #{buldUnvstNum},
- #{buldSchoolNum},
- #{buldOthTituNum},
- #{buldOthWcNum},
- #{persId},
- #{inTm},
- #{buldPlotNum}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="useWwYy != null and useWwYy != ''">and USE_WW_YY = #{useWwYy}</if>
- <if test="relUseWw != null and relUseWw != ''">and REL_USE_WW = #{relUseWw}</if>
- <if test="useWwIsOp != null and useWwIsOp != ''">and USE_WW_IS_OP = #{useWwIsOp}</if>
- <if test="indWu != null and indWu != ''">and IND_WU = #{indWu}</if>
- <if test="agrWu != null and agrWu != ''">and AGR_WU = #{agrWu}</if>
- <if test="lifeWu != null and lifeWu != ''">and LIFE_WU = #{lifeWu}</if>
- <if test="ecoWu != null and ecoWu != ''">and ECO_WU = #{ecoWu}</if>
- <if test="gdpWu != null and gdpWu != ''">and GDP_WU = #{gdpWu}</if>
- <if test="indAddWu != null and indAddWu != ''">and IND_ADD_WU = #{indAddWu}</if>
- <if test="irrR != null and irrR != ''">and IRR_R = #{irrR}</if>
- <if test="oth != null and oth != ''">and OTH = #{oth}</if>
- <if test="othRt != null and othRt != ''">and OTH_RT = #{othRt}</if>
- <if test="othRtVal != null and othRtVal != ''">and OTH_RT_VAL = #{othRtVal}</if>
- <if test="othUseWw != null and othUseWw != ''">and OTH_USE_WW = #{othUseWw}</if>
- <if test="useWwYr != null and useWwYr != ''">and USE_WW_YR = #{useWwYr}</if>
- <if test="useWwIsTask != null and useWwIsTask != ''">and USE_WW_IS_TASK = #{useWwIsTask}</if>
- <if test="wpRdIsComp != null and wpRdIsComp != ''">and WP_RD_IS_COMP = #{wpRdIsComp}</if>
- <if test="wpOfIsComp != null and wpOfIsComp != ''">and WP_OF_IS_COMP = #{wpOfIsComp}</if>
- <if test="pwmidUnitNum != null and pwmidUnitNum != ''">and PWMID_UNIT_NUM = #{pwmidUnitNum}</if>
- <if test="pwmiUnitNum != null and pwmiUnitNum != ''">and PWMI_UNIT_NUM = #{pwmiUnitNum}</if>
- <if test="pwmidPwmiR != null and pwmidPwmiR != ''">and PWMID_PWMI_R = #{pwmidPwmiR}</if>
- <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">and APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar}</if>
- <if test="isUmwImc != null and isUmwImc != ''">and IS_UMW_IMC = #{isUmwImc}</if>
- <if test="apwuIsAwupou != null and apwuIsAwupou != ''">and APWU_IS_AWUPOU = #{apwuIsAwupou}</if>
- <if test="buldWcNum != null and buldWcNum != ''">and BULD_WC_NUM = #{buldWcNum}</if>
- <if test="buldCompNum != null and buldCompNum != ''">and BULD_COMP_NUM = #{buldCompNum}</if>
- <if test="buldTituNum != null and buldTituNum != ''">and BULD_TITU_NUM = #{buldTituNum}</if>
- <if test="buldOfficeNum != null and buldOfficeNum != ''">and BULD_OFFICE_NUM = #{buldOfficeNum}</if>
- <if test="buldUnvstNum != null and buldUnvstNum != ''">and BULD_UNVST_NUM = #{buldUnvstNum}</if>
- <if test="buldSchoolNum != null and buldSchoolNum != ''">and BULD_SCHOOL_NUM = #{buldSchoolNum}</if>
- <if test="buldOthTituNum != null and buldOthTituNum != ''">and BULD_OTH_TITU_NUM = #{buldOthTituNum}</if>
- <if test="buldOthWcNum != null and buldOthWcNum != ''">and BULD_OTH_WC_NUM = #{buldOthWcNum}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="inTm != null">and IN_TM = #{inTm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSvwtAreaRgstrWswmResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM
- </select>
- <select id="findList" resultMap="bisInspSvwtAreaRgstrWswmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
- insert into BIS_INSP_SVWT_AREA_RGSTR_WSWM( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SVWT_AREA_RGSTR_WSWM where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
- delete from BIS_INSP_SVWT_AREA_RGSTR_WSWM <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SVWT_AREA_RGSTR_WSWM set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
- update BIS_INSP_SVWT_AREA_RGSTR_WSWM
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="useWwYy != null">USE_WW_YY = #{useWwYy},</if>
- <if test="relUseWw != null">REL_USE_WW = #{relUseWw},</if>
- <if test="useWwIsOp != null and useWwIsOp != ''">USE_WW_IS_OP = #{useWwIsOp},</if>
- <if test="indWu != null">IND_WU = #{indWu},</if>
- <if test="buldPlotNum != null">BULD_PLOT_NUM = #{buldPlotNum},</if>
- <if test="agrWu != null">AGR_WU = #{agrWu},</if>
- <if test="lifeWu != null">LIFE_WU = #{lifeWu},</if>
- <if test="ecoWu != null">ECO_WU = #{ecoWu},</if>
- <if test="gdpWu != null">GDP_WU = #{gdpWu},</if>
- <if test="indAddWu != null">IND_ADD_WU = #{indAddWu},</if>
- <if test="irrR != null">IRR_R = #{irrR},</if>
- <if test="oth != null">OTH = #{oth},</if>
- <if test="othRt != null">OTH_RT = #{othRt},</if>
- <if test="othRtVal != null">OTH_RT_VAL = #{othRtVal},</if>
- <if test="othUseWw != null">OTH_USE_WW = #{othUseWw},</if>
- <if test="useWwYr != null">USE_WW_YR = #{useWwYr},</if>
- <if test="useWwIsTask != null and useWwIsTask != ''">USE_WW_IS_TASK = #{useWwIsTask},</if>
- <if test="wpRdIsComp != null and wpRdIsComp != ''">WP_RD_IS_COMP = #{wpRdIsComp},</if>
- <if test="wpOfIsComp != null and wpOfIsComp != ''">WP_OF_IS_COMP = #{wpOfIsComp},</if>
- <if test="pwmidUnitNum != null">PWMID_UNIT_NUM = #{pwmidUnitNum},</if>
- <if test="pwmiUnitNum != null">PWMI_UNIT_NUM = #{pwmiUnitNum},</if>
- <if test="pwmidPwmiR != null">PWMID_PWMI_R = #{pwmidPwmiR},</if>
- <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar},</if>
- <if test="isUmwImc != null and isUmwImc != ''">IS_UMW_IMC = #{isUmwImc},</if>
- <if test="apwuIsAwupou != null and apwuIsAwupou != ''">APWU_IS_AWUPOU = #{apwuIsAwupou},</if>
- <if test="buldWcNum != null">BULD_WC_NUM = #{buldWcNum},</if>
- <if test="buldCompNum != null">BULD_COMP_NUM = #{buldCompNum},</if>
- <if test="buldTituNum != null">BULD_TITU_NUM = #{buldTituNum},</if>
- <if test="buldOfficeNum != null">BULD_OFFICE_NUM = #{buldOfficeNum},</if>
- <if test="buldUnvstNum != null">BULD_UNVST_NUM = #{buldUnvstNum},</if>
- <if test="buldSchoolNum != null">BULD_SCHOOL_NUM = #{buldSchoolNum},</if>
- <if test="buldOthTituNum != null">BULD_OTH_TITU_NUM = #{buldOthTituNum},</if>
- <if test="buldOthWcNum != null">BULD_OTH_WC_NUM = #{buldOthWcNum},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtAreaRgstrWswm">
- update BIS_INSP_SVWT_AREA_RGSTR_WSWM
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="useWwYy != null and useWwYy != ''">USE_WW_YY = #{useWwYy},</if>
- <if test="relUseWw != null and relUseWw != ''">REL_USE_WW = #{relUseWw},</if>
- <if test="useWwIsOp != null and useWwIsOp != ''">USE_WW_IS_OP = #{useWwIsOp},</if>
- <if test="indWu != null and indWu != ''">IND_WU = #{indWu},</if>
- <if test="buldPlotNum != null">BULD_PLOT_NUM = #{buldPlotNum},</if>
- <if test="agrWu != null and agrWu != ''">AGR_WU = #{agrWu},</if>
- <if test="lifeWu != null and lifeWu != ''">LIFE_WU = #{lifeWu},</if>
- <if test="ecoWu != null and ecoWu != ''">ECO_WU = #{ecoWu},</if>
- <if test="gdpWu != null and gdpWu != ''">GDP_WU = #{gdpWu},</if>
- <if test="indAddWu != null and indAddWu != ''">IND_ADD_WU = #{indAddWu},</if>
- <if test="irrR != null and irrR != ''">IRR_R = #{irrR},</if>
- <if test="oth != null and oth != ''">OTH = #{oth},</if>
- <if test="othRt != null and othRt != ''">OTH_RT = #{othRt},</if>
- <if test="othRtVal != null and othRtVal != ''">OTH_RT_VAL = #{othRtVal},</if>
- <if test="othUseWw != null and othUseWw != ''">OTH_USE_WW = #{othUseWw},</if>
- <if test="useWwYr != null and useWwYr != ''">USE_WW_YR = #{useWwYr},</if>
- <if test="useWwIsTask != null and useWwIsTask != ''">USE_WW_IS_TASK = #{useWwIsTask},</if>
- <if test="wpRdIsComp != null and wpRdIsComp != ''">WP_RD_IS_COMP = #{wpRdIsComp},</if>
- <if test="wpOfIsComp != null and wpOfIsComp != ''">WP_OF_IS_COMP = #{wpOfIsComp},</if>
- <if test="pwmidUnitNum != null and pwmidUnitNum != ''">PWMID_UNIT_NUM = #{pwmidUnitNum},</if>
- <if test="pwmiUnitNum != null and pwmiUnitNum != ''">PWMI_UNIT_NUM = #{pwmiUnitNum},</if>
- <if test="pwmidPwmiR != null and pwmidPwmiR != ''">PWMID_PWMI_R = #{pwmidPwmiR},</if>
- <if test="apwuIsIwtopwuar != null and apwuIsIwtopwuar != ''">APWU_IS_IWTOPWUAR = #{apwuIsIwtopwuar},</if>
- <if test="isUmwImc != null and isUmwImc != ''">IS_UMW_IMC = #{isUmwImc},</if>
- <if test="apwuIsAwupou != null and apwuIsAwupou != ''">APWU_IS_AWUPOU = #{apwuIsAwupou},</if>
- <if test="buldWcNum != null and buldWcNum != ''">BULD_WC_NUM = #{buldWcNum},</if>
- <if test="buldCompNum != null and buldCompNum != ''">BULD_COMP_NUM = #{buldCompNum},</if>
- <if test="buldTituNum != null and buldTituNum != ''">BULD_TITU_NUM = #{buldTituNum},</if>
- <if test="buldOfficeNum != null and buldOfficeNum != ''">BULD_OFFICE_NUM = #{buldOfficeNum},</if>
- <if test="buldUnvstNum != null and buldUnvstNum != ''">BULD_UNVST_NUM = #{buldUnvstNum},</if>
- <if test="buldSchoolNum != null and buldSchoolNum != ''">BULD_SCHOOL_NUM = #{buldSchoolNum},</if>
- <if test="buldOthTituNum != null and buldOthTituNum != ''">BULD_OTH_TITU_NUM = #{buldOthTituNum},</if>
- <if test="buldOthWcNum != null and buldOthWcNum != ''">BULD_OTH_WC_NUM = #{buldOthWcNum},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|