UserOrderPaymentMapper.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.yonge.cooleshow.biz.dal.dao.UserOrderPaymentDao">
  4. <resultMap id="BaseResultMap" type="com.yonge.cooleshow.biz.dal.entity.UserOrderPayment">
  5. <result column="id_" property="id" />
  6. <result column="order_no_" property="orderNo" />
  7. <result column="trans_no_" property="transNo" />
  8. <result column="pay_channel_" property="payChannel" />
  9. <result column="pay_amt_" property="payAmt" />
  10. <result column="back_pay_amt_" property="backPayAmt" />
  11. <result column="fee_amt_" property="feeAmt" />
  12. <result column="pay_info_" property="payInfo" />
  13. <result column="status_" property="status" />
  14. <result column="pay_fail_msg_" property="payFailMsg" />
  15. <result column="arrival_time_" property="arrivalTime" />
  16. <result column="close_status_" property="closeStatus" />
  17. <result column="close_fail_msg_" property="closeFailMsg" />
  18. <result column="create_time_" property="createTime" />
  19. <result column="update_time_" property="updateTime" />
  20. </resultMap>
  21. <!-- 表字段 -->
  22. <sql id="baseColumns">
  23. t.id_ as id
  24. , t.order_no_ as orderNo
  25. , t.trans_no_ as transNo
  26. , t.pay_channel_ as payChannel
  27. , t.pay_amt_ as payAmt
  28. , t.back_pay_amt_ as backPayAmt
  29. , t.fee_amt_ as feeAmt
  30. , t.pay_info_ as payInfo
  31. , t.status_ as status
  32. , t.pay_fail_msg_ as payFailMsg
  33. , t.arrival_time_ as arrivalTime
  34. , close_status_ as closeStatus
  35. , close_fail_msg_ as closeFailMsg
  36. , t.create_time_ as createTime
  37. , t.update_time_ as updateTime
  38. </sql>
  39. <select id="detail" resultType="com.yonge.cooleshow.biz.dal.vo.UserOrderPaymentVo">
  40. SELECT
  41. <include refid="baseColumns"/>
  42. FROM user_order_payment t
  43. where t.id_ = #{id}
  44. </select>
  45. <select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.vo.UserOrderPaymentVo">
  46. SELECT
  47. <include refid="baseColumns" />
  48. FROM user_order_payment t
  49. </select>
  50. </mapper>