SuperSalesRepeatOrder.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace app\models;
  3. use app\modules\client\models\OrderComplete;
  4. use app\utils\OrderNo;
  5. use yii\behaviors\TimestampBehavior;
  6. use yii\db\ActiveRecord;
  7. use yii\helpers\ArrayHelper;
  8. /**
  9. * @property integer $id
  10. * @property integer $store_id
  11. * @property integer $order_id
  12. * @property integer $user_id
  13. * @property integer $old_sales_id
  14. * @property integer $sales_id
  15. * @property string $created_at
  16. * @property string $updated_at
  17. */
  18. class SuperSalesRepeatOrder extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%super_sales_repeat_order}}';
  26. }
  27. public function behaviors()
  28. {
  29. return [
  30. [
  31. 'class' => TimestampBehavior::class
  32. ]
  33. ];
  34. }
  35. public function rules()
  36. {
  37. return [
  38. [['id', 'store_id', 'order_id', 'user_id', 'old_sales_id', 'sales_id'], 'integer'],
  39. [['created_at', 'updated_at'], 'string']
  40. ];
  41. }
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => '',
  46. 'store_id' => '商城ID',
  47. 'order_id' => '订单ID',
  48. 'user_id' => '用户ID',
  49. 'old_sales_id' => '原团ID',
  50. 'sales_id' => '新团ID',
  51. 'created_at' => '',
  52. 'updated_at' => '',
  53. ];
  54. }
  55. }