1
This commit is contained in:
@@ -58,6 +58,24 @@ class CustomerController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 待跟进客户列表
|
||||||
|
* @param Request $request
|
||||||
|
* @return \support\Response
|
||||||
|
*/
|
||||||
|
public function waitFollow(Request $request)
|
||||||
|
{
|
||||||
|
$userId = $request->user['id'];
|
||||||
|
$where = [
|
||||||
|
['user_id', '=', $userId],
|
||||||
|
// ['follow_next', '<=', time() + 3600 * 24],
|
||||||
|
['follow_next', '>', time()],
|
||||||
|
['warn', '<', 1]
|
||||||
|
];
|
||||||
|
$customer = Customer::where($where)->orderBy('follow_next')->get();
|
||||||
|
return Util::success($customer,trans('success'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户列表
|
* 客户列表
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
@@ -101,7 +119,6 @@ class CustomerController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 执行分页查询
|
// 执行分页查询
|
||||||
$query = Customer::where($where)
|
$query = Customer::where($where)
|
||||||
->orderBy('id', 'desc');
|
->orderBy('id', 'desc');
|
||||||
|
|||||||
Reference in New Issue
Block a user