UserMapper.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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.kdan.cloud.pdf.office.account.mapper.UserMapper">
  4. <resultMap id="BaseResultMap" type="cn.kdan.cloud.pdf.office.account.model.User">
  5. <id column="id" jdbcType="VARCHAR" property="id" />
  6. <result column="company_id" jdbcType="VARCHAR" property="companyId" />
  7. <result column="app_id" jdbcType="VARCHAR" property="appId" />
  8. <result column="email" jdbcType="VARCHAR" property="email" />
  9. <result column="full_name" jdbcType="VARCHAR" property="fullName" />
  10. <result column="subscriber_type" jdbcType="INTEGER" property="subscriberType" />
  11. <result column="subscribed" jdbcType="INTEGER" property="subscribed" />
  12. <result column="digest_password" jdbcType="VARCHAR" property="digestPassword" />
  13. <result column="phone" jdbcType="VARCHAR" property="phone" />
  14. <result column="industry" jdbcType="VARCHAR" property="industry" />
  15. <result column="last_popularize_at" jdbcType="INTEGER" property="lastPopularizeAt" />
  16. <result column="last_presented_coupon_at" jdbcType="TIMESTAMP" property="lastPresentedCouponAt" />
  17. <result column="mailable" jdbcType="INTEGER" property="mailable" />
  18. <result column="reset_token" jdbcType="INTEGER" property="resetToken" />
  19. <result column="role" jdbcType="VARCHAR" property="role" />
  20. <result column="job" jdbcType="VARCHAR" property="job" />
  21. <result column="area" jdbcType="VARCHAR" property="area" />
  22. <result column="platform_type" jdbcType="TINYINT" property="platformType" />
  23. <result column="account_type" jdbcType="TINYINT" property="accountType" />
  24. <result column="account_source" jdbcType="TINYINT" property="accountSource" />
  25. <result column="pay_type" jdbcType="TINYINT" property="payType" />
  26. <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
  27. <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
  28. <result column="member_type" jdbcType="TINYINT" property="memberType" />
  29. <result column="valid_flag" jdbcType="VARCHAR" property="validFlag" />
  30. </resultMap>
  31. <sql id="Example_Where_Clause">
  32. <where>
  33. <foreach collection="oredCriteria" item="criteria" separator="or">
  34. <if test="criteria.valid">
  35. <trim prefix="(" prefixOverrides="and" suffix=")">
  36. <foreach collection="criteria.criteria" item="criterion">
  37. <choose>
  38. <when test="criterion.noValue">
  39. and ${criterion.condition}
  40. </when>
  41. <when test="criterion.singleValue">
  42. and ${criterion.condition} #{criterion.value}
  43. </when>
  44. <when test="criterion.betweenValue">
  45. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  46. </when>
  47. <when test="criterion.listValue">
  48. and ${criterion.condition}
  49. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  50. #{listItem}
  51. </foreach>
  52. </when>
  53. </choose>
  54. </foreach>
  55. </trim>
  56. </if>
  57. </foreach>
  58. </where>
  59. </sql>
  60. <sql id="Update_By_Example_Where_Clause">
  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. id, company_id, app_id, email, full_name, subscriber_type, subscribed, digest_password,
  91. phone, industry, last_popularize_at, last_presented_coupon_at, mailable, reset_token,
  92. `role`, job, area, platform_type, account_type, account_source, pay_type, created_at,
  93. updated_at, member_type, valid_flag
  94. </sql>
  95. <select id="selectByExample" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
  96. select
  97. <if test="distinct">
  98. distinct
  99. </if>
  100. <include refid="Base_Column_List" />
  101. from user
  102. <if test="_parameter != null">
  103. <include refid="Example_Where_Clause" />
  104. </if>
  105. <if test="orderByClause != null">
  106. order by ${orderByClause}
  107. </if>
  108. </select>
  109. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  110. select
  111. <include refid="Base_Column_List" />
  112. from user
  113. where id = #{id,jdbcType=VARCHAR}
  114. </select>
  115. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  116. delete from user
  117. where id = #{id,jdbcType=VARCHAR}
  118. </delete>
  119. <delete id="deleteByExample" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample">
  120. delete from user
  121. <if test="_parameter != null">
  122. <include refid="Example_Where_Clause" />
  123. </if>
  124. </delete>
  125. <insert id="insert" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
  126. insert into user (id, company_id, app_id,
  127. email, full_name, subscriber_type,
  128. subscribed, digest_password, phone,
  129. industry, last_popularize_at, last_presented_coupon_at,
  130. mailable, reset_token, `role`,
  131. job, area, platform_type,
  132. account_type, account_source, pay_type,
  133. created_at, updated_at, member_type,
  134. valid_flag)
  135. values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
  136. #{email,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, #{subscriberType,jdbcType=INTEGER},
  137. #{subscribed,jdbcType=INTEGER}, #{digestPassword,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
  138. #{industry,jdbcType=VARCHAR}, #{lastPopularizeAt,jdbcType=INTEGER}, #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
  139. #{mailable,jdbcType=INTEGER}, #{resetToken,jdbcType=INTEGER}, #{role,jdbcType=VARCHAR},
  140. #{job,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{platformType,jdbcType=TINYINT},
  141. #{accountType,jdbcType=TINYINT}, #{accountSource,jdbcType=TINYINT}, #{payType,jdbcType=TINYINT},
  142. #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{memberType,jdbcType=TINYINT},
  143. #{validFlag,jdbcType=VARCHAR})
  144. </insert>
  145. <insert id="insertSelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
  146. insert into user
  147. <trim prefix="(" suffix=")" suffixOverrides=",">
  148. <if test="id != null">
  149. id,
  150. </if>
  151. <if test="companyId != null">
  152. company_id,
  153. </if>
  154. <if test="appId != null">
  155. app_id,
  156. </if>
  157. <if test="email != null">
  158. email,
  159. </if>
  160. <if test="fullName != null">
  161. full_name,
  162. </if>
  163. <if test="subscriberType != null">
  164. subscriber_type,
  165. </if>
  166. <if test="subscribed != null">
  167. subscribed,
  168. </if>
  169. <if test="digestPassword != null">
  170. digest_password,
  171. </if>
  172. <if test="phone != null">
  173. phone,
  174. </if>
  175. <if test="industry != null">
  176. industry,
  177. </if>
  178. <if test="lastPopularizeAt != null">
  179. last_popularize_at,
  180. </if>
  181. <if test="lastPresentedCouponAt != null">
  182. last_presented_coupon_at,
  183. </if>
  184. <if test="mailable != null">
  185. mailable,
  186. </if>
  187. <if test="resetToken != null">
  188. reset_token,
  189. </if>
  190. <if test="role != null">
  191. `role`,
  192. </if>
  193. <if test="job != null">
  194. job,
  195. </if>
  196. <if test="area != null">
  197. area,
  198. </if>
  199. <if test="platformType != null">
  200. platform_type,
  201. </if>
  202. <if test="accountType != null">
  203. account_type,
  204. </if>
  205. <if test="accountSource != null">
  206. account_source,
  207. </if>
  208. <if test="payType != null">
  209. pay_type,
  210. </if>
  211. <if test="createdAt != null">
  212. created_at,
  213. </if>
  214. <if test="updatedAt != null">
  215. updated_at,
  216. </if>
  217. <if test="memberType != null">
  218. member_type,
  219. </if>
  220. <if test="validFlag != null">
  221. valid_flag,
  222. </if>
  223. </trim>
  224. <trim prefix="values (" suffix=")" suffixOverrides=",">
  225. <if test="id != null">
  226. #{id,jdbcType=VARCHAR},
  227. </if>
  228. <if test="companyId != null">
  229. #{companyId,jdbcType=VARCHAR},
  230. </if>
  231. <if test="appId != null">
  232. #{appId,jdbcType=VARCHAR},
  233. </if>
  234. <if test="email != null">
  235. #{email,jdbcType=VARCHAR},
  236. </if>
  237. <if test="fullName != null">
  238. #{fullName,jdbcType=VARCHAR},
  239. </if>
  240. <if test="subscriberType != null">
  241. #{subscriberType,jdbcType=INTEGER},
  242. </if>
  243. <if test="subscribed != null">
  244. #{subscribed,jdbcType=INTEGER},
  245. </if>
  246. <if test="digestPassword != null">
  247. #{digestPassword,jdbcType=VARCHAR},
  248. </if>
  249. <if test="phone != null">
  250. #{phone,jdbcType=VARCHAR},
  251. </if>
  252. <if test="industry != null">
  253. #{industry,jdbcType=VARCHAR},
  254. </if>
  255. <if test="lastPopularizeAt != null">
  256. #{lastPopularizeAt,jdbcType=INTEGER},
  257. </if>
  258. <if test="lastPresentedCouponAt != null">
  259. #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
  260. </if>
  261. <if test="mailable != null">
  262. #{mailable,jdbcType=INTEGER},
  263. </if>
  264. <if test="resetToken != null">
  265. #{resetToken,jdbcType=INTEGER},
  266. </if>
  267. <if test="role != null">
  268. #{role,jdbcType=VARCHAR},
  269. </if>
  270. <if test="job != null">
  271. #{job,jdbcType=VARCHAR},
  272. </if>
  273. <if test="area != null">
  274. #{area,jdbcType=VARCHAR},
  275. </if>
  276. <if test="platformType != null">
  277. #{platformType,jdbcType=TINYINT},
  278. </if>
  279. <if test="accountType != null">
  280. #{accountType,jdbcType=TINYINT},
  281. </if>
  282. <if test="accountSource != null">
  283. #{accountSource,jdbcType=TINYINT},
  284. </if>
  285. <if test="payType != null">
  286. #{payType,jdbcType=TINYINT},
  287. </if>
  288. <if test="createdAt != null">
  289. #{createdAt,jdbcType=TIMESTAMP},
  290. </if>
  291. <if test="updatedAt != null">
  292. #{updatedAt,jdbcType=TIMESTAMP},
  293. </if>
  294. <if test="memberType != null">
  295. #{memberType,jdbcType=TINYINT},
  296. </if>
  297. <if test="validFlag != null">
  298. #{validFlag,jdbcType=VARCHAR},
  299. </if>
  300. </trim>
  301. </insert>
  302. <select id="countByExample" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultType="java.lang.Long">
  303. select count(*) from user
  304. <if test="_parameter != null">
  305. <include refid="Example_Where_Clause" />
  306. </if>
  307. </select>
  308. <update id="updateByExampleSelective" parameterType="map">
  309. update user
  310. <set>
  311. <if test="record.id != null">
  312. id = #{record.id,jdbcType=VARCHAR},
  313. </if>
  314. <if test="record.companyId != null">
  315. company_id = #{record.companyId,jdbcType=VARCHAR},
  316. </if>
  317. <if test="record.appId != null">
  318. app_id = #{record.appId,jdbcType=VARCHAR},
  319. </if>
  320. <if test="record.email != null">
  321. email = #{record.email,jdbcType=VARCHAR},
  322. </if>
  323. <if test="record.fullName != null">
  324. full_name = #{record.fullName,jdbcType=VARCHAR},
  325. </if>
  326. <if test="record.subscriberType != null">
  327. subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
  328. </if>
  329. <if test="record.subscribed != null">
  330. subscribed = #{record.subscribed,jdbcType=INTEGER},
  331. </if>
  332. <if test="record.digestPassword != null">
  333. digest_password = #{record.digestPassword,jdbcType=VARCHAR},
  334. </if>
  335. <if test="record.phone != null">
  336. phone = #{record.phone,jdbcType=VARCHAR},
  337. </if>
  338. <if test="record.industry != null">
  339. industry = #{record.industry,jdbcType=VARCHAR},
  340. </if>
  341. <if test="record.lastPopularizeAt != null">
  342. last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
  343. </if>
  344. <if test="record.lastPresentedCouponAt != null">
  345. last_presented_coupon_at = #{record.lastPresentedCouponAt,jdbcType=TIMESTAMP},
  346. </if>
  347. <if test="record.mailable != null">
  348. mailable = #{record.mailable,jdbcType=INTEGER},
  349. </if>
  350. <if test="record.resetToken != null">
  351. reset_token = #{record.resetToken,jdbcType=INTEGER},
  352. </if>
  353. <if test="record.role != null">
  354. `role` = #{record.role,jdbcType=VARCHAR},
  355. </if>
  356. <if test="record.job != null">
  357. job = #{record.job,jdbcType=VARCHAR},
  358. </if>
  359. <if test="record.area != null">
  360. area = #{record.area,jdbcType=VARCHAR},
  361. </if>
  362. <if test="record.platformType != null">
  363. platform_type = #{record.platformType,jdbcType=TINYINT},
  364. </if>
  365. <if test="record.accountType != null">
  366. account_type = #{record.accountType,jdbcType=TINYINT},
  367. </if>
  368. <if test="record.accountSource != null">
  369. account_source = #{record.accountSource,jdbcType=TINYINT},
  370. </if>
  371. <if test="record.payType != null">
  372. pay_type = #{record.payType,jdbcType=TINYINT},
  373. </if>
  374. <if test="record.createdAt != null">
  375. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  376. </if>
  377. <if test="record.updatedAt != null">
  378. updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
  379. </if>
  380. <if test="record.memberType != null">
  381. member_type = #{record.memberType,jdbcType=TINYINT},
  382. </if>
  383. <if test="record.validFlag != null">
  384. valid_flag = #{record.validFlag,jdbcType=VARCHAR},
  385. </if>
  386. </set>
  387. <if test="_parameter != null">
  388. <include refid="Update_By_Example_Where_Clause" />
  389. </if>
  390. </update>
  391. <update id="updateByExample" parameterType="map">
  392. update user
  393. set id = #{record.id,jdbcType=VARCHAR},
  394. company_id = #{record.companyId,jdbcType=VARCHAR},
  395. app_id = #{record.appId,jdbcType=VARCHAR},
  396. email = #{record.email,jdbcType=VARCHAR},
  397. full_name = #{record.fullName,jdbcType=VARCHAR},
  398. subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
  399. subscribed = #{record.subscribed,jdbcType=INTEGER},
  400. digest_password = #{record.digestPassword,jdbcType=VARCHAR},
  401. phone = #{record.phone,jdbcType=VARCHAR},
  402. industry = #{record.industry,jdbcType=VARCHAR},
  403. last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
  404. last_presented_coupon_at = #{record.lastPresentedCouponAt,jdbcType=TIMESTAMP},
  405. mailable = #{record.mailable,jdbcType=INTEGER},
  406. reset_token = #{record.resetToken,jdbcType=INTEGER},
  407. `role` = #{record.role,jdbcType=VARCHAR},
  408. job = #{record.job,jdbcType=VARCHAR},
  409. area = #{record.area,jdbcType=VARCHAR},
  410. platform_type = #{record.platformType,jdbcType=TINYINT},
  411. account_type = #{record.accountType,jdbcType=TINYINT},
  412. account_source = #{record.accountSource,jdbcType=TINYINT},
  413. pay_type = #{record.payType,jdbcType=TINYINT},
  414. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  415. updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
  416. member_type = #{record.memberType,jdbcType=TINYINT},
  417. valid_flag = #{record.validFlag,jdbcType=VARCHAR}
  418. <if test="_parameter != null">
  419. <include refid="Update_By_Example_Where_Clause" />
  420. </if>
  421. </update>
  422. <update id="updateByPrimaryKeySelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
  423. update user
  424. <set>
  425. <if test="companyId != null">
  426. company_id = #{companyId,jdbcType=VARCHAR},
  427. </if>
  428. <if test="appId != null">
  429. app_id = #{appId,jdbcType=VARCHAR},
  430. </if>
  431. <if test="email != null">
  432. email = #{email,jdbcType=VARCHAR},
  433. </if>
  434. <if test="fullName != null">
  435. full_name = #{fullName,jdbcType=VARCHAR},
  436. </if>
  437. <if test="subscriberType != null">
  438. subscriber_type = #{subscriberType,jdbcType=INTEGER},
  439. </if>
  440. <if test="subscribed != null">
  441. subscribed = #{subscribed,jdbcType=INTEGER},
  442. </if>
  443. <if test="digestPassword != null">
  444. digest_password = #{digestPassword,jdbcType=VARCHAR},
  445. </if>
  446. <if test="phone != null">
  447. phone = #{phone,jdbcType=VARCHAR},
  448. </if>
  449. <if test="industry != null">
  450. industry = #{industry,jdbcType=VARCHAR},
  451. </if>
  452. <if test="lastPopularizeAt != null">
  453. last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
  454. </if>
  455. <if test="lastPresentedCouponAt != null">
  456. last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
  457. </if>
  458. <if test="mailable != null">
  459. mailable = #{mailable,jdbcType=INTEGER},
  460. </if>
  461. <if test="resetToken != null">
  462. reset_token = #{resetToken,jdbcType=INTEGER},
  463. </if>
  464. <if test="role != null">
  465. `role` = #{role,jdbcType=VARCHAR},
  466. </if>
  467. <if test="job != null">
  468. job = #{job,jdbcType=VARCHAR},
  469. </if>
  470. <if test="area != null">
  471. area = #{area,jdbcType=VARCHAR},
  472. </if>
  473. <if test="platformType != null">
  474. platform_type = #{platformType,jdbcType=TINYINT},
  475. </if>
  476. <if test="accountType != null">
  477. account_type = #{accountType,jdbcType=TINYINT},
  478. </if>
  479. <if test="accountSource != null">
  480. account_source = #{accountSource,jdbcType=TINYINT},
  481. </if>
  482. <if test="payType != null">
  483. pay_type = #{payType,jdbcType=TINYINT},
  484. </if>
  485. <if test="createdAt != null">
  486. created_at = #{createdAt,jdbcType=TIMESTAMP},
  487. </if>
  488. <if test="updatedAt != null">
  489. updated_at = #{updatedAt,jdbcType=TIMESTAMP},
  490. </if>
  491. <if test="memberType != null">
  492. member_type = #{memberType,jdbcType=TINYINT},
  493. </if>
  494. <if test="validFlag != null">
  495. valid_flag = #{validFlag,jdbcType=VARCHAR},
  496. </if>
  497. </set>
  498. where id = #{id,jdbcType=VARCHAR}
  499. </update>
  500. <update id="updateByPrimaryKey" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
  501. update user
  502. set company_id = #{companyId,jdbcType=VARCHAR},
  503. app_id = #{appId,jdbcType=VARCHAR},
  504. email = #{email,jdbcType=VARCHAR},
  505. full_name = #{fullName,jdbcType=VARCHAR},
  506. subscriber_type = #{subscriberType,jdbcType=INTEGER},
  507. subscribed = #{subscribed,jdbcType=INTEGER},
  508. digest_password = #{digestPassword,jdbcType=VARCHAR},
  509. phone = #{phone,jdbcType=VARCHAR},
  510. industry = #{industry,jdbcType=VARCHAR},
  511. last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
  512. last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
  513. mailable = #{mailable,jdbcType=INTEGER},
  514. reset_token = #{resetToken,jdbcType=INTEGER},
  515. `role` = #{role,jdbcType=VARCHAR},
  516. job = #{job,jdbcType=VARCHAR},
  517. area = #{area,jdbcType=VARCHAR},
  518. platform_type = #{platformType,jdbcType=TINYINT},
  519. account_type = #{accountType,jdbcType=TINYINT},
  520. account_source = #{accountSource,jdbcType=TINYINT},
  521. pay_type = #{payType,jdbcType=TINYINT},
  522. created_at = #{createdAt,jdbcType=TIMESTAMP},
  523. updated_at = #{updatedAt,jdbcType=TIMESTAMP},
  524. member_type = #{memberType,jdbcType=TINYINT},
  525. valid_flag = #{validFlag,jdbcType=VARCHAR}
  526. where id = #{id,jdbcType=VARCHAR}
  527. </update>
  528. <select id="selectByExampleWithRowbounds" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
  529. select
  530. <if test="distinct">
  531. distinct
  532. </if>
  533. <include refid="Base_Column_List" />
  534. from user
  535. <if test="_parameter != null">
  536. <include refid="Example_Where_Clause" />
  537. </if>
  538. <if test="orderByClause != null">
  539. order by ${orderByClause}
  540. </if>
  541. </select>
  542. </mapper>