This commit is contained in:
weiz 2024-04-13 14:11:33 +08:00
parent a38f1e18ad
commit 5b796fe48c

View File

@ -58,10 +58,6 @@
{
$params = $this->request->get();
$where = [];
if (!empty($params['contract_name'])) {
$contract_ids = MarketingContract::where('contract_name', 'like', '%' . $params['contract_name'] . '%')->column('id');
$where[] = ['contract_id', 'in', $contract_ids];
}
if (!empty($params['collection_date'])) {
$date = explode(',', $params['collection_date']);
$where[] = ['collection_date', 'between', [strtotime($date[0] . ' 00:00:00'), strtotime($date[1] . ' 23:59:59')]];