PayOrder.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package com.qs.mp.pay.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.qs.mp.common.enums.BizTypeEnum;
  7. import java.io.Serializable;
  8. import java.util.Date;
  9. import lombok.Data;
  10. /**
  11. * @describe 支付订单表实体类
  12. * @auther quanshu
  13. * @create 2022-03-04 14:02:40
  14. */
  15. @TableName("mp_pay_order")
  16. @Data
  17. public class PayOrder implements Serializable {
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * 订单ID
  21. */
  22. @TableId(value = "order_id" , type = IdType.INPUT)
  23. private String orderId;
  24. /**
  25. * 订单类型,1:渠道订单,2用户订单
  26. */
  27. @TableField("biz_type")
  28. private BizTypeEnum bizType;
  29. /**
  30. * 业务单据ID,例如:渠道订单关联的渠道订单ID
  31. */
  32. @TableField("biz_id")
  33. private String bizId;
  34. /**
  35. * 支付订单编号,三方支付订单编号
  36. */
  37. @TableField("order_no")
  38. private String orderNo;
  39. /**
  40. * 订单产生时间
  41. */
  42. @TableField("order_time")
  43. private String orderTime;
  44. /**
  45. * 支付来源 1:支付宝 2:微信支付 5:云闪付
  46. * 增加直连来源(2022.7) 10:支付宝直连
  47. */
  48. @TableField("pay_resource")
  49. private String payResource;
  50. /**
  51. * 1004:支付宝CTB;1008:微信公众号(需要绑定支付目录)1014: 支付宝服务窗1016:云闪付CTB1017:微信小程序1019:支付宝小程序(请用1014编码)
  52. *
  53. */
  54. @TableField("trans_type_code")
  55. private String transTypeCode;
  56. /**
  57. * 交易金额,以分为单位
  58. */
  59. @TableField("transaction_amount")
  60. private Integer transactionAmount;
  61. /**
  62. * 订单备注 长度 100
  63. */
  64. @TableField("order_remark")
  65. private String orderRemark;
  66. /**
  67. * 订单名称,如:充值,租赁仓库,采购设备等
  68. */
  69. @TableField("order_name")
  70. private String orderName;
  71. /**
  72. * 订单状态码
  73. */
  74. @TableField("order_status")
  75. private String orderStatus;
  76. /**
  77. * 返回状态码
  78. */
  79. @TableField("code")
  80. private String code;
  81. /**
  82. * 返回结果说明
  83. */
  84. @TableField("result")
  85. private String result;
  86. /**
  87. * 交易完成时间
  88. */
  89. @TableField("complete_date")
  90. private String completeDate;
  91. /**
  92. * 微信/支付宝支付详情页上对应的商户/商家订单编号
  93. */
  94. @TableField("channel_no")
  95. private String channelNo;
  96. /**
  97. * 创建时间
  98. */
  99. @TableField("gmt_created")
  100. private Date gmtCreated;
  101. /**
  102. * 修改时间
  103. */
  104. @TableField("gmt_modified")
  105. private Date gmtModified;
  106. }