WechatIntracityBalanceLog.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%wechat_intracity_balance_log}}".
  6. *
  7. * @property integer $id
  8. * @property integer $md_id
  9. * @property integer $flow_type
  10. * @property number $pay_order_id
  11. * @property string $service_trans_prefer
  12. * @property number $pay_amount
  13. * @property integer $pay_time
  14. * @property string $pay_status
  15. * @property integer $create_time
  16. * @property integer $consume_deadline
  17. * @property integer $refund_time
  18. * @property number $refund_amount
  19. * @property string $refund_status
  20. * @property number $deduct_amount
  21. * @property integer $bill_id
  22. * @property integer $delivery_finished_time
  23. * @property string $wx_order_id
  24. * @property string $openid
  25. * @property string $delivery_status
  26. */
  27. class WechatIntracityBalanceLog extends \yii\db\ActiveRecord
  28. {
  29. /**
  30. * @inheritdoc
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%wechat_intracity_balance_log}}';
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['id', 'md_id', 'flow_type', 'pay_time', 'create_time', 'consume_deadline', 'refund_time', 'bill_id', 'delivery_finished_time'], 'integer'],
  43. [['pay_order_id', 'pay_amount', 'refund_amount', 'deduct_amount'], 'number'],
  44. [[ 'service_trans_prefer', 'pay_status', 'refund_status', 'wx_order_id', 'openid', 'delivery_status'], 'string'],
  45. ];
  46. }
  47. // public function behaviors()
  48. // {
  49. // return [
  50. // [
  51. // 'class' => TimestampBehavior::class,
  52. // ]
  53. // ];
  54. // }
  55. /**
  56. * @inheritdoc
  57. */
  58. public function attributeLabels()
  59. {
  60. return [
  61. 'id' => '',
  62. 'md_id' => '门店id',
  63. 'flow_type' => '流水类型 1:充值流水,2:消费流水,3:退款流水',
  64. 'pay_order_id' => '充值订单号',
  65. 'service_trans_prefer' => '运力ID',
  66. 'pay_amount' => '支付金额',
  67. 'pay_time' => '支付时间',
  68. 'pay_status' => '支付状态 FAIL:支付失败 SUCCESS:支付成功',
  69. 'create_time' => '订单创建时间',
  70. 'consume_deadline' => '有效截止日期',
  71. 'refund_time' => '退款时间',
  72. 'refund_amount' => '退款金额',
  73. 'refund_status' => '退款状态 PROCESSING:退款处理中 SUCCESS:退款成功',
  74. 'deduct_amount' => '扣除违约金',
  75. 'bill_id' => '运单ID',
  76. 'delivery_finished_time' => '运单完成配送的时间',
  77. ];
  78. }
  79. }