KwpWalletRefundMapper.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.sckw.payment.dao.KwpWalletRefundMapper">
  4. <resultMap id="BaseResultMap" type="com.sckw.payment.model.KwpWalletRefund">
  5. <!--@mbg.generated-->
  6. <!--@Table kwp_wallet_refund-->
  7. <id column="id" jdbcType="BIGINT" property="id"/>
  8. <result column="order_no" jdbcType="VARCHAR" property="orderNo"/>
  9. <result column="uid" jdbcType="VARCHAR" property="uid"/>
  10. <result column="from_ent" jdbcType="BIGINT" property="fromEnt"/>
  11. <result column="filter" jdbcType="VARCHAR" property="filter"/>
  12. <result column="to_ent" jdbcType="BIGINT" property="toEnt"/>
  13. <result column="channel" jdbcType="VARCHAR" property="channel"/>
  14. <result column="money" jdbcType="DECIMAL" property="money"/>
  15. <result column="actual_money" jdbcType="DECIMAL" property="actualMoney"/>
  16. <result column="remark" jdbcType="VARCHAR" property="remark"/>
  17. <result column="create_by" jdbcType="BIGINT" property="createBy"/>
  18. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  19. <result column="update_by" jdbcType="BIGINT" property="updateBy"/>
  20. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
  21. <result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
  22. <result column="status" jdbcType="INTEGER" property="status"/>
  23. </resultMap>
  24. <select id="pageList" resultMap="BaseResultMap">
  25. select kwr.*
  26. from kwp_wallet_refund kwr
  27. <where>
  28. kwr.del_flag = 0
  29. <!-- and kwr.status = 1-->
  30. <if test="refundPage.uid != null and refundPage.uid != ''">
  31. and kwr.uid = #{refundPage.uid,jdbcType=VARCHAR}
  32. </if>
  33. <if test="refundPage.filter != null and refundPage.filter != ''">
  34. and kwr.filter = #{refundPage.filter,jdbcType=VARCHAR}
  35. </if>
  36. <if test="refundPage.channel != null and refundPage.channel != ''">
  37. and kwr.channel = #{refundPage.channel,jdbcType=VARCHAR}
  38. </if>
  39. <if test="refundPage.keywords != null and refundPage.keywords != ''">
  40. and kwr.order_no like concat('%', #{refundPage.keywords,jdbcType=VARCHAR}, '%')
  41. </if>
  42. <if test="refundPage.startCreateTime != null and refundPage.startCreateTime != '' and refundPage.endCreateTime != null and refundPage.endCreateTime != ''">
  43. and kwr.create_time between #{refundPage.startCreateTime,jdbcType=TIMESTAMP} and #{refundPage.endCreateTime,jdbcType=TIMESTAMP}
  44. </if>
  45. </where>
  46. </select>
  47. </mapper>