|
@@ -9,8 +9,12 @@ |
|
@@ -9,8 +9,12 @@ |
|
9
|
|
9
|
|
|
10
|
namespace App\Http\Logic\Aside\Geo;
|
10
|
namespace App\Http\Logic\Aside\Geo;
|
|
11
|
|
11
|
|
|
|
|
12
|
+use App\Console\Commands\Geo\GeoQuestionRes;
|
|
12
|
use App\Http\Logic\Aside\BaseLogic;
|
13
|
use App\Http\Logic\Aside\BaseLogic;
|
|
13
|
use App\Models\Geo\GeoConf;
|
14
|
use App\Models\Geo\GeoConf;
|
|
|
|
15
|
+use App\Models\Geo\GeoLink;
|
|
|
|
16
|
+use App\Models\Geo\GeoQuestion;
|
|
|
|
17
|
+use App\Models\Geo\GeoWritings;
|
|
14
|
use App\Models\Manage\ManageHr;
|
18
|
use App\Models\Manage\ManageHr;
|
|
15
|
use App\Models\Project\KeywordPrefix;
|
19
|
use App\Models\Project\KeywordPrefix;
|
|
16
|
use App\Models\Project\Project;
|
20
|
use App\Models\Project\Project;
|
|
@@ -106,7 +110,11 @@ class GeoLogic extends BaseLogic |
|
@@ -106,7 +110,11 @@ class GeoLogic extends BaseLogic |
|
106
|
*/
|
110
|
*/
|
|
107
|
public function getCount()
|
111
|
public function getCount()
|
|
108
|
{
|
112
|
{
|
|
109
|
-
|
113
|
+ //获取问题数量
|
|
|
|
114
|
+ $geo_question_count = GeoQuestion::selectRaw('SUM(JSON_LENGTH(question)) as total_count')->value('total_count');
|
|
|
|
115
|
+ $geo_pr_count = GeoLink::where('project_id',$this->param['project_id'])->count();
|
|
|
|
116
|
+ $geo_writings_count = GeoWritings::where('project_id',$this->param['project_id'])->count();
|
|
|
|
117
|
+ return $this->success(['geo_writings_count'=>$geo_writings_count,'$geo_pr_count'=>$geo_pr_count,'geo_question_count'=>$geo_question_count]);
|
|
110
|
}
|
118
|
}
|
|
111
|
|
119
|
|
|
112
|
} |
120
|
} |