| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?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.BisInspSvwtWuntRgstrWsuswDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWsusw" id="bisInspSvwtWuntRgstrWsuswResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="gtWsuDt" column="GT_WSU_DT"/>
- <result property="isWsuDtRev" column="IS_WSU_DT_REV"/>
- <result property="wsuDtRevDt" column="WSU_DT_REV_DT"/>
- <result property="isBuldWcms" column="IS_BULD_WCMS"/>
- <result property="isExpWmp" column="IS_EXP_WMP"/>
- <result property="isPutWsphwsss" column="IS_PUT_WSPHWSSS"/>
- <result property="isOalWcpea" column="IS_OAL_WCPEA"/>
- <result property="isWbt" column="IS_WBT"/>
- <result property="isHasSdeWea" column="IS_HAS_SDE_WEA"/>
- <result property="isHasRad" column="IS_HAS_RAD"/>
- <result property="isHasRcauWrorf" column="IS_HAS_RCAU_WRORF"/>
- <result property="oth" column="OTH"/>
- <result property="persId" column="PERS_ID"/>
- <result property="inTm" column="IN_TM"/>
- <result property="upTm" column="UP_TM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="wsuRa" column="WSU_RA"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- GT_WSU_DT,
- IS_WSU_DT_REV,
- WSU_DT_REV_DT,
- IS_BULD_WCMS,
- IS_EXP_WMP,
- IS_PUT_WSPHWSSS,
- IS_OAL_WCPEA,
- IS_WBT,
- IS_HAS_SDE_WEA,
- IS_HAS_RAD,
- IS_HAS_RCAU_WRORF,
- OTH,
- PERS_ID,
- IN_TM,
- UP_TM,
- DATA_STAT,
- WSU_RA
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{gtWsuDt},
- #{isWsuDtRev},
- #{wsuDtRevDt},
- #{isBuldWcms},
- #{isExpWmp},
- #{isPutWsphwsss},
- #{isOalWcpea},
- #{isWbt},
- #{isHasSdeWea},
- #{isHasRad},
- #{isHasRcauWrorf},
- #{oth},
- #{persId},
- #{inTm},
- #{upTm},
- #{dataStat},
- #{wsuRa}
- </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="gtWsuDt != null">and GT_WSU_DT = #{gtWsuDt}</if>
- <if test="isWsuDtRev != null and isWsuDtRev != ''">and IS_WSU_DT_REV = #{isWsuDtRev}</if>
- <if test="wsuDtRevDt != null">and WSU_DT_REV_DT = #{wsuDtRevDt}</if>
- <if test="isBuldWcms != null and isBuldWcms != ''">and IS_BULD_WCMS = #{isBuldWcms}</if>
- <if test="isExpWmp != null and isExpWmp != ''">and IS_EXP_WMP = #{isExpWmp}</if>
- <if test="isPutWsphwsss != null and isPutWsphwsss != ''">and IS_PUT_WSPHWSSS = #{isPutWsphwsss}</if>
- <if test="isOalWcpea != null and isOalWcpea != ''">and IS_OAL_WCPEA = #{isOalWcpea}</if>
- <if test="isWbt != null and isWbt != ''">and IS_WBT = #{isWbt}</if>
- <if test="isHasSdeWea != null and isHasSdeWea != ''">and IS_HAS_SDE_WEA = #{isHasSdeWea}</if>
- <if test="isHasRad != null and isHasRad != ''">and IS_HAS_RAD = #{isHasRad}</if>
- <if test="isHasRcauWrorf != null and isHasRcauWrorf != ''">and IS_HAS_RCAU_WRORF = #{isHasRcauWrorf}</if>
- <if test="oth != null and oth != ''">and OTH = #{oth}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="inTm != null">and IN_TM = #{inTm}</if>
- <if test="upTm != null">and UP_TM = #{upTm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="wsuRa != null and wsuRa != ''">and WSU_RA = #{wsuRa}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSvwtWuntRgstrWsuswResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSvwtWuntRgstrWsuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSvwtWuntRgstrWsuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW
- </select>
- <select id="findList" resultMap="bisInspSvwtWuntRgstrWsuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWsusw">
- insert into BIS_INSP_SVWT_WUNT_RGSTR_WSUSW( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWsusw">
- delete from BIS_INSP_SVWT_WUNT_RGSTR_WSUSW <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SVWT_WUNT_RGSTR_WSUSW set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWsusw">
- update BIS_INSP_SVWT_WUNT_RGSTR_WSUSW
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="gtWsuDt != null">GT_WSU_DT = #{gtWsuDt},</if>
- <if test="isWsuDtRev != null and isWsuDtRev != ''">IS_WSU_DT_REV = #{isWsuDtRev},</if>
- <if test="wsuDtRevDt != null">WSU_DT_REV_DT = #{wsuDtRevDt},</if>
- <if test="isBuldWcms != null and isBuldWcms != ''">IS_BULD_WCMS = #{isBuldWcms},</if>
- <if test="isExpWmp != null and isExpWmp != ''">IS_EXP_WMP = #{isExpWmp},</if>
- <if test="isPutWsphwsss != null and isPutWsphwsss != ''">IS_PUT_WSPHWSSS = #{isPutWsphwsss},</if>
- <if test="isOalWcpea != null and isOalWcpea != ''">IS_OAL_WCPEA = #{isOalWcpea},</if>
- <if test="isWbt != null and isWbt != ''">IS_WBT = #{isWbt},</if>
- <if test="isHasSdeWea != null and isHasSdeWea != ''">IS_HAS_SDE_WEA = #{isHasSdeWea},</if>
- <if test="isHasRad != null and isHasRad != ''">IS_HAS_RAD = #{isHasRad},</if>
- <if test="isHasRcauWrorf != null and isHasRcauWrorf != ''">IS_HAS_RCAU_WRORF = #{isHasRcauWrorf},</if>
- <if test="oth != null">OTH = #{oth},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="wsuRa != null and wsuRa != ''">WSU_RA = #{wsuRa},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWsusw">
- update BIS_INSP_SVWT_WUNT_RGSTR_WSUSW
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="gtWsuDt != null">GT_WSU_DT = #{gtWsuDt},</if>
- <if test="isWsuDtRev != null and isWsuDtRev != ''">IS_WSU_DT_REV = #{isWsuDtRev},</if>
- <if test="wsuDtRevDt != null">WSU_DT_REV_DT = #{wsuDtRevDt},</if>
- <if test="isBuldWcms != null and isBuldWcms != ''">IS_BULD_WCMS = #{isBuldWcms},</if>
- <if test="isExpWmp != null and isExpWmp != ''">IS_EXP_WMP = #{isExpWmp},</if>
- <if test="isPutWsphwsss != null and isPutWsphwsss != ''">IS_PUT_WSPHWSSS = #{isPutWsphwsss},</if>
- <if test="isOalWcpea != null and isOalWcpea != ''">IS_OAL_WCPEA = #{isOalWcpea},</if>
- <if test="isWbt != null and isWbt != ''">IS_WBT = #{isWbt},</if>
- <if test="isHasSdeWea != null and isHasSdeWea != ''">IS_HAS_SDE_WEA = #{isHasSdeWea},</if>
- <if test="isHasRad != null and isHasRad != ''">IS_HAS_RAD = #{isHasRad},</if>
- <if test="isHasRcauWrorf != null and isHasRcauWrorf != ''">IS_HAS_RCAU_WRORF = #{isHasRcauWrorf},</if>
- <if test="oth != null">OTH = #{oth},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="wsuRa != null and wsuRa != ''">WSU_RA = #{wsuRa},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|