|
...
|
...
|
@@ -112,6 +112,9 @@ class GeoLogic extends BaseLogic |
|
|
|
{
|
|
|
|
//获取问题数量
|
|
|
|
$geo_question_count = GeoQuestion::selectRaw('SUM(JSON_LENGTH(question)) as total_count')->where('project_id',$this->param['project_id'])->value('total_count');
|
|
|
|
if(empty($geo_question_count)){
|
|
|
|
$geo_question_count = 0;
|
|
|
|
}
|
|
|
|
$geo_pr_count = GeoLink::where('project_id',$this->param['project_id'])->count();
|
|
|
|
$geo_writings_count = GeoWritings::where('project_id',$this->param['project_id'])->count();
|
|
|
|
return $this->success(['geo_writings_count'=>$geo_writings_count,'geo_pr_count'=>$geo_pr_count,'geo_question_count'=>$geo_question_count]);
|
...
|
...
|
|