WorkWechatRoomInfoMapper.xml 14 KB

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