You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.9 KiB

  1. <?php
  2. namespace common\models\ars;
  3. use Yii;
  4. use yii\behaviors\TimestampBehavior;
  5. /**
  6. * This is the model class for table "ats_refund_log".
  7. *
  8. * @property int $id
  9. * @property int $order_id 订单id
  10. * @property string $wx_refund_id 微信退款单号
  11. * @property int $reason 理由
  12. * @property int $order_amount 订单金额
  13. * @property int $refund_amount 退款金额
  14. * @property int $refunded_amount 已退款金额
  15. * @property int $type 类型
  16. * @property int $status 状态
  17. * @property string $refund_account 退款账户
  18. * @property int $operator_id 操作者
  19. * @property int $applyed_at 申请时间
  20. * @property int $confirmed_at 确认时间
  21. * @property int $finished_at 完成时间
  22. */
  23. class RefundLog extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return 'ats_refund_log';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['order_id', 'reason', 'order_amount', 'refund_amount', 'refunded_amount', 'type', 'status', 'operator_id', 'applyed_at', 'confirmed_at', 'finished_at'], 'integer'],
  39. [['wx_refund_id', 'refund_account'], 'string', 'max' => 64],
  40. ];
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => 'id',
  49. 'order_id' => '订单id',
  50. 'wx_refund_id' => '微信退款单号',
  51. 'reason' => '理由',
  52. 'order_amount' => '订单金额',
  53. 'refund_amount' => '退款金额',
  54. 'refunded_amount' => '已退款金额',
  55. 'type' => '类型',
  56. 'status' => '状态',
  57. 'refund_account' => '退款账户',
  58. 'operator_id' => '操作者',
  59. 'applyed_at' => '申请时间',
  60. 'confirmed_at' => '确认时间',
  61. 'finished_at' => '完成时间',
  62. ];
  63. }
  64. }