| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <?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.BisInspSvwtWuntRgstrWuuswDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWuusw" id="bisInspSvwtWuntRgstrWuuswResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="relUseWw" column="REL_USE_WW"/>
- <result property="mainPrdNum" column="MAIN_PRD_NUM"/>
- <result property="mainPrdUt" column="MAIN_PRD_UT"/>
- <result property="wtDuty" column="WT_DUTY"/>
- <result property="wtDutyUt" column="WT_DUTY_UT"/>
- <result property="isDutyWs" column="IS_DUTY_WS"/>
- <result property="isPlWs" column="IS_PL_WS"/>
- <result property="planUseWw" column="PLAN_USE_WW"/>
- <result property="isOvPlanUseWw" column="IS_OV_PLAN_USE_WW"/>
- <result property="isRpPlanUseWw" column="IS_RP_PLAN_USE_WW"/>
- <result property="isIomf" column="IS_IOMF"/>
- <result property="isIomfRun" column="IS_IOMF_RUN"/>
- <result property="isEapOrswu" column="IS_EAP_ORSWU"/>
- <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="wtDutyUtOth" column="WT_DUTY_UT_OTH"/>
- <result property="mainPrdUtOth" column="MAIN_PRD_UT_OTH"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- REL_USE_WW,
- MAIN_PRD_NUM,
- MAIN_PRD_UT,
- WT_DUTY,
- WT_DUTY_UT,
- IS_DUTY_WS,
- IS_PL_WS,
- PLAN_USE_WW,
- IS_OV_PLAN_USE_WW,
- IS_RP_PLAN_USE_WW,
- IS_IOMF,
- IS_IOMF_RUN,
- IS_EAP_ORSWU,
- PERS_ID,
- IN_TM,
- UP_TM,
- DATA_STAT,
- WT_DUTY_UT_OTH,
- MAIN_PRD_UT_OTH
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{relUseWw},
- #{mainPrdNum},
- #{mainPrdUt},
- #{wtDuty},
- #{wtDutyUt},
- #{isDutyWs},
- #{isPlWs},
- #{planUseWw},
- #{isOvPlanUseWw},
- #{isRpPlanUseWw},
- #{isIomf},
- #{isIomfRun},
- #{isEapOrswu},
- #{persId},
- #{inTm},
- #{upTm},
- #{dataStat},
- #{wtDutyUtOth},
- #{mainPrdUtOth}
- </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="relUseWw != null and relUseWw != ''">and REL_USE_WW = #{relUseWw}</if>
- <if test="mainPrdNum != null and mainPrdNum != ''">and MAIN_PRD_NUM = #{mainPrdNum}</if>
- <if test="mainPrdUt != null and mainPrdUt != ''">and MAIN_PRD_UT = #{mainPrdUt}</if>
- <if test="wtDuty != null and wtDuty != ''">and WT_DUTY = #{wtDuty}</if>
- <if test="wtDutyUt != null and wtDutyUt != ''">and WT_DUTY_UT = #{wtDutyUt}</if>
- <if test="isDutyWs != null and isDutyWs != ''">and IS_DUTY_WS = #{isDutyWs}</if>
- <if test="isPlWs != null and isPlWs != ''">and IS_PL_WS = #{isPlWs}</if>
- <if test="planUseWw != null and planUseWw != ''">and PLAN_USE_WW = #{planUseWw}</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">and IS_OV_PLAN_USE_WW = #{isOvPlanUseWw}</if>
- <if test="isRpPlanUseWw != null and isRpPlanUseWw != ''">and IS_RP_PLAN_USE_WW = #{isRpPlanUseWw}</if>
- <if test="isIomf != null and isIomf != ''">and IS_IOMF = #{isIomf}</if>
- <if test="isIomfRun != null and isIomfRun != ''">and IS_IOMF_RUN = #{isIomfRun}</if>
- <if test="isEapOrswu != null and isEapOrswu != ''">and IS_EAP_ORSWU = #{isEapOrswu}</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="wtDutyUtOth != null and wtDutyUtOth != ''">and WT_DUTY_UT_OTH = #{wtDutyUtOth}</if>
- <if test="mainPrdUtOth != null and mainPrdUtOth != ''">and MAIN_PRD_UT_OTH = #{mainPrdUtOth}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSvwtWuntRgstrWuuswResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSvwtWuntRgstrWuuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSvwtWuntRgstrWuuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW
- </select>
- <select id="findList" resultMap="bisInspSvwtWuntRgstrWuuswResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWuusw">
- insert into BIS_INSP_SVWT_WUNT_RGSTR_WUUSW( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWuusw">
- delete from BIS_INSP_SVWT_WUNT_RGSTR_WUUSW <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SVWT_WUNT_RGSTR_WUUSW set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWuusw">
- update BIS_INSP_SVWT_WUNT_RGSTR_WUUSW
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="relUseWw != null">REL_USE_WW = #{relUseWw},</if>
- <if test="mainPrdNum != null">MAIN_PRD_NUM = #{mainPrdNum},</if>
- <if test="mainPrdUt != null">MAIN_PRD_UT = #{mainPrdUt},</if>
- <if test="wtDuty != null">WT_DUTY = #{wtDuty},</if>
- <if test="wtDutyUt != null and wtDutyUt != ''">WT_DUTY_UT = #{wtDutyUt},</if>
- <if test="isDutyWs != null and isDutyWs != ''">IS_DUTY_WS = #{isDutyWs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planUseWw != null">PLAN_USE_WW = #{planUseWw},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isRpPlanUseWw != null and isRpPlanUseWw != ''">IS_RP_PLAN_USE_WW = #{isRpPlanUseWw},</if>
- <if test="isIomf != null and isIomf != ''">IS_IOMF = #{isIomf},</if>
- <if test="isIomfRun != null and isIomfRun != ''">IS_IOMF_RUN = #{isIomfRun},</if>
- <if test="isEapOrswu != null and isEapOrswu != ''">IS_EAP_ORSWU = #{isEapOrswu},</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="wtDutyUtOth != null and wtDutyUtOth != ''">WT_DUTY_UT_OTH = #{wtDutyUtOth},</if>
- <if test="mainPrdUtOth != null and mainPrdUtOth != ''">MAIN_PRD_UT_OTH = #{mainPrdUtOth},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstrWuusw">
- update BIS_INSP_SVWT_WUNT_RGSTR_WUUSW
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="relUseWw != null and relUseWw != ''">REL_USE_WW = #{relUseWw},</if>
- <if test="mainPrdNum != null and mainPrdNum != ''">MAIN_PRD_NUM = #{mainPrdNum},</if>
- <if test="mainPrdUt != null and mainPrdUt != ''">MAIN_PRD_UT = #{mainPrdUt},</if>
- <if test="wtDuty != null and wtDuty != ''">WT_DUTY = #{wtDuty},</if>
- <if test="wtDutyUt != null and wtDutyUt != ''">WT_DUTY_UT = #{wtDutyUt},</if>
- <if test="isDutyWs != null and isDutyWs != ''">IS_DUTY_WS = #{isDutyWs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planUseWw != null and planUseWw != ''">PLAN_USE_WW = #{planUseWw},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isRpPlanUseWw != null and isRpPlanUseWw != ''">IS_RP_PLAN_USE_WW = #{isRpPlanUseWw},</if>
- <if test="isIomf != null and isIomf != ''">IS_IOMF = #{isIomf},</if>
- <if test="isIomfRun != null and isIomfRun != ''">IS_IOMF_RUN = #{isIomfRun},</if>
- <if test="isEapOrswu != null and isEapOrswu != ''">IS_EAP_ORSWU = #{isEapOrswu},</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="wtDutyUtOth != null and wtDutyUtOth != ''">WT_DUTY_UT_OTH = #{wtDutyUtOth},</if>
- <if test="mainPrdUtOth != null and mainPrdUtOth != ''">MAIN_PRD_UT_OTH = #{mainPrdUtOth},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|