QwRoomDetailInfoMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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="com.tzld.piaoquan.risk.control.dao.mapper.QwRoomDetailInfoMapper">
  4. <resultMap id="BaseResultMap" type="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfo">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Sat May 24 01:31:56 CST 2025.
  9. -->
  10. <id column="room_id" jdbcType="VARCHAR" property="roomId" />
  11. <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
  12. <result column="infoticket" jdbcType="VARCHAR" property="infoticket" />
  13. <result column="update_time" jdbcType="BIGINT" property="updateTime" />
  14. <result column="total" jdbcType="INTEGER" property="total" />
  15. <result column="flag" jdbcType="TINYINT" property="flag" />
  16. <result column="create_time" jdbcType="BIGINT" property="createTime" />
  17. <result column="nickname" jdbcType="VARCHAR" property="nickname" />
  18. <result column="roomurl" jdbcType="VARCHAR" property="roomurl" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause">
  21. <!--
  22. WARNING - @mbg.generated
  23. This element is automatically generated by MyBatis Generator, do not modify.
  24. This element was generated on Sat May 24 01:31:56 CST 2025.
  25. -->
  26. <where>
  27. <foreach collection="oredCriteria" item="criteria" separator="or">
  28. <if test="criteria.valid">
  29. <trim prefix="(" prefixOverrides="and" suffix=")">
  30. <foreach collection="criteria.criteria" item="criterion">
  31. <choose>
  32. <when test="criterion.noValue">
  33. and ${criterion.condition}
  34. </when>
  35. <when test="criterion.singleValue">
  36. and ${criterion.condition} #{criterion.value}
  37. </when>
  38. <when test="criterion.betweenValue">
  39. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  40. </when>
  41. <when test="criterion.listValue">
  42. and ${criterion.condition}
  43. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  44. #{listItem}
  45. </foreach>
  46. </when>
  47. </choose>
  48. </foreach>
  49. </trim>
  50. </if>
  51. </foreach>
  52. </where>
  53. </sql>
  54. <sql id="Update_By_Example_Where_Clause">
  55. <!--
  56. WARNING - @mbg.generated
  57. This element is automatically generated by MyBatis Generator, do not modify.
  58. This element was generated on Sat May 24 01:31:56 CST 2025.
  59. -->
  60. <where>
  61. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  62. <if test="criteria.valid">
  63. <trim prefix="(" prefixOverrides="and" suffix=")">
  64. <foreach collection="criteria.criteria" item="criterion">
  65. <choose>
  66. <when test="criterion.noValue">
  67. and ${criterion.condition}
  68. </when>
  69. <when test="criterion.singleValue">
  70. and ${criterion.condition} #{criterion.value}
  71. </when>
  72. <when test="criterion.betweenValue">
  73. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  74. </when>
  75. <when test="criterion.listValue">
  76. and ${criterion.condition}
  77. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  78. #{listItem}
  79. </foreach>
  80. </when>
  81. </choose>
  82. </foreach>
  83. </trim>
  84. </if>
  85. </foreach>
  86. </where>
  87. </sql>
  88. <sql id="Base_Column_List">
  89. <!--
  90. WARNING - @mbg.generated
  91. This element is automatically generated by MyBatis Generator, do not modify.
  92. This element was generated on Sat May 24 01:31:56 CST 2025.
  93. -->
  94. room_id, create_user_id, infoticket, update_time, total, flag, create_time, nickname,
  95. roomurl
  96. </sql>
  97. <select id="selectByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfoExample" resultMap="BaseResultMap">
  98. <!--
  99. WARNING - @mbg.generated
  100. This element is automatically generated by MyBatis Generator, do not modify.
  101. This element was generated on Sat May 24 01:31:56 CST 2025.
  102. -->
  103. select
  104. <if test="distinct">
  105. distinct
  106. </if>
  107. <include refid="Base_Column_List" />
  108. from all_room_list
  109. <if test="_parameter != null">
  110. <include refid="Example_Where_Clause" />
  111. </if>
  112. <if test="orderByClause != null">
  113. order by ${orderByClause}
  114. </if>
  115. <if test="page != null">
  116. limit #{page.offset} , #{page.pageSize}
  117. </if>
  118. </select>
  119. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  120. <!--
  121. WARNING - @mbg.generated
  122. This element is automatically generated by MyBatis Generator, do not modify.
  123. This element was generated on Sat May 24 01:31:56 CST 2025.
  124. -->
  125. select
  126. <include refid="Base_Column_List" />
  127. from all_room_list
  128. where room_id = #{roomId,jdbcType=VARCHAR}
  129. </select>
  130. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  131. <!--
  132. WARNING - @mbg.generated
  133. This element is automatically generated by MyBatis Generator, do not modify.
  134. This element was generated on Sat May 24 01:31:56 CST 2025.
  135. -->
  136. delete from all_room_list
  137. where room_id = #{roomId,jdbcType=VARCHAR}
  138. </delete>
  139. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfoExample">
  140. <!--
  141. WARNING - @mbg.generated
  142. This element is automatically generated by MyBatis Generator, do not modify.
  143. This element was generated on Sat May 24 01:31:56 CST 2025.
  144. -->
  145. delete from all_room_list
  146. <if test="_parameter != null">
  147. <include refid="Example_Where_Clause" />
  148. </if>
  149. </delete>
  150. <insert id="insert" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfo">
  151. <!--
  152. WARNING - @mbg.generated
  153. This element is automatically generated by MyBatis Generator, do not modify.
  154. This element was generated on Sat May 24 01:31:56 CST 2025.
  155. -->
  156. insert into all_room_list (room_id, create_user_id, infoticket,
  157. update_time, total, flag,
  158. create_time, nickname, roomurl
  159. )
  160. values (#{roomId,jdbcType=VARCHAR}, #{createUserId,jdbcType=BIGINT}, #{infoticket,jdbcType=VARCHAR},
  161. #{updateTime,jdbcType=BIGINT}, #{total,jdbcType=INTEGER}, #{flag,jdbcType=TINYINT},
  162. #{createTime,jdbcType=BIGINT}, #{nickname,jdbcType=VARCHAR}, #{roomurl,jdbcType=VARCHAR}
  163. )
  164. </insert>
  165. <insert id="insertSelective" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfo">
  166. <!--
  167. WARNING - @mbg.generated
  168. This element is automatically generated by MyBatis Generator, do not modify.
  169. This element was generated on Sat May 24 01:31:56 CST 2025.
  170. -->
  171. insert into all_room_list
  172. <trim prefix="(" suffix=")" suffixOverrides=",">
  173. <if test="roomId != null">
  174. room_id,
  175. </if>
  176. <if test="createUserId != null">
  177. create_user_id,
  178. </if>
  179. <if test="infoticket != null">
  180. infoticket,
  181. </if>
  182. <if test="updateTime != null">
  183. update_time,
  184. </if>
  185. <if test="total != null">
  186. total,
  187. </if>
  188. <if test="flag != null">
  189. flag,
  190. </if>
  191. <if test="createTime != null">
  192. create_time,
  193. </if>
  194. <if test="nickname != null">
  195. nickname,
  196. </if>
  197. <if test="roomurl != null">
  198. roomurl,
  199. </if>
  200. </trim>
  201. <trim prefix="values (" suffix=")" suffixOverrides=",">
  202. <if test="roomId != null">
  203. #{roomId,jdbcType=VARCHAR},
  204. </if>
  205. <if test="createUserId != null">
  206. #{createUserId,jdbcType=BIGINT},
  207. </if>
  208. <if test="infoticket != null">
  209. #{infoticket,jdbcType=VARCHAR},
  210. </if>
  211. <if test="updateTime != null">
  212. #{updateTime,jdbcType=BIGINT},
  213. </if>
  214. <if test="total != null">
  215. #{total,jdbcType=INTEGER},
  216. </if>
  217. <if test="flag != null">
  218. #{flag,jdbcType=TINYINT},
  219. </if>
  220. <if test="createTime != null">
  221. #{createTime,jdbcType=BIGINT},
  222. </if>
  223. <if test="nickname != null">
  224. #{nickname,jdbcType=VARCHAR},
  225. </if>
  226. <if test="roomurl != null">
  227. #{roomurl,jdbcType=VARCHAR},
  228. </if>
  229. </trim>
  230. </insert>
  231. <select id="countByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfoExample" resultType="java.lang.Long">
  232. <!--
  233. WARNING - @mbg.generated
  234. This element is automatically generated by MyBatis Generator, do not modify.
  235. This element was generated on Sat May 24 01:31:56 CST 2025.
  236. -->
  237. select count(*) from all_room_list
  238. <if test="_parameter != null">
  239. <include refid="Example_Where_Clause" />
  240. </if>
  241. </select>
  242. <update id="updateByExampleSelective" parameterType="map">
  243. <!--
  244. WARNING - @mbg.generated
  245. This element is automatically generated by MyBatis Generator, do not modify.
  246. This element was generated on Sat May 24 01:31:56 CST 2025.
  247. -->
  248. update all_room_list
  249. <set>
  250. <if test="record.roomId != null">
  251. room_id = #{record.roomId,jdbcType=VARCHAR},
  252. </if>
  253. <if test="record.createUserId != null">
  254. create_user_id = #{record.createUserId,jdbcType=BIGINT},
  255. </if>
  256. <if test="record.infoticket != null">
  257. infoticket = #{record.infoticket,jdbcType=VARCHAR},
  258. </if>
  259. <if test="record.updateTime != null">
  260. update_time = #{record.updateTime,jdbcType=BIGINT},
  261. </if>
  262. <if test="record.total != null">
  263. total = #{record.total,jdbcType=INTEGER},
  264. </if>
  265. <if test="record.flag != null">
  266. flag = #{record.flag,jdbcType=TINYINT},
  267. </if>
  268. <if test="record.createTime != null">
  269. create_time = #{record.createTime,jdbcType=BIGINT},
  270. </if>
  271. <if test="record.nickname != null">
  272. nickname = #{record.nickname,jdbcType=VARCHAR},
  273. </if>
  274. <if test="record.roomurl != null">
  275. roomurl = #{record.roomurl,jdbcType=VARCHAR},
  276. </if>
  277. </set>
  278. <if test="_parameter != null">
  279. <include refid="Update_By_Example_Where_Clause" />
  280. </if>
  281. </update>
  282. <update id="updateByExample" parameterType="map">
  283. <!--
  284. WARNING - @mbg.generated
  285. This element is automatically generated by MyBatis Generator, do not modify.
  286. This element was generated on Sat May 24 01:31:56 CST 2025.
  287. -->
  288. update all_room_list
  289. set room_id = #{record.roomId,jdbcType=VARCHAR},
  290. create_user_id = #{record.createUserId,jdbcType=BIGINT},
  291. infoticket = #{record.infoticket,jdbcType=VARCHAR},
  292. update_time = #{record.updateTime,jdbcType=BIGINT},
  293. total = #{record.total,jdbcType=INTEGER},
  294. flag = #{record.flag,jdbcType=TINYINT},
  295. create_time = #{record.createTime,jdbcType=BIGINT},
  296. nickname = #{record.nickname,jdbcType=VARCHAR},
  297. roomurl = #{record.roomurl,jdbcType=VARCHAR}
  298. <if test="_parameter != null">
  299. <include refid="Update_By_Example_Where_Clause" />
  300. </if>
  301. </update>
  302. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfo">
  303. <!--
  304. WARNING - @mbg.generated
  305. This element is automatically generated by MyBatis Generator, do not modify.
  306. This element was generated on Sat May 24 01:31:56 CST 2025.
  307. -->
  308. update all_room_list
  309. <set>
  310. <if test="createUserId != null">
  311. create_user_id = #{createUserId,jdbcType=BIGINT},
  312. </if>
  313. <if test="infoticket != null">
  314. infoticket = #{infoticket,jdbcType=VARCHAR},
  315. </if>
  316. <if test="updateTime != null">
  317. update_time = #{updateTime,jdbcType=BIGINT},
  318. </if>
  319. <if test="total != null">
  320. total = #{total,jdbcType=INTEGER},
  321. </if>
  322. <if test="flag != null">
  323. flag = #{flag,jdbcType=TINYINT},
  324. </if>
  325. <if test="createTime != null">
  326. create_time = #{createTime,jdbcType=BIGINT},
  327. </if>
  328. <if test="nickname != null">
  329. nickname = #{nickname,jdbcType=VARCHAR},
  330. </if>
  331. <if test="roomurl != null">
  332. roomurl = #{roomurl,jdbcType=VARCHAR},
  333. </if>
  334. </set>
  335. where room_id = #{roomId,jdbcType=VARCHAR}
  336. </update>
  337. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.risk.control.model.po.QwRoomDetailInfo">
  338. <!--
  339. WARNING - @mbg.generated
  340. This element is automatically generated by MyBatis Generator, do not modify.
  341. This element was generated on Sat May 24 01:31:56 CST 2025.
  342. -->
  343. update all_room_list
  344. set create_user_id = #{createUserId,jdbcType=BIGINT},
  345. infoticket = #{infoticket,jdbcType=VARCHAR},
  346. update_time = #{updateTime,jdbcType=BIGINT},
  347. total = #{total,jdbcType=INTEGER},
  348. flag = #{flag,jdbcType=TINYINT},
  349. create_time = #{createTime,jdbcType=BIGINT},
  350. nickname = #{nickname,jdbcType=VARCHAR},
  351. roomurl = #{roomurl,jdbcType=VARCHAR}
  352. where room_id = #{roomId,jdbcType=VARCHAR}
  353. </update>
  354. </mapper>