|
...
|
...
|
@@ -25,7 +25,6 @@ class Product extends Base |
|
|
|
const STATUS_ON = 1;
|
|
|
|
const STATUS_RECYCLE = 2;
|
|
|
|
|
|
|
|
// protected $appends = ['route'];
|
|
|
|
|
|
|
|
public static function statusMap(){
|
|
|
|
return [
|
|
...
|
...
|
@@ -148,10 +147,6 @@ class Product extends Base |
|
|
|
public function getRelatedProductIdAttribute($value){
|
|
|
|
return Arr::setToArr($value);
|
|
|
|
}
|
|
|
|
//
|
|
|
|
// public function getRouteAttribute(){
|
|
|
|
// return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id);
|
|
|
|
// }
|
|
|
|
|
|
|
|
// public static function getNumByProjectId($project_id){
|
|
|
|
// return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
...
|
...
|
|