作者 赵彬吉

update

@@ -141,7 +141,7 @@ class Product extends Base @@ -141,7 +141,7 @@ class Product extends Base
141 return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id); 141 return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id);
142 } 142 }
143 143
144 - public function getNumByProjectId($project_id){ 144 + public static function getNumByProjectId($project_id){
145 return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); 145 return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
146 } 146 }
147 147