master
cody 2 weeks ago
parent c2f17c450b
commit 6d7fc66927

@ -243,7 +243,6 @@ class CompanyController extends BaseController
* @OA\Parameter(name="overseas_experience", in="query", @OA\Schema(type="string", nullable=true), description="海外经验"),
* @OA\Parameter(name="sales_volume", in="query", @OA\Schema(type="string", nullable=true), description="销售额"),
* @OA\Parameter(name="tag", in="query", @OA\Schema(type="string", nullable=true), description="标签,千企走访这类的数据"),
* @OA\Parameter(name="company_invested", in="query", @OA\Schema(type="string"), required=true, description="投资金额"),
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="认证token"),
* @OA\Response(
* response="200",

@ -114,7 +114,7 @@ class CourseSign extends SoftDeletesModel
// 开始结束日期的筛选。or查询
$query->whereBetween('start_date', [$start_date, $end_date])
->orWhereBetween('end_date', [$start_date, $end_date]);
})->where('type', request('course_type_id'))->sum('course_signs_total');
})->where('type', request('course_type_id',0))->sum('course_signs_total');
// 返回统计数据
return $historyTotal + $baseTotal;
}
@ -137,7 +137,7 @@ class CourseSign extends SoftDeletesModel
// 开始结束日期的筛选。or查询
$query->whereBetween('start_date', [$start_date, $end_date])
->orWhereBetween('end_date', [$start_date, $end_date]);
})->where('type', request('course_type_id'))->sum('course_type_signs_pass_unique');
})->where('type', request('course_type_id',0))->sum('course_type_signs_pass_unique');
// 统计数据
return $baseTotal + $historyTotal;
}

@ -1,33 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('companies', function (Blueprint $table) {
// 已投资金额
$table->decimal('company_invested', 10, 2)->default(0)->comment('已投资金额');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('companies', function (Blueprint $table) {
//
});
}
};
Loading…
Cancel
Save