|
...
|
...
|
@@ -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;
|
|
...
|
...
|
@@ -106,7 +110,11 @@ class GeoLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function getCount()
|
|
|
|
{
|
|
|
|
|
|
|
|
//获取问题数量
|
|
|
|
$geo_question_count = GeoQuestion::selectRaw('SUM(JSON_LENGTH(question)) as total_count')->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]);
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|