正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论