xhActiveOrder.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhActiveOrder".
  5. *
  6. * @property string $id 订单号
  7. * @property int $activeId 活动id
  8. * @property int $payWay 支付方式 0微信 1支付宝 2余额,具体请查看配置文件configDict payWay
  9. * @property int $payStyle 0第三方支付 1非第三方支付
  10. * @property string $payCode 支付返回号
  11. * @property string $prePrice 票面价,原价,未修改价格,优惠前价格
  12. * @property string $actPrice 实际付款,修改后价格,使用优惠码后付的价格
  13. * @property int $ticketNum 票数
  14. * @property string $coupon 优惠码
  15. * @property int $couponId 代金劵id
  16. * @property int $userId 用户id
  17. * @property string $alipayId 支付宝用户id
  18. * @property int $merchantId 商户id
  19. * @property string $remark 备注
  20. * @property int $payStatus 付款状态 0待付款 1已经付款
  21. * @property string $createTime 创建时间
  22. * @property string $updateTime 修改时间
  23. * @property int $classId 票种id
  24. * @property int $deadline 订单有效期
  25. * @property int $addTime 添加时间,时间戳格式
  26. * @property string $bookName 订票人真实姓名
  27. * @property string $bookMobile 订票人电话
  28. */
  29. class xhActiveOrder extends xhBaseModel
  30. {
  31. /**
  32. * @inheritdoc
  33. */
  34. public static function tableName()
  35. {
  36. return 'xhActiveOrder';
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['id', 'createTime'], 'required'],
  45. [['activeId', 'payWay', 'payStyle', 'ticketNum', 'couponId', 'userId', 'merchantId', 'payStatus', 'passStatus', 'classId', 'deadline', 'addTime'], 'integer'],
  46. [['prePrice', 'actPrice'], 'number'],
  47. [['createTime', 'updateTime'], 'safe'],
  48. [['id', 'coupon'], 'string', 'max' => 100],
  49. [['payCode', 'remark'], 'string', 'max' => 1000],
  50. [['alipayId'], 'string', 'max' => 50],
  51. [['bookName', 'bookMobile'], 'string', 'max' => 20],
  52. [['id'], 'unique'],
  53. ];
  54. }
  55. /**
  56. * @inheritdoc
  57. */
  58. public function attributeLabels()
  59. {
  60. return [
  61. 'id' => 'ID',
  62. 'activeId' => 'Active ID',
  63. 'payWay' => 'Pay Way',
  64. 'payStyle' => 'Pay Style',
  65. 'payCode' => 'Pay Code',
  66. 'prePrice' => 'Pre Price',
  67. 'actPrice' => 'Act Price',
  68. 'ticketNum' => 'Ticket Num',
  69. 'coupon' => 'Coupon',
  70. 'couponId' => 'Coupon ID',
  71. 'userId' => 'User ID',
  72. 'alipayId' => 'Alipay ID',
  73. 'merchantId' => 'Merchant ID',
  74. 'remark' => 'Remark',
  75. 'payStatus' => 'Pay Status',
  76. 'passStatus' => 'Pass Status',
  77. 'createTime' => 'Create Time',
  78. 'updateTime' => 'Update Time',
  79. 'classId' => 'Class ID',
  80. 'deadline' => 'Deadline',
  81. 'addTime' => 'Add Time',
  82. 'bookName' => 'Book Name',
  83. 'bookMobile' => 'Book Mobile',
  84. ];
  85. }
  86. }