BisInspWtuntRgstrHotelDao.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="cn.com.goldenwater.dcproj.dao.BisInspWtuntRgstrHotelDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel" id="bisInspWtuntRgstrHotelResultMap">
  5. <result property="id" column="ID" />
  6. <result property="rgstrId" column="RGSTR_ID" />
  7. <result property="hotelStar" column="HOTEL_STAR" />
  8. <result property="bedNum" column="BED_NUM" />
  9. <result property="occRate" column="OCC_RATE" />
  10. <result property="fctwu18" column="FCTWU18" />
  11. <result property="fctwu19" column="FCTWU19" />
  12. <result property="isPlWs" column="IS_PL_WS" />
  13. <result property="planDpt" column="PLAN_DPT" />
  14. <result property="planUseWw18" column="PLAN_USE_WW18" />
  15. <result property="planUseWw19" column="PLAN_USE_WW19" />
  16. <result property="isOvPlanUseWw" column="IS_OV_PLAN_USE_WW" />
  17. <result property="isExeTopmus" column="IS_EXE_TOPMUS" />
  18. <result property="isNowu" column="IS_NOWU" />
  19. <result property="owMth" column="OW_MTH" />
  20. <result property="nowu19" column="NOWU19" />
  21. <result property="isBuldSrarfwc" column="IS_BULD_SRARFWC" />
  22. <result property="uwu" column="UWU" />
  23. <result property="uwuWu" column="UWU_WU" />
  24. <result property="isIowsaouWmf" column="IS_IOWSAOU_WMF" />
  25. <result property="wmfIsNr" column="WMF_IS_NR" />
  26. <result property="orasbowuIsComp" column="ORASBOWU_IS_COMP" />
  27. <result property="isPwsikwua" column="IS_PWSIKWUA" />
  28. <result property="intm" column="INTM" />
  29. <result property="uptm" column="UPTM" />
  30. <result property="status" column="STATUS"/>
  31. <result property="fctwu18Well" column="FCTWU18_WELL"/>
  32. <result property="fctwu19Well" column="FCTWU19_WELL"/>
  33. <result property="fctwu18Swhs" column="FCTWU18_SWHS"/>
  34. <result property="fctwu19Swhs" column="FCTWU19_SWHS"/>
  35. </resultMap>
  36. <sql id="table_columns">
  37. ID,
  38. RGSTR_ID,
  39. HOTEL_STAR,
  40. BED_NUM,
  41. OCC_RATE,
  42. FCTWU18,
  43. FCTWU19,
  44. FCTWU18_WELL,
  45. FCTWU19_WELL,
  46. FCTWU18_SWHS,
  47. FCTWU19_SWHS,
  48. IS_PL_WS,
  49. PLAN_DPT,
  50. PLAN_USE_WW18,
  51. PLAN_USE_WW19,
  52. IS_OV_PLAN_USE_WW,
  53. IS_EXE_TOPMUS,
  54. IS_NOWU,
  55. OW_MTH,
  56. NOWU19,
  57. IS_BULD_SRARFWC,
  58. UWU,
  59. UWU_WU,
  60. IS_IOWSAOU_WMF,
  61. WMF_IS_NR,
  62. ORASBOWU_IS_COMP,
  63. IS_PWSIKWUA,
  64. INTM,
  65. UPTM,
  66. STATUS
  67. </sql>
  68. <sql id="entity_properties">
  69. #{id},
  70. #{rgstrId},
  71. #{hotelStar},
  72. #{bedNum},
  73. #{occRate},
  74. #{fctwu18},
  75. #{fctwu19},
  76. #{fctwu18Well},
  77. #{fctwu19Well},
  78. #{fctwu18Swhs},
  79. #{fctwu19Swhs},
  80. #{isPlWs},
  81. #{planDpt},
  82. #{planUseWw18},
  83. #{planUseWw19},
  84. #{isOvPlanUseWw},
  85. #{isExeTopmus},
  86. #{isNowu},
  87. #{owMth},
  88. #{nowu19},
  89. #{isBuldSrarfwc},
  90. #{uwu},
  91. #{uwuWu},
  92. #{isIowsaouWmf},
  93. #{wmfIsNr},
  94. #{orasbowuIsComp},
  95. #{isPwsikwua},
  96. #{intm},
  97. #{uptm},
  98. #{status}
  99. </sql>
  100. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  101. <sql id="page_where">
  102. <trim prefix="where" prefixOverrides="and | or ">
  103. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  104. <if test="hotelStar != null and hotelStar != ''">and HOTEL_STAR = #{hotelStar}</if>
  105. <if test="bedNum != null and bedNum != ''">and BED_NUM = #{bedNum}</if>
  106. <if test="occRate != null and occRate != ''">and OCC_RATE = #{occRate}</if>
  107. <if test="fctwu18 != null and fctwu18 != ''">and FCTWU18 = #{fctwu18}</if>
  108. <if test="fctwu19 != null and fctwu19 != ''">and FCTWU19 = #{fctwu19}</if>
  109. <if test="fctwu18Well != null and fctwu18Well != ''">and FCTWU18_WELL = #{fctwu18Well}</if>
  110. <if test="fctwu19Well != null and fctwu19Well != ''">and FCTWU19_WELL = #{fctwu19Well}</if>
  111. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">and FCTWU18_SWHS = #{fctwu18Swhs}</if>
  112. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">and FCTWU19_SWHS = #{fctwu19Swhs}</if>
  113. <if test="isPlWs != null and isPlWs != ''">and IS_PL_WS = #{isPlWs}</if>
  114. <if test="planDpt != null and planDpt != ''">and PLAN_DPT = #{planDpt}</if>
  115. <if test="planUseWw18 != null and planUseWw18 != ''">and PLAN_USE_WW18 = #{planUseWw18}</if>
  116. <if test="planUseWw19 != null and planUseWw19 != ''">and PLAN_USE_WW19 = #{planUseWw19}</if>
  117. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">and IS_OV_PLAN_USE_WW = #{isOvPlanUseWw}</if>
  118. <if test="isExeTopmus != null and isExeTopmus != ''">and IS_EXE_TOPMUS = #{isExeTopmus}</if>
  119. <if test="isNowu != null and isNowu != ''">and IS_NOWU = #{isNowu}</if>
  120. <if test="owMth != null and owMth != ''">and OW_MTH = #{owMth}</if>
  121. <if test="nowu19 != null and nowu19 != ''">and NOWU19 = #{nowu19}</if>
  122. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">and IS_BULD_SRARFWC = #{isBuldSrarfwc}</if>
  123. <if test="uwu != null and uwu != ''">and UWU = #{uwu}</if>
  124. <if test="uwuWu != null and uwuWu != ''">and UWU_WU = #{uwuWu}</if>
  125. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">and IS_IOWSAOU_WMF = #{isIowsaouWmf}</if>
  126. <if test="wmfIsNr != null and wmfIsNr != ''">and WMF_IS_NR = #{wmfIsNr}</if>
  127. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">and ORASBOWU_IS_COMP = #{orasbowuIsComp}</if>
  128. <if test="isPwsikwua != null and isPwsikwua != ''">and IS_PWSIKWUA = #{isPwsikwua}</if>
  129. <if test="intm != null">and INTM = #{intm}</if>
  130. <if test="uptm != null">and UPTM = #{uptm}</if>
  131. <if test="status != null and status != ''">and STATUS = #{status}</if>
  132. </trim>
  133. </sql>
  134. <select id="get" resultMap="bisInspWtuntRgstrHotelResultMap" parameterType="String" >
  135. select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL where ID = #{id}
  136. </select>
  137. <select id="getBy" resultMap="bisInspWtuntRgstrHotelResultMap">
  138. select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
  139. </select>
  140. <select id="findAll" resultMap="bisInspWtuntRgstrHotelResultMap">
  141. select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL
  142. </select>
  143. <select id="findList" resultMap="bisInspWtuntRgstrHotelResultMap">
  144. select <include refid="table_columns" /> from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
  145. </select>
  146. <select id="selectCount" resultType="int" >
  147. select count(ID) from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
  148. </select>
  149. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
  150. insert into BIS_INSP_WTUNT_RGSTR_HOTEL( <include refid="table_columns" /> )
  151. values ( <include refid="entity_properties" /> )
  152. </insert>
  153. <delete id="delete" parameterType="java.lang.String">
  154. delete from BIS_INSP_WTUNT_RGSTR_HOTEL where ID = #{id}
  155. </delete>
  156. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
  157. delete from BIS_INSP_WTUNT_RGSTR_HOTEL <include refid="page_where" />
  158. </delete>
  159. <update id="deleteInFlag" parameterType="java.lang.String">
  160. update BIS_INSP_WTUNT_RGSTR_HOTEL set flag_valid = 0 where>ID = #{id}
  161. </update>
  162. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
  163. update BIS_INSP_WTUNT_RGSTR_HOTEL
  164. <trim prefix="set" suffixOverrides=",">
  165. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  166. <if test="hotelStar != null and hotelStar != ''">HOTEL_STAR = #{hotelStar},</if>
  167. <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
  168. <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
  169. <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
  170. <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
  171. <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
  172. <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
  173. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
  174. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
  175. <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
  176. <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
  177. <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
  178. <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
  179. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
  180. <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
  181. <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
  182. <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
  183. <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
  184. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
  185. <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
  186. <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
  187. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
  188. <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
  189. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
  190. <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
  191. <if test="intm != null">INTM = #{intm},</if>
  192. <if test="uptm != null">UPTM = #{uptm},</if>
  193. <if test="status != null and status != ''">STATUS = #{status},</if>
  194. </trim>
  195. <where>ID = #{id}</where>
  196. </update>
  197. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrHotel">
  198. update BIS_INSP_WTUNT_RGSTR_HOTEL
  199. <trim prefix="set" suffixOverrides=",">
  200. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  201. <if test="hotelStar != null and hotelStar != ''">HOTEL_STAR = #{hotelStar},</if>
  202. <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
  203. <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
  204. <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
  205. <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
  206. <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
  207. <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
  208. <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
  209. <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
  210. <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
  211. <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
  212. <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
  213. <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
  214. <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
  215. <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
  216. <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
  217. <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
  218. <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
  219. <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
  220. <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
  221. <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
  222. <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
  223. <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
  224. <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
  225. <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
  226. <if test="intm != null">INTM = #{intm},</if>
  227. <if test="uptm != null">UPTM = #{uptm},</if>
  228. <if test="status != null and status != ''">STATUS = #{status},</if>
  229. </trim>
  230. <include refid="page_where" />
  231. </update>
  232. <!-- 其他自定义SQL -->
  233. </mapper>