|
...
|
...
|
@@ -9,8 +9,12 @@ |
|
|
|
|
|
|
|
namespace App\Http\Logic\Aside\Geo;
|
|
|
|
|
|
|
|
use App\Console\Commands\Geo\GeoQuestionRes;
|
|
|
|
use App\Http\Logic\Aside\BaseLogic;
|
|
|
|
use App\Models\Geo\GeoConf;
|
|
|
|
use App\Models\Geo\GeoLink;
|
|
|
|
use App\Models\Geo\GeoQuestion;
|
|
|
|
use App\Models\Geo\GeoWritings;
|
|
|
|
use App\Models\Manage\ManageHr;
|
|
|
|
use App\Models\Project\KeywordPrefix;
|
|
|
|
use App\Models\Project\Project;
|
|
...
|
...
|
@@ -97,4 +101,20 @@ class GeoLogic extends BaseLogic |
|
|
|
return $this->success(['id'=>$id]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取统计数据
|
|
|
|
* @name :getCount
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/10/30 10:39
|
|
|
|
*/
|
|
|
|
public function getCount()
|
|
|
|
{
|
|
|
|
//获取问题数量
|
|
|
|
$geo_question_count = GeoQuestion::selectRaw('SUM(JSON_LENGTH(question)) as total_count')->where('project_id',$this->param['project_id'])->value('total_count');
|
|
|
|
$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]);
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|