MemberCoinTixianMapper.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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.izouma.awesomeadmin.dao.MemberCoinTixianMapper">
  4. <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.MemberCoinTixian">
  5. <id column="id" property="id" jdbcType="INTEGER"/>
  6. <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
  7. <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
  8. <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
  9. <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
  10. <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
  11. <result column="user_id" property="userId" jdbcType="VARCHAR"/>
  12. <result column="money" property="money" jdbcType="VARCHAR"/>
  13. <result column="status_flag" property="statusFlag" jdbcType="INTEGER"/>
  14. <result column="fee" property="fee" jdbcType="VARCHAR"/>
  15. <result column="net_amount" property="netAmount" jdbcType="VARCHAR"/>
  16. <result column="deal_user" property="dealUser" jdbcType="VARCHAR"/>
  17. <result column="deal_time" property="dealTime" jdbcType="VARCHAR"/>
  18. <result column="wechat" property="wechat" jdbcType="VARCHAR"/>
  19. <result column="alipay" property="alipay" jdbcType="VARCHAR"/>
  20. <result column="bank_card" property="bankCard" jdbcType="VARCHAR"/>
  21. <result column="bank_name" property="bankName" jdbcType="VARCHAR"/>
  22. <result column="open_name" property="openName" jdbcType="VARCHAR"/>
  23. <result column="type_flag" property="typeFlag" jdbcType="INTEGER"/>
  24. <result column="remark" property="remark" jdbcType="VARCHAR"/>
  25. <result column="tixian_code" property="tixianCode" jdbcType="VARCHAR"/>
  26. </resultMap>
  27. <sql id="Base_Column_List">
  28. <trim suffixOverrides=",">
  29. id,
  30. del_flag,
  31. update_time,
  32. update_user,
  33. create_time,
  34. create_user,
  35. user_id,
  36. money,
  37. status_flag,
  38. fee,
  39. net_amount,
  40. deal_user,
  41. deal_time,
  42. wechat,
  43. alipay,
  44. bank_card,
  45. bank_name,
  46. open_name,
  47. type_flag,
  48. remark,
  49. tixian_code,
  50. </trim>
  51. </sql>
  52. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
  53. select
  54. <include refid="Base_Column_List"/>
  55. from member_coin_tixian
  56. where id = #{id,jdbcType=INTEGER}
  57. </select>
  58. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  59. delete from member_coin_tixian
  60. where id = #{id,jdbcType=INTEGER}
  61. </delete>
  62. <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.MemberCoinTixian" useGeneratedKeys="true"
  63. keyProperty="id">
  64. insert into member_coin_tixian
  65. <trim prefix="(" suffix=")" suffixOverrides=",">
  66. <if test="id!= null">
  67. id,
  68. </if>
  69. <if test="delFlag!= null">
  70. del_flag,
  71. </if>
  72. <if test="updateTime!= null">
  73. update_time,
  74. </if>
  75. <if test="updateUser!= null">
  76. update_user,
  77. </if>
  78. <if test="createTime!= null">
  79. create_time,
  80. </if>
  81. <if test="createUser!= null">
  82. create_user,
  83. </if>
  84. <if test="userId!= null">
  85. user_id,
  86. </if>
  87. <if test="money!= null">
  88. money,
  89. </if>
  90. <if test="statusFlag!= null">
  91. status_flag,
  92. </if>
  93. <if test="fee!= null">
  94. fee,
  95. </if>
  96. <if test="netAmount!= null">
  97. net_amount,
  98. </if>
  99. <if test="dealUser!= null">
  100. deal_user,
  101. </if>
  102. <if test="dealTime!= null">
  103. deal_time,
  104. </if>
  105. <if test="wechat!= null">
  106. wechat,
  107. </if>
  108. <if test="alipay!= null">
  109. alipay,
  110. </if>
  111. <if test="bankCard!= null">
  112. bank_card,
  113. </if>
  114. <if test="bankName!= null">
  115. bank_name,
  116. </if>
  117. <if test="openName!= null">
  118. open_name,
  119. </if>
  120. <if test="typeFlag!= null">
  121. type_flag,
  122. </if>
  123. <if test="remark!= null">
  124. remark,
  125. </if>
  126. <if test="tixianCode!= null">
  127. tixian_code,
  128. </if>
  129. </trim>
  130. <trim prefix="values (" suffix=")" suffixOverrides=",">
  131. <if test="id != null">
  132. #{id,jdbcType=INTEGER},
  133. </if>
  134. <if test="delFlag != null">
  135. #{delFlag,jdbcType=CHAR},
  136. </if>
  137. <if test="updateTime != null">
  138. #{updateTime,jdbcType=TIMESTAMP},
  139. </if>
  140. <if test="updateUser != null">
  141. #{updateUser,jdbcType=VARCHAR},
  142. </if>
  143. <if test="createTime != null">
  144. #{createTime,jdbcType=TIMESTAMP},
  145. </if>
  146. <if test="createUser != null">
  147. #{createUser,jdbcType=VARCHAR},
  148. </if>
  149. <if test="userId != null">
  150. #{userId,jdbcType=VARCHAR},
  151. </if>
  152. <if test="money != null">
  153. #{money,jdbcType=VARCHAR},
  154. </if>
  155. <if test="statusFlag != null">
  156. #{statusFlag,jdbcType=INTEGER},
  157. </if>
  158. <if test="fee != null">
  159. #{fee,jdbcType=VARCHAR},
  160. </if>
  161. <if test="netAmount != null">
  162. #{netAmount,jdbcType=VARCHAR},
  163. </if>
  164. <if test="dealUser != null">
  165. #{dealUser,jdbcType=VARCHAR},
  166. </if>
  167. <if test="dealTime != null">
  168. #{dealTime,jdbcType=VARCHAR},
  169. </if>
  170. <if test="wechat != null">
  171. #{wechat,jdbcType=VARCHAR},
  172. </if>
  173. <if test="alipay != null">
  174. #{alipay,jdbcType=VARCHAR},
  175. </if>
  176. <if test="bankCard != null">
  177. #{bankCard,jdbcType=VARCHAR},
  178. </if>
  179. <if test="bankName != null">
  180. #{bankName,jdbcType=VARCHAR},
  181. </if>
  182. <if test="openName != null">
  183. #{openName,jdbcType=VARCHAR},
  184. </if>
  185. <if test="typeFlag != null">
  186. #{typeFlag,jdbcType=INTEGER},
  187. </if>
  188. <if test="remark != null">
  189. #{remark,jdbcType=VARCHAR},
  190. </if>
  191. <if test="tixianCode != null">
  192. #{tixianCode,jdbcType=VARCHAR},
  193. </if>
  194. </trim>
  195. </insert>
  196. <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.MemberCoinTixian">
  197. update member_coin_tixian
  198. <set>
  199. <if test="id != null">
  200. id= #{id,jdbcType=INTEGER},
  201. </if>
  202. <if test="delFlag != null">
  203. del_flag= #{delFlag,jdbcType=CHAR},
  204. </if>
  205. <if test="updateTime != null">
  206. update_time= #{updateTime,jdbcType=TIMESTAMP},
  207. </if>
  208. <if test="updateUser != null">
  209. update_user= #{updateUser,jdbcType=VARCHAR},
  210. </if>
  211. <if test="createTime != null">
  212. create_time= #{createTime,jdbcType=TIMESTAMP},
  213. </if>
  214. <if test="createUser != null">
  215. create_user= #{createUser,jdbcType=VARCHAR},
  216. </if>
  217. <if test="userId != null">
  218. user_id= #{userId,jdbcType=VARCHAR},
  219. </if>
  220. <if test="money != null">
  221. money= #{money,jdbcType=VARCHAR},
  222. </if>
  223. <if test="statusFlag != null">
  224. status_flag= #{statusFlag,jdbcType=INTEGER},
  225. </if>
  226. <if test="fee != null">
  227. fee= #{fee,jdbcType=VARCHAR},
  228. </if>
  229. <if test="netAmount != null">
  230. net_amount= #{netAmount,jdbcType=VARCHAR},
  231. </if>
  232. <if test="dealUser != null">
  233. deal_user= #{dealUser,jdbcType=VARCHAR},
  234. </if>
  235. <if test="dealTime != null">
  236. deal_time= #{dealTime,jdbcType=VARCHAR},
  237. </if>
  238. <if test="wechat != null">
  239. wechat= #{wechat,jdbcType=VARCHAR},
  240. </if>
  241. <if test="alipay != null">
  242. alipay= #{alipay,jdbcType=VARCHAR},
  243. </if>
  244. <if test="bankCard != null">
  245. bank_card= #{bankCard,jdbcType=VARCHAR},
  246. </if>
  247. <if test="bankName != null">
  248. bank_name= #{bankName,jdbcType=VARCHAR},
  249. </if>
  250. <if test="openName != null">
  251. open_name= #{openName,jdbcType=VARCHAR},
  252. </if>
  253. <if test="typeFlag != null">
  254. type_flag= #{typeFlag,jdbcType=INTEGER},
  255. </if>
  256. <if test="remark != null">
  257. remark= #{remark,jdbcType=VARCHAR},
  258. </if>
  259. <if test="tixianCode != null">
  260. tixian_code= #{tixianCode,jdbcType=VARCHAR},
  261. </if>
  262. </set>
  263. where id = #{id,jdbcType=INTEGER}
  264. </update>
  265. <select id="queryMemberCoinTixianByPage" parameterType="java.util.Map"
  266. resultMap="AllInfoForGetOne">
  267. select
  268. <include refid="Base_Column_List"/>
  269. from member_coin_tixian
  270. <where>
  271. and del_flag = 'N'
  272. <if test="record.id != null and !&quot;&quot;.equals(record.id)">
  273. and id = #{record.id}
  274. </if>
  275. <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
  276. and del_flag = #{record.delFlag}
  277. </if>
  278. <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
  279. and update_time = #{record.updateTime}
  280. </if>
  281. <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
  282. and update_user = #{record.updateUser}
  283. </if>
  284. <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
  285. and create_time = #{record.createTime}
  286. </if>
  287. <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
  288. and create_user = #{record.createUser}
  289. </if>
  290. <if test="record.userId != null and !&quot;&quot;.equals(record.userId)">
  291. and user_id = #{record.userId}
  292. </if>
  293. <if test="record.money != null and !&quot;&quot;.equals(record.money)">
  294. and money = #{record.money}
  295. </if>
  296. <if test="record.statusFlag != null and !&quot;&quot;.equals(record.statusFlag)">
  297. and status_flag = #{record.statusFlag}
  298. </if>
  299. <if test="record.fee != null and !&quot;&quot;.equals(record.fee)">
  300. and fee = #{record.fee}
  301. </if>
  302. <if test="record.netAmount != null and !&quot;&quot;.equals(record.netAmount)">
  303. and net_amount = #{record.netAmount}
  304. </if>
  305. <if test="record.dealUser != null and !&quot;&quot;.equals(record.dealUser)">
  306. and deal_user = #{record.dealUser}
  307. </if>
  308. <if test="record.dealTime != null and !&quot;&quot;.equals(record.dealTime)">
  309. and deal_time = #{record.dealTime}
  310. </if>
  311. <if test="record.wechat != null and !&quot;&quot;.equals(record.wechat)">
  312. and wechat = #{record.wechat}
  313. </if>
  314. <if test="record.alipay != null and !&quot;&quot;.equals(record.alipay)">
  315. and alipay = #{record.alipay}
  316. </if>
  317. <if test="record.bankCard != null and !&quot;&quot;.equals(record.bankCard)">
  318. and bank_card = #{record.bankCard}
  319. </if>
  320. <if test="record.bankName != null and !&quot;&quot;.equals(record.bankName)">
  321. and bank_name = #{record.bankName}
  322. </if>
  323. <if test="record.openName != null and !&quot;&quot;.equals(record.openName)">
  324. and open_name = #{record.openName}
  325. </if>
  326. <if test="record.typeFlag != null and !&quot;&quot;.equals(record.typeFlag)">
  327. and type_flag = #{record.typeFlag}
  328. </if>
  329. <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
  330. and remark = #{record.remark}
  331. </if>
  332. <if test="record.tixianCode != null and !&quot;&quot;.equals(record.tixianCode)">
  333. and tixian_code = #{record.tixianCode}
  334. </if>
  335. <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
  336. <trim prefix="and (" suffix=")" prefixOverrides="OR">
  337. OR user_id LIKE concat('%',#{record.searchKey},'%')
  338. OR money LIKE concat('%',#{record.searchKey},'%')
  339. OR status_flag LIKE concat('%',#{record.searchKey},'%')
  340. OR fee LIKE concat('%',#{record.searchKey},'%')
  341. OR net_amount LIKE concat('%',#{record.searchKey},'%')
  342. OR deal_user LIKE concat('%',#{record.searchKey},'%')
  343. OR deal_time LIKE concat('%',#{record.searchKey},'%')
  344. OR wechat LIKE concat('%',#{record.searchKey},'%')
  345. OR alipay LIKE concat('%',#{record.searchKey},'%')
  346. OR bank_card LIKE concat('%',#{record.searchKey},'%')
  347. OR bank_name LIKE concat('%',#{record.searchKey},'%')
  348. OR open_name LIKE concat('%',#{record.searchKey},'%')
  349. OR type_flag LIKE concat('%',#{record.searchKey},'%')
  350. OR remark LIKE concat('%',#{record.searchKey},'%')
  351. OR tixian_code LIKE concat('%',#{record.tixianCode},'%')
  352. </trim>
  353. </if>
  354. <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
  355. <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
  356. <choose>
  357. <when test="item.indexOf('like') != -1">
  358. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  359. <if test="detailIndex == 3">
  360. concat('%',#{itemDetail},'%')
  361. </if>
  362. <if test="detailIndex &lt; 3">
  363. ${itemDetail}
  364. </if>
  365. </foreach>
  366. </when>
  367. <otherwise>
  368. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  369. <if test="detailIndex == 3">
  370. #{itemDetail}
  371. </if>
  372. <if test="detailIndex &lt; 3">
  373. ${itemDetail}
  374. </if>
  375. </foreach>
  376. </otherwise>
  377. </choose>
  378. </foreach>
  379. </if>
  380. </where>
  381. order by
  382. <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
  383. <trim suffixOverrides=",">
  384. <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
  385. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  386. ${itemDetail}
  387. </foreach>
  388. </foreach>
  389. </trim>
  390. ,
  391. </if>
  392. id desc
  393. </select>
  394. <select id="queryAllMemberCoinTixian" parameterType="java.util.Map"
  395. resultType="com.izouma.awesomeadmin.model.MemberCoinTixian">
  396. select
  397. <include refid="Base_Column_List"/>
  398. from member_coin_tixian
  399. <where>
  400. and del_flag = 'N'
  401. <if test="id != null and !&quot;&quot;.equals(id)">
  402. and id = #{id}
  403. </if>
  404. <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
  405. and del_flag = #{delFlag}
  406. </if>
  407. <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
  408. and update_time = #{updateTime}
  409. </if>
  410. <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
  411. and update_user = #{updateUser}
  412. </if>
  413. <if test="createTime != null and !&quot;&quot;.equals(createTime)">
  414. and create_time = #{createTime}
  415. </if>
  416. <if test="createUser != null and !&quot;&quot;.equals(createUser)">
  417. and create_user = #{createUser}
  418. </if>
  419. <if test="userId != null and !&quot;&quot;.equals(userId)">
  420. and user_id = #{userId}
  421. </if>
  422. <if test="money != null and !&quot;&quot;.equals(money)">
  423. and money = #{money}
  424. </if>
  425. <if test="statusFlag != null and !&quot;&quot;.equals(statusFlag)">
  426. and status_flag = #{statusFlag}
  427. </if>
  428. <if test="fee != null and !&quot;&quot;.equals(fee)">
  429. and fee = #{fee}
  430. </if>
  431. <if test="netAmount != null and !&quot;&quot;.equals(netAmount)">
  432. and net_amount = #{netAmount}
  433. </if>
  434. <if test="dealUser != null and !&quot;&quot;.equals(dealUser)">
  435. and deal_user = #{dealUser}
  436. </if>
  437. <if test="dealTime != null and !&quot;&quot;.equals(dealTime)">
  438. and deal_time = #{dealTime}
  439. </if>
  440. <if test="wechat != null and !&quot;&quot;.equals(wechat)">
  441. and wechat = #{wechat}
  442. </if>
  443. <if test="alipay != null and !&quot;&quot;.equals(alipay)">
  444. and alipay = #{alipay}
  445. </if>
  446. <if test="bankCard != null and !&quot;&quot;.equals(bankCard)">
  447. and bank_card = #{bankCard}
  448. </if>
  449. <if test="bankName != null and !&quot;&quot;.equals(bankName)">
  450. and bank_name = #{bankName}
  451. </if>
  452. <if test="openName != null and !&quot;&quot;.equals(openName)">
  453. and open_name = #{openName}
  454. </if>
  455. <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
  456. and type_flag = #{typeFlag}
  457. </if>
  458. <if test="remark != null and !&quot;&quot;.equals(remark)">
  459. and remark = #{remark}
  460. </if>
  461. <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
  462. <trim prefix="and (" suffix=")" prefixOverrides="OR">
  463. OR user_id LIKE concat('%',#{searchKey},'%')
  464. OR money LIKE concat('%',#{searchKey},'%')
  465. OR status_flag LIKE concat('%',#{searchKey},'%')
  466. OR fee LIKE concat('%',#{searchKey},'%')
  467. OR net_amount LIKE concat('%',#{searchKey},'%')
  468. OR deal_user LIKE concat('%',#{searchKey},'%')
  469. OR deal_time LIKE concat('%',#{searchKey},'%')
  470. OR wechat LIKE concat('%',#{searchKey},'%')
  471. OR alipay LIKE concat('%',#{searchKey},'%')
  472. OR bank_card LIKE concat('%',#{searchKey},'%')
  473. OR bank_name LIKE concat('%',#{searchKey},'%')
  474. OR open_name LIKE concat('%',#{searchKey},'%')
  475. OR type_flag LIKE concat('%',#{searchKey},'%')
  476. OR remark LIKE concat('%',#{searchKey},'%')
  477. </trim>
  478. </if>
  479. <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
  480. <foreach item="item" index="index" collection="advancedQuery.split('_;')">
  481. <choose>
  482. <when test="item.indexOf('like') != -1">
  483. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  484. <if test="detailIndex == 3">
  485. concat('%',#{itemDetail},'%')
  486. </if>
  487. <if test="detailIndex &lt; 3">
  488. ${itemDetail}
  489. </if>
  490. </foreach>
  491. </when>
  492. <otherwise>
  493. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  494. <if test="detailIndex == 3">
  495. #{itemDetail}
  496. </if>
  497. <if test="detailIndex &lt; 3">
  498. ${itemDetail}
  499. </if>
  500. </foreach>
  501. </otherwise>
  502. </choose>
  503. </foreach>
  504. </if>
  505. </where>
  506. order by
  507. <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
  508. <trim suffixOverrides=",">
  509. <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
  510. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  511. ${itemDetail}
  512. </foreach>
  513. </foreach>
  514. </trim>
  515. ,
  516. </if>
  517. id desc
  518. </select>
  519. <select id="queryMemberCoinTixian" parameterType="java.util.Map"
  520. resultType="com.izouma.awesomeadmin.model.MemberCoinTixian">
  521. select
  522. <include refid="Base_Column_List"/>
  523. from member_coin_tixian
  524. <where>
  525. and del_flag = 'N'
  526. <if test="id != null and !&quot;&quot;.equals(id)">
  527. and id = #{id}
  528. </if>
  529. <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
  530. and del_flag = #{delFlag}
  531. </if>
  532. <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
  533. and update_time = #{updateTime}
  534. </if>
  535. <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
  536. and update_user = #{updateUser}
  537. </if>
  538. <if test="createTime != null and !&quot;&quot;.equals(createTime)">
  539. and create_time = #{createTime}
  540. </if>
  541. <if test="createUser != null and !&quot;&quot;.equals(createUser)">
  542. and create_user = #{createUser}
  543. </if>
  544. <if test="userId != null and !&quot;&quot;.equals(userId)">
  545. and user_id = #{userId}
  546. </if>
  547. <if test="money != null and !&quot;&quot;.equals(money)">
  548. and money = #{money}
  549. </if>
  550. <if test="statusFlag != null and !&quot;&quot;.equals(statusFlag)">
  551. and status_flag = #{statusFlag}
  552. </if>
  553. <if test="fee != null and !&quot;&quot;.equals(fee)">
  554. and fee = #{fee}
  555. </if>
  556. <if test="netAmount != null and !&quot;&quot;.equals(netAmount)">
  557. and net_amount = #{netAmount}
  558. </if>
  559. <if test="dealUser != null and !&quot;&quot;.equals(dealUser)">
  560. and deal_user = #{dealUser}
  561. </if>
  562. <if test="dealTime != null and !&quot;&quot;.equals(dealTime)">
  563. and deal_time = #{dealTime}
  564. </if>
  565. <if test="wechat != null and !&quot;&quot;.equals(wechat)">
  566. and wechat = #{wechat}
  567. </if>
  568. <if test="alipay != null and !&quot;&quot;.equals(alipay)">
  569. and alipay = #{alipay}
  570. </if>
  571. <if test="bankCard != null and !&quot;&quot;.equals(bankCard)">
  572. and bank_card = #{bankCard}
  573. </if>
  574. <if test="bankName != null and !&quot;&quot;.equals(bankName)">
  575. and bank_name = #{bankName}
  576. </if>
  577. <if test="openName != null and !&quot;&quot;.equals(openName)">
  578. and open_name = #{openName}
  579. </if>
  580. <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
  581. and type_flag = #{typeFlag}
  582. </if>
  583. <if test="remark != null and !&quot;&quot;.equals(remark)">
  584. and remark = #{remark}
  585. </if>
  586. </where>
  587. LIMIT 1
  588. </select>
  589. <update id="delete">
  590. UPDATE member_coin_tixian SET del_flag = 'Y'
  591. <where>
  592. AND id = #{id}
  593. </where>
  594. </update>
  595. <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MemberCoinTixian">
  596. select
  597. <include refid="Base_Column_List"/>
  598. from member_coin_tixian
  599. <where>
  600. and del_flag = 'N'
  601. </where>
  602. order by id desc
  603. </select>
  604. <resultMap id="AllInfoForGetOne" type="com.izouma.awesomeadmin.model.MemberCoinTixian" extends="BaseResultMap">
  605. <association property="userInfo"
  606. javaType="com.izouma.awesomeadmin.model.UserInfo"
  607. select="com.izouma.awesomeadmin.dao.UserInfoMapper.querySingleUserInfo"
  608. column="{ id = user_id }"/>
  609. </resultMap>
  610. </mapper>