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.

78 lines
2.4 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_after_sale".
  7. *
  8. * @property int $id
  9. * @property int $operator_id 操作者
  10. * @property int $user_id 用户id
  11. * @property string $wx_refund_id 微信退款单号
  12. * @property string $after_sale_sn 售后单号
  13. * @property int $order_goods_id 订单商品id
  14. * @property int $count 退换货的商品数量
  15. * @property int $amount 退货时实际退的金额
  16. * @property int $type 类型
  17. * @property int $reason 退换货理由
  18. * @property string $description 描述
  19. * @property string $take_shipping_sn 用户发货物流单号
  20. * @property string $send_shipping_sn 换货商家发货的物流单号
  21. * @property string $remarks 店家备注
  22. * @property int $applyed_at 申请时间
  23. * @property int $dealed_at 处理时间
  24. * @property int $finished_at 完成时间
  25. */
  26. class AfterSale extends \yii\db\ActiveRecord
  27. {
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public static function tableName()
  32. {
  33. return 'ats_after_sale';
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function rules()
  39. {
  40. return [
  41. [['operator_id', 'user_id', 'order_goods_id', 'count', 'amount', 'type', 'reason', 'applyed_at', 'dealed_at', 'finished_at'], 'integer'],
  42. [['description', 'remarks'], 'string'],
  43. [['wx_refund_id', 'after_sale_sn'], 'string', 'max' => 64],
  44. [['take_shipping_sn', 'send_shipping_sn'], 'string', 'max' => 50],
  45. ];
  46. }
  47. /**
  48. * {@inheritdoc}
  49. */
  50. public function attributeLabels()
  51. {
  52. return [
  53. 'id' => 'id',
  54. 'operator_id' => '操作者',
  55. 'user_id' => '用户id',
  56. 'wx_refund_id' => '微信退款单号',
  57. 'after_sale_sn' => '售后单号',
  58. 'order_goods_id' => '订单商品id',
  59. 'count' => '退换货的商品数量',
  60. 'amount' => '退货时实际退的金额',
  61. 'type' => '类型',
  62. 'reason' => '退换货理由',
  63. 'description' => '描述',
  64. 'take_shipping_sn' => '用户发货物流单号',
  65. 'send_shipping_sn' => '换货商家发货的物流单号',
  66. 'remarks' => '店家备注',
  67. 'applyed_at' => '申请时间',
  68. 'dealed_at' => '处理时间',
  69. 'finished_at' => '完成时间',
  70. ];
  71. }
  72. }