xhAllOrder.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhAllOrder".
  5. *
  6. * @property int $id
  7. * @property string $relateId 关联id
  8. * @property int $capitalType 流水类型,参考configDict capitalType
  9. * @property string $prePrice 应付款,原价,未修改价格,打折前
  10. * @property string $actPrice 实际付款,实价,修改后价格,打折后
  11. * @property int $io 收支类型 0支出 1收入 2其它
  12. * @property string $sendNum 配送编号,方便寻找订单对应的花束
  13. * @property int $merchantId 商家id
  14. * @property int $userId 用户id
  15. * @property string $openId 微信openid
  16. * @property string $alipayId 支付宝uid
  17. * @property int $payStatus 支付状态 0待支付 1已支付
  18. * @property int $addTime 添加时间
  19. * @property string $createTime 创建时间
  20. * @property string $updateTime
  21. */
  22. class xhAllOrder extends xhBaseModel
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return 'xhAllOrder';
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function rules()
  35. {
  36. return [
  37. [['capitalType', 'io', 'merchantId', 'userId', 'payStatus', 'addTime'], 'integer'],
  38. [['prePrice', 'actPrice'], 'number'],
  39. [['createTime'], 'required'],
  40. [['createTime', 'updateTime'], 'safe'],
  41. [['relateId', 'openId'], 'string', 'max' => 100],
  42. [['sendNum'], 'string', 'max' => 20],
  43. [['alipayId'], 'string', 'max' => 50],
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'relateId' => 'Relate ID',
  54. 'capitalType' => 'Capital Type',
  55. 'prePrice' => 'Pre Price',
  56. 'actPrice' => 'Act Price',
  57. 'io' => 'Io',
  58. 'sendNum' => 'Send Num',
  59. 'merchantId' => 'Merchant ID',
  60. 'userId' => 'User ID',
  61. 'openId' => 'Open ID',
  62. 'alipayId' => 'Alipay ID',
  63. 'payStatus' => 'Pay Status',
  64. 'addTime' => 'Add Time',
  65. 'createTime' => 'Create Time',
  66. 'updateTime' => 'Update Time',
  67. ];
  68. }
  69. }