master
cody 1 week ago
parent 4c682fc19a
commit 8332e8dbc8

@ -126,7 +126,7 @@ class CompanyController extends BaseController
// 使用 LIKE 匹配 JSON 字符串中的年份范围
$query->where(function ($q) use ($start_year, $end_year) {
for ($year = (int)$start_year; $year <= (int)$end_year; $year++) {
$q->orWhere('project_users', 'like', '%"investDate":"' . $year . '%');
$q->orWhere('project_users', 'like', '%' . $year . '%');
}
});
}

Loading…
Cancel
Save