| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?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.BisInspWtuntRgstrHotelDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel" id="bisInspWtuntRgstrHotelResultMap">
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="hotelStar" column="HOTEL_STAR" />
- <result property="bedNum" column="BED_NUM" />
- <result property="occRate" column="OCC_RATE" />
- <result property="fctwu18" column="FCTWU18" />
- <result property="fctwu19" column="FCTWU19" />
- <result property="isPlWs" column="IS_PL_WS" />
- <result property="planDpt" column="PLAN_DPT" />
- <result property="planUseWw18" column="PLAN_USE_WW18" />
- <result property="planUseWw19" column="PLAN_USE_WW19" />
- <result property="isOvPlanUseWw" column="IS_OV_PLAN_USE_WW" />
- <result property="isExeTopmus" column="IS_EXE_TOPMUS" />
- <result property="isNowu" column="IS_NOWU" />
- <result property="owMth" column="OW_MTH" />
- <result property="nowu19" column="NOWU19" />
- <result property="isBuldSrarfwc" column="IS_BULD_SRARFWC" />
- <result property="uwu" column="UWU" />
- <result property="uwuWu" column="UWU_WU" />
- <result property="isIowsaouWmf" column="IS_IOWSAOU_WMF" />
- <result property="wmfIsNr" column="WMF_IS_NR" />
- <result property="orasbowuIsComp" column="ORASBOWU_IS_COMP" />
- <result property="isPwsikwua" column="IS_PWSIKWUA" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- <result property="status" column="STATUS"/>
- <result property="fctwu18Well" column="FCTWU18_WELL"/>
- <result property="fctwu19Well" column="FCTWU19_WELL"/>
- <result property="fctwu18Swhs" column="FCTWU18_SWHS"/>
- <result property="fctwu19Swhs" column="FCTWU19_SWHS"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- HOTEL_STAR,
- BED_NUM,
- OCC_RATE,
- FCTWU18,
- FCTWU19,
- FCTWU18_WELL,
- FCTWU19_WELL,
- FCTWU18_SWHS,
- FCTWU19_SWHS,
- IS_PL_WS,
- PLAN_DPT,
- PLAN_USE_WW18,
- PLAN_USE_WW19,
- IS_OV_PLAN_USE_WW,
- IS_EXE_TOPMUS,
- IS_NOWU,
- OW_MTH,
- NOWU19,
- IS_BULD_SRARFWC,
- UWU,
- UWU_WU,
- IS_IOWSAOU_WMF,
- WMF_IS_NR,
- ORASBOWU_IS_COMP,
- IS_PWSIKWUA,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{hotelStar},
- #{bedNum},
- #{occRate},
- #{fctwu18},
- #{fctwu19},
- #{fctwu18Well},
- #{fctwu19Well},
- #{fctwu18Swhs},
- #{fctwu19Swhs},
- #{isPlWs},
- #{planDpt},
- #{planUseWw18},
- #{planUseWw19},
- #{isOvPlanUseWw},
- #{isExeTopmus},
- #{isNowu},
- #{owMth},
- #{nowu19},
- #{isBuldSrarfwc},
- #{uwu},
- #{uwuWu},
- #{isIowsaouWmf},
- #{wmfIsNr},
- #{orasbowuIsComp},
- #{isPwsikwua},
- #{intm},
- #{uptm},
- #{status}
- </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="hotelStar != null and hotelStar != ''">and HOTEL_STAR = #{hotelStar}</if>
- <if test="bedNum != null and bedNum != ''">and BED_NUM = #{bedNum}</if>
- <if test="occRate != null and occRate != ''">and OCC_RATE = #{occRate}</if>
- <if test="fctwu18 != null and fctwu18 != ''">and FCTWU18 = #{fctwu18}</if>
- <if test="fctwu19 != null and fctwu19 != ''">and FCTWU19 = #{fctwu19}</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">and FCTWU18_WELL = #{fctwu18Well}</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">and FCTWU19_WELL = #{fctwu19Well}</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">and FCTWU18_SWHS = #{fctwu18Swhs}</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">and FCTWU19_SWHS = #{fctwu19Swhs}</if>
- <if test="isPlWs != null and isPlWs != ''">and IS_PL_WS = #{isPlWs}</if>
- <if test="planDpt != null and planDpt != ''">and PLAN_DPT = #{planDpt}</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">and PLAN_USE_WW18 = #{planUseWw18}</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">and PLAN_USE_WW19 = #{planUseWw19}</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">and IS_OV_PLAN_USE_WW = #{isOvPlanUseWw}</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">and IS_EXE_TOPMUS = #{isExeTopmus}</if>
- <if test="isNowu != null and isNowu != ''">and IS_NOWU = #{isNowu}</if>
- <if test="owMth != null and owMth != ''">and OW_MTH = #{owMth}</if>
- <if test="nowu19 != null and nowu19 != ''">and NOWU19 = #{nowu19}</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">and IS_BULD_SRARFWC = #{isBuldSrarfwc}</if>
- <if test="uwu != null and uwu != ''">and UWU = #{uwu}</if>
- <if test="uwuWu != null and uwuWu != ''">and UWU_WU = #{uwuWu}</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">and IS_IOWSAOU_WMF = #{isIowsaouWmf}</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">and WMF_IS_NR = #{wmfIsNr}</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">and ORASBOWU_IS_COMP = #{orasbowuIsComp}</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">and IS_PWSIKWUA = #{isPwsikwua}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWtuntRgstrHotelResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWtuntRgstrHotelResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWtuntRgstrHotelResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL
- </select>
- <select id="findList" resultMap="bisInspWtuntRgstrHotelResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
- insert into BIS_INSP_WTUNT_RGSTR_HOTEL( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WTUNT_RGSTR_HOTEL where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
- delete from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WTUNT_RGSTR_HOTEL set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
- update BIS_INSP_WTUNT_RGSTR_HOTEL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="hotelStar != null and hotelStar != ''">HOTEL_STAR = #{hotelStar},</if>
- <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
- <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
- <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
- <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
- <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
- <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
- <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
- <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
- <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
- update BIS_INSP_WTUNT_RGSTR_HOTEL
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="hotelStar != null and hotelStar != ''">HOTEL_STAR = #{hotelStar},</if>
- <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
- <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
- <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
- <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
- <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
- <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
- <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
- <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
- <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|