KwpWalletTransferMapper.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.KwpWalletTransferMapper">
  4. <resultMap id="BaseResultMap" type="com.sckw.payment.model.KwpWalletTransfer">
  5. <!--@mbg.generated-->
  6. <!--@Table kwp_wallet_transfer-->
  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="remark" jdbcType="VARCHAR" property="remark"/>
  16. <result column="create_by" jdbcType="BIGINT" property="createBy"/>
  17. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  18. <result column="update_by" jdbcType="BIGINT" property="updateBy"/>
  19. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
  20. <result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
  21. <result column="status" jdbcType="INTEGER" property="status"/>
  22. </resultMap>
  23. <sql id="Base_Column_List">
  24. <!--@mbg.generated-->
  25. id,
  26. order_no,
  27. `uid`,
  28. from_ent,
  29. `filter`,
  30. to_ent,
  31. channel,
  32. money,
  33. remark,
  34. create_by,
  35. create_time,
  36. update_by,
  37. update_time,
  38. del_flag,
  39. `status`
  40. </sql>
  41. <select id="pageList" resultMap="BaseResultMap">
  42. select *
  43. from kwp_wallet_transfer kwt
  44. <where>
  45. kwt.del_flag = 0
  46. <if test="moneyPage.channel != null and moneyPage.channel != ''">
  47. and kwt.channel = #{moneyPage.channel,jdbcType=VARCHAR}
  48. </if>
  49. <if test="moneyPage.uid != null and moneyPage.uid != ''">
  50. and kwt.uid = #{moneyPage.uid,jdbcType=VARCHAR}
  51. </if>
  52. <if test="moneyPage.filter != null and moneyPage.filter != ''">
  53. and kwt.filter = #{moneyPage.filter,jdbcType=VARCHAR}
  54. </if>
  55. </where>
  56. </select>
  57. </mapper>