xhApplyOrder.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhApplyOrder".
  5. *
  6. * @property string $id 订单号
  7. * @property int $accountId xhMerchantAccount表的id
  8. * @property int $payWay 支付方式,查看配置文件configDict payWay
  9. * @property int $payStyle 0第三方支付 1非第三方支付
  10. * @property string $payCode 支付返回号
  11. * @property string $prePrice 应付款,原价,未修改价格,打折前
  12. * @property string $actPrice 实际付款,实价,修改后价格,打折后
  13. * @property string $applyName 申请公众号名称,花店名称,商家名称
  14. * @property string $email 申请使用的邮箱
  15. * @property int $userId 用户id
  16. * @property string $alipayId 支付宝用户id
  17. * @property int $merchantId 邀请人id
  18. * @property int $invitedMerchantId 申请人id 邀请人id
  19. * @property string $remark 备注
  20. * @property int $deadline 到期时间
  21. * @property string $inviteCode 邀请码
  22. * @property int $inviteCodeStatus 邀请码使用状态0未使用 1使用
  23. * @property int $couponId 代金券id
  24. * @property int $payStatus 订单交易状态 0待付款,等待 1付款成功
  25. * @property int $status 订单生存状态
  26. * @property int $addTime 添加时间,时间戳格式
  27. * @property string $createTime 创建时间
  28. * @property string $updateTime
  29. */
  30. class xhApplyOrder extends xhBaseModel
  31. {
  32. /**
  33. * @inheritdoc
  34. */
  35. public static function tableName()
  36. {
  37. return 'xhApplyOrder';
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['id', 'createTime'], 'required'],
  46. [['accountId', 'payWay', 'payStyle', 'userId', 'merchantId', 'invitedMerchantId', 'deadline', 'inviteCodeStatus', 'couponId', 'payStatus', 'status', 'addTime'], 'integer'],
  47. [['prePrice', 'actPrice'], 'number'],
  48. [['createTime', 'updateTime'], 'safe'],
  49. [['id'], 'string', 'max' => 100],
  50. [['payCode', 'remark'], 'string', 'max' => 1000],
  51. [['applyName', 'email', 'alipayId'], 'string', 'max' => 50],
  52. [['inviteCode'], 'string', 'max' => 30],
  53. [['id'], 'unique'],
  54. ];
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function attributeLabels()
  60. {
  61. return [
  62. 'id' => 'ID',
  63. 'accountId' => 'Account ID',
  64. 'payWay' => 'Pay Way',
  65. 'payStyle' => 'Pay Style',
  66. 'payCode' => 'Pay Code',
  67. 'prePrice' => 'Pre Price',
  68. 'actPrice' => 'Act Price',
  69. 'applyName' => 'Apply Name',
  70. 'email' => 'Email',
  71. 'userId' => 'User ID',
  72. 'alipayId' => 'Alipay ID',
  73. 'merchantId' => 'Merchant ID',
  74. 'invitedMerchantId' => 'Invited Merchant ID',
  75. 'remark' => 'Remark',
  76. 'deadline' => 'Deadline',
  77. 'inviteCode' => 'Invite Code',
  78. 'inviteCodeStatus' => 'Invite Code Status',
  79. 'couponId' => 'Coupon ID',
  80. 'payStatus' => 'Pay Status',
  81. 'status' => 'Status',
  82. 'addTime' => 'Add Time',
  83. 'createTime' => 'Create Time',
  84. 'updateTime' => 'Update Time',
  85. ];
  86. }
  87. }