|
|
|
@ -186,10 +186,8 @@ class CourseSign extends SoftDeletesModel
|
|
|
|
$query->whereIn('id', $userIds);
|
|
|
|
$query->whereIn('id', $userIds);
|
|
|
|
})->where('is_yh_invested', 1)->get();
|
|
|
|
})->where('is_yh_invested', 1)->get();
|
|
|
|
// 自定义时间:需要按被投时间筛选
|
|
|
|
// 自定义时间:需要按被投时间筛选
|
|
|
|
|
|
|
|
|
|
|
|
$startDate = substr($start_date, 0, 10);
|
|
|
|
$startDate = substr($start_date, 0, 10);
|
|
|
|
$endDate = substr($end_date, 0, 10);
|
|
|
|
$endDate = substr($end_date, 0, 10);
|
|
|
|
dd($startDate, $endDate);
|
|
|
|
|
|
|
|
// 筛选出被投时间在范围内的企业
|
|
|
|
// 筛选出被投时间在范围内的企业
|
|
|
|
$filteredCompanies = [];
|
|
|
|
$filteredCompanies = [];
|
|
|
|
foreach ($companies as $company) {
|
|
|
|
foreach ($companies as $company) {
|
|
|
|
|