|
@@ -830,14 +830,14 @@ class StoreOrder extends BaseModel
|
|
|
|
|
|
}
|
|
|
|
|
|
- public static function point()
|
|
|
+ public function point()
|
|
|
{
|
|
|
- return self::hasOne(SystemStorePoint::class, 'id', 'point_id')->field('*');
|
|
|
+ return $this->hasOne(SystemStorePoint::class, 'id', 'point_id')->field('*');
|
|
|
}
|
|
|
|
|
|
- public static function store()
|
|
|
+ public function store()
|
|
|
{
|
|
|
- return self::hasOne(SystemStore::class, 'id', 'store_id')->field('*');
|
|
|
+ return $this->hasOne(SystemStore::class, 'id', 'store_id')->field('*');
|
|
|
}
|
|
|
|
|
|
|