UserBaseMapper.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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.UserBaseMapper">
  4. <resultMap id="BaseResultMap" type="com.tzld.piaoquan.risk.control.model.po.UserBase">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Thu May 22 20:07:47 CST 2025.
  9. -->
  10. <id column="id" jdbcType="BIGINT" property="id" />
  11. <result column="uuid" jdbcType="VARCHAR" property="uuid" />
  12. <result column="vid" jdbcType="VARCHAR" property="vid" />
  13. <result column="mobile" jdbcType="VARCHAR" property="mobile" />
  14. <result column="realname" jdbcType="VARCHAR" property="realname" />
  15. <result column="english_name" jdbcType="VARCHAR" property="englishName" />
  16. <result column="avatar" jdbcType="VARCHAR" property="avatar" />
  17. <result column="login_status" jdbcType="INTEGER" property="loginStatus" />
  18. <result column="corp_id" jdbcType="BIGINT" property="corpId" />
  19. <result column="corp_name" jdbcType="VARCHAR" property="corpName" />
  20. <result column="unionid" jdbcType="VARCHAR" property="unionid" />
  21. <result column="acctid" jdbcType="VARCHAR" property="acctid" />
  22. <result column="position" jdbcType="VARCHAR" property="position" />
  23. <result column="create_user" jdbcType="BIGINT" property="createUser" />
  24. <result column="update_user" jdbcType="BIGINT" property="updateUser" />
  25. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  26. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  27. </resultMap>
  28. <sql id="Example_Where_Clause">
  29. <!--
  30. WARNING - @mbg.generated
  31. This element is automatically generated by MyBatis Generator, do not modify.
  32. This element was generated on Thu May 22 20:07:47 CST 2025.
  33. -->
  34. <where>
  35. <foreach collection="oredCriteria" item="criteria" separator="or">
  36. <if test="criteria.valid">
  37. <trim prefix="(" prefixOverrides="and" suffix=")">
  38. <foreach collection="criteria.criteria" item="criterion">
  39. <choose>
  40. <when test="criterion.noValue">
  41. and ${criterion.condition}
  42. </when>
  43. <when test="criterion.singleValue">
  44. and ${criterion.condition} #{criterion.value}
  45. </when>
  46. <when test="criterion.betweenValue">
  47. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  48. </when>
  49. <when test="criterion.listValue">
  50. and ${criterion.condition}
  51. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  52. #{listItem}
  53. </foreach>
  54. </when>
  55. </choose>
  56. </foreach>
  57. </trim>
  58. </if>
  59. </foreach>
  60. </where>
  61. </sql>
  62. <sql id="Update_By_Example_Where_Clause">
  63. <!--
  64. WARNING - @mbg.generated
  65. This element is automatically generated by MyBatis Generator, do not modify.
  66. This element was generated on Thu May 22 20:07:47 CST 2025.
  67. -->
  68. <where>
  69. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  70. <if test="criteria.valid">
  71. <trim prefix="(" prefixOverrides="and" suffix=")">
  72. <foreach collection="criteria.criteria" item="criterion">
  73. <choose>
  74. <when test="criterion.noValue">
  75. and ${criterion.condition}
  76. </when>
  77. <when test="criterion.singleValue">
  78. and ${criterion.condition} #{criterion.value}
  79. </when>
  80. <when test="criterion.betweenValue">
  81. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  82. </when>
  83. <when test="criterion.listValue">
  84. and ${criterion.condition}
  85. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  86. #{listItem}
  87. </foreach>
  88. </when>
  89. </choose>
  90. </foreach>
  91. </trim>
  92. </if>
  93. </foreach>
  94. </where>
  95. </sql>
  96. <sql id="Base_Column_List">
  97. <!--
  98. WARNING - @mbg.generated
  99. This element is automatically generated by MyBatis Generator, do not modify.
  100. This element was generated on Thu May 22 20:07:47 CST 2025.
  101. -->
  102. id, uuid, vid, mobile, realname, english_name, avatar, login_status, corp_id, corp_name,
  103. unionid, acctid, `position`, create_user, update_user, create_time, update_time
  104. </sql>
  105. <select id="selectByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample" resultMap="BaseResultMap">
  106. <!--
  107. WARNING - @mbg.generated
  108. This element is automatically generated by MyBatis Generator, do not modify.
  109. This element was generated on Thu May 22 20:07:47 CST 2025.
  110. -->
  111. select
  112. <if test="distinct">
  113. distinct
  114. </if>
  115. <include refid="Base_Column_List" />
  116. from qywx_user_base
  117. <if test="_parameter != null">
  118. <include refid="Example_Where_Clause" />
  119. </if>
  120. <if test="orderByClause != null">
  121. order by ${orderByClause}
  122. </if>
  123. <if test="page != null">
  124. limit #{page.offset} , #{page.pageSize}
  125. </if>
  126. </select>
  127. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  128. <!--
  129. WARNING - @mbg.generated
  130. This element is automatically generated by MyBatis Generator, do not modify.
  131. This element was generated on Thu May 22 20:07:47 CST 2025.
  132. -->
  133. select
  134. <include refid="Base_Column_List" />
  135. from qywx_user_base
  136. where id = #{id,jdbcType=BIGINT}
  137. </select>
  138. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  139. <!--
  140. WARNING - @mbg.generated
  141. This element is automatically generated by MyBatis Generator, do not modify.
  142. This element was generated on Thu May 22 20:07:47 CST 2025.
  143. -->
  144. delete from qywx_user_base
  145. where id = #{id,jdbcType=BIGINT}
  146. </delete>
  147. <delete id="deleteByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample">
  148. <!--
  149. WARNING - @mbg.generated
  150. This element is automatically generated by MyBatis Generator, do not modify.
  151. This element was generated on Thu May 22 20:07:47 CST 2025.
  152. -->
  153. delete from qywx_user_base
  154. <if test="_parameter != null">
  155. <include refid="Example_Where_Clause" />
  156. </if>
  157. </delete>
  158. <insert id="insert" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
  159. <!--
  160. WARNING - @mbg.generated
  161. This element is automatically generated by MyBatis Generator, do not modify.
  162. This element was generated on Thu May 22 20:07:47 CST 2025.
  163. -->
  164. insert into qywx_user_base (id, uuid, vid,
  165. mobile, realname, english_name,
  166. avatar, login_status, corp_id,
  167. corp_name, unionid, acctid,
  168. `position`, create_user, update_user,
  169. create_time, update_time)
  170. values (#{id,jdbcType=BIGINT}, #{uuid,jdbcType=VARCHAR}, #{vid,jdbcType=VARCHAR},
  171. #{mobile,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR}, #{englishName,jdbcType=VARCHAR},
  172. #{avatar,jdbcType=VARCHAR}, #{loginStatus,jdbcType=INTEGER}, #{corpId,jdbcType=BIGINT},
  173. #{corpName,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, #{acctid,jdbcType=VARCHAR},
  174. #{position,jdbcType=VARCHAR}, #{createUser,jdbcType=BIGINT}, #{updateUser,jdbcType=BIGINT},
  175. #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
  176. </insert>
  177. <insert id="insertSelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
  178. <!--
  179. WARNING - @mbg.generated
  180. This element is automatically generated by MyBatis Generator, do not modify.
  181. This element was generated on Thu May 22 20:07:47 CST 2025.
  182. -->
  183. insert into qywx_user_base
  184. <trim prefix="(" suffix=")" suffixOverrides=",">
  185. <if test="id != null">
  186. id,
  187. </if>
  188. <if test="uuid != null">
  189. uuid,
  190. </if>
  191. <if test="vid != null">
  192. vid,
  193. </if>
  194. <if test="mobile != null">
  195. mobile,
  196. </if>
  197. <if test="realname != null">
  198. realname,
  199. </if>
  200. <if test="englishName != null">
  201. english_name,
  202. </if>
  203. <if test="avatar != null">
  204. avatar,
  205. </if>
  206. <if test="loginStatus != null">
  207. login_status,
  208. </if>
  209. <if test="corpId != null">
  210. corp_id,
  211. </if>
  212. <if test="corpName != null">
  213. corp_name,
  214. </if>
  215. <if test="unionid != null">
  216. unionid,
  217. </if>
  218. <if test="acctid != null">
  219. acctid,
  220. </if>
  221. <if test="position != null">
  222. `position`,
  223. </if>
  224. <if test="createUser != null">
  225. create_user,
  226. </if>
  227. <if test="updateUser != null">
  228. update_user,
  229. </if>
  230. <if test="createTime != null">
  231. create_time,
  232. </if>
  233. <if test="updateTime != null">
  234. update_time,
  235. </if>
  236. </trim>
  237. <trim prefix="values (" suffix=")" suffixOverrides=",">
  238. <if test="id != null">
  239. #{id,jdbcType=BIGINT},
  240. </if>
  241. <if test="uuid != null">
  242. #{uuid,jdbcType=VARCHAR},
  243. </if>
  244. <if test="vid != null">
  245. #{vid,jdbcType=VARCHAR},
  246. </if>
  247. <if test="mobile != null">
  248. #{mobile,jdbcType=VARCHAR},
  249. </if>
  250. <if test="realname != null">
  251. #{realname,jdbcType=VARCHAR},
  252. </if>
  253. <if test="englishName != null">
  254. #{englishName,jdbcType=VARCHAR},
  255. </if>
  256. <if test="avatar != null">
  257. #{avatar,jdbcType=VARCHAR},
  258. </if>
  259. <if test="loginStatus != null">
  260. #{loginStatus,jdbcType=INTEGER},
  261. </if>
  262. <if test="corpId != null">
  263. #{corpId,jdbcType=BIGINT},
  264. </if>
  265. <if test="corpName != null">
  266. #{corpName,jdbcType=VARCHAR},
  267. </if>
  268. <if test="unionid != null">
  269. #{unionid,jdbcType=VARCHAR},
  270. </if>
  271. <if test="acctid != null">
  272. #{acctid,jdbcType=VARCHAR},
  273. </if>
  274. <if test="position != null">
  275. #{position,jdbcType=VARCHAR},
  276. </if>
  277. <if test="createUser != null">
  278. #{createUser,jdbcType=BIGINT},
  279. </if>
  280. <if test="updateUser != null">
  281. #{updateUser,jdbcType=BIGINT},
  282. </if>
  283. <if test="createTime != null">
  284. #{createTime,jdbcType=TIMESTAMP},
  285. </if>
  286. <if test="updateTime != null">
  287. #{updateTime,jdbcType=TIMESTAMP},
  288. </if>
  289. </trim>
  290. </insert>
  291. <select id="countByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample" resultType="java.lang.Long">
  292. <!--
  293. WARNING - @mbg.generated
  294. This element is automatically generated by MyBatis Generator, do not modify.
  295. This element was generated on Thu May 22 20:07:47 CST 2025.
  296. -->
  297. select count(*) from qywx_user_base
  298. <if test="_parameter != null">
  299. <include refid="Example_Where_Clause" />
  300. </if>
  301. </select>
  302. <update id="updateByExampleSelective" parameterType="map">
  303. <!--
  304. WARNING - @mbg.generated
  305. This element is automatically generated by MyBatis Generator, do not modify.
  306. This element was generated on Thu May 22 20:07:47 CST 2025.
  307. -->
  308. update qywx_user_base
  309. <set>
  310. <if test="record.id != null">
  311. id = #{record.id,jdbcType=BIGINT},
  312. </if>
  313. <if test="record.uuid != null">
  314. uuid = #{record.uuid,jdbcType=VARCHAR},
  315. </if>
  316. <if test="record.vid != null">
  317. vid = #{record.vid,jdbcType=VARCHAR},
  318. </if>
  319. <if test="record.mobile != null">
  320. mobile = #{record.mobile,jdbcType=VARCHAR},
  321. </if>
  322. <if test="record.realname != null">
  323. realname = #{record.realname,jdbcType=VARCHAR},
  324. </if>
  325. <if test="record.englishName != null">
  326. english_name = #{record.englishName,jdbcType=VARCHAR},
  327. </if>
  328. <if test="record.avatar != null">
  329. avatar = #{record.avatar,jdbcType=VARCHAR},
  330. </if>
  331. <if test="record.loginStatus != null">
  332. login_status = #{record.loginStatus,jdbcType=INTEGER},
  333. </if>
  334. <if test="record.corpId != null">
  335. corp_id = #{record.corpId,jdbcType=BIGINT},
  336. </if>
  337. <if test="record.corpName != null">
  338. corp_name = #{record.corpName,jdbcType=VARCHAR},
  339. </if>
  340. <if test="record.unionid != null">
  341. unionid = #{record.unionid,jdbcType=VARCHAR},
  342. </if>
  343. <if test="record.acctid != null">
  344. acctid = #{record.acctid,jdbcType=VARCHAR},
  345. </if>
  346. <if test="record.position != null">
  347. `position` = #{record.position,jdbcType=VARCHAR},
  348. </if>
  349. <if test="record.createUser != null">
  350. create_user = #{record.createUser,jdbcType=BIGINT},
  351. </if>
  352. <if test="record.updateUser != null">
  353. update_user = #{record.updateUser,jdbcType=BIGINT},
  354. </if>
  355. <if test="record.createTime != null">
  356. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  357. </if>
  358. <if test="record.updateTime != null">
  359. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  360. </if>
  361. </set>
  362. <if test="_parameter != null">
  363. <include refid="Update_By_Example_Where_Clause" />
  364. </if>
  365. </update>
  366. <update id="updateByExample" parameterType="map">
  367. <!--
  368. WARNING - @mbg.generated
  369. This element is automatically generated by MyBatis Generator, do not modify.
  370. This element was generated on Thu May 22 20:07:47 CST 2025.
  371. -->
  372. update qywx_user_base
  373. set id = #{record.id,jdbcType=BIGINT},
  374. uuid = #{record.uuid,jdbcType=VARCHAR},
  375. vid = #{record.vid,jdbcType=VARCHAR},
  376. mobile = #{record.mobile,jdbcType=VARCHAR},
  377. realname = #{record.realname,jdbcType=VARCHAR},
  378. english_name = #{record.englishName,jdbcType=VARCHAR},
  379. avatar = #{record.avatar,jdbcType=VARCHAR},
  380. login_status = #{record.loginStatus,jdbcType=INTEGER},
  381. corp_id = #{record.corpId,jdbcType=BIGINT},
  382. corp_name = #{record.corpName,jdbcType=VARCHAR},
  383. unionid = #{record.unionid,jdbcType=VARCHAR},
  384. acctid = #{record.acctid,jdbcType=VARCHAR},
  385. `position` = #{record.position,jdbcType=VARCHAR},
  386. create_user = #{record.createUser,jdbcType=BIGINT},
  387. update_user = #{record.updateUser,jdbcType=BIGINT},
  388. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  389. update_time = #{record.updateTime,jdbcType=TIMESTAMP}
  390. <if test="_parameter != null">
  391. <include refid="Update_By_Example_Where_Clause" />
  392. </if>
  393. </update>
  394. <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
  395. <!--
  396. WARNING - @mbg.generated
  397. This element is automatically generated by MyBatis Generator, do not modify.
  398. This element was generated on Thu May 22 20:07:47 CST 2025.
  399. -->
  400. update qywx_user_base
  401. <set>
  402. <if test="uuid != null">
  403. uuid = #{uuid,jdbcType=VARCHAR},
  404. </if>
  405. <if test="vid != null">
  406. vid = #{vid,jdbcType=VARCHAR},
  407. </if>
  408. <if test="mobile != null">
  409. mobile = #{mobile,jdbcType=VARCHAR},
  410. </if>
  411. <if test="realname != null">
  412. realname = #{realname,jdbcType=VARCHAR},
  413. </if>
  414. <if test="englishName != null">
  415. english_name = #{englishName,jdbcType=VARCHAR},
  416. </if>
  417. <if test="avatar != null">
  418. avatar = #{avatar,jdbcType=VARCHAR},
  419. </if>
  420. <if test="loginStatus != null">
  421. login_status = #{loginStatus,jdbcType=INTEGER},
  422. </if>
  423. <if test="corpId != null">
  424. corp_id = #{corpId,jdbcType=BIGINT},
  425. </if>
  426. <if test="corpName != null">
  427. corp_name = #{corpName,jdbcType=VARCHAR},
  428. </if>
  429. <if test="unionid != null">
  430. unionid = #{unionid,jdbcType=VARCHAR},
  431. </if>
  432. <if test="acctid != null">
  433. acctid = #{acctid,jdbcType=VARCHAR},
  434. </if>
  435. <if test="position != null">
  436. `position` = #{position,jdbcType=VARCHAR},
  437. </if>
  438. <if test="createUser != null">
  439. create_user = #{createUser,jdbcType=BIGINT},
  440. </if>
  441. <if test="updateUser != null">
  442. update_user = #{updateUser,jdbcType=BIGINT},
  443. </if>
  444. <if test="createTime != null">
  445. create_time = #{createTime,jdbcType=TIMESTAMP},
  446. </if>
  447. <if test="updateTime != null">
  448. update_time = #{updateTime,jdbcType=TIMESTAMP},
  449. </if>
  450. </set>
  451. where id = #{id,jdbcType=BIGINT}
  452. </update>
  453. <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
  454. <!--
  455. WARNING - @mbg.generated
  456. This element is automatically generated by MyBatis Generator, do not modify.
  457. This element was generated on Thu May 22 20:07:47 CST 2025.
  458. -->
  459. update qywx_user_base
  460. set uuid = #{uuid,jdbcType=VARCHAR},
  461. vid = #{vid,jdbcType=VARCHAR},
  462. mobile = #{mobile,jdbcType=VARCHAR},
  463. realname = #{realname,jdbcType=VARCHAR},
  464. english_name = #{englishName,jdbcType=VARCHAR},
  465. avatar = #{avatar,jdbcType=VARCHAR},
  466. login_status = #{loginStatus,jdbcType=INTEGER},
  467. corp_id = #{corpId,jdbcType=BIGINT},
  468. corp_name = #{corpName,jdbcType=VARCHAR},
  469. unionid = #{unionid,jdbcType=VARCHAR},
  470. acctid = #{acctid,jdbcType=VARCHAR},
  471. `position` = #{position,jdbcType=VARCHAR},
  472. create_user = #{createUser,jdbcType=BIGINT},
  473. update_user = #{updateUser,jdbcType=BIGINT},
  474. create_time = #{createTime,jdbcType=TIMESTAMP},
  475. update_time = #{updateTime,jdbcType=TIMESTAMP}
  476. where id = #{id,jdbcType=BIGINT}
  477. </update>
  478. </mapper>