update
This commit is contained in:
parent
a38f1e18ad
commit
5b796fe48c
@ -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')]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user