AfterSale.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace addons\WechatMini\common\models\video\order;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_wechat_capabilities_order_aftersale}}".
  6. *
  7. * @property int $out_order_id 订单ID
  8. * @property int $out_aftersale_id 售后ID
  9. * @property int $merchant_id 商户ID
  10. * @property string $path 路径
  11. * @property int $type 退款类型 1:退款,2:退款退货,3:换货
  12. * @property int $finish_all_aftersale 0:订单可继续售后, 1:订单无继续售后
  13. * @property string $refund 退款金额
  14. * @property array $product_infos 退货相关商品列表
  15. * @property int $status 状态
  16. * @property int $created_at 创建时间
  17. * @property int $updated_at 修改时间
  18. */
  19. class AfterSale extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%addon_wechat_mini_video_order_aftersale}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['out_order_id'], 'required'],
  35. [['out_order_id', 'out_aftersale_id', 'merchant_id', 'type', 'finish_all_aftersale', 'status', 'created_at', 'updated_at'], 'integer'],
  36. [['refund'], 'number'],
  37. [['product_infos'], 'safe'],
  38. [['path'], 'string', 'max' => 255],
  39. [['out_order_id'], 'unique'],
  40. ];
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'out_order_id' => '订单ID',
  49. 'out_aftersale_id' => '售后ID',
  50. 'merchant_id' => '商户ID',
  51. 'path' => '路径',
  52. 'type' => '退款类型 1:退款,2:退款退货,3:换货',
  53. 'finish_all_aftersale' => '0:订单可继续售后, 1:订单无继续售后',
  54. 'refund' => '退款金额',
  55. 'product_infos' => '退货相关商品列表',
  56. 'status' => '状态',
  57. 'created_at' => '创建时间',
  58. 'updated_at' => '修改时间',
  59. ];
  60. }
  61. }
粤ICP备19079148号