PayOrder.java 2.7 KB

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