Commit 778d90b0 authored by zhuwei's avatar zhuwei

客户列表时间搜索bug

parent 802006de
...@@ -157,10 +157,15 @@ class User extends Basic ...@@ -157,10 +157,15 @@ class User extends Basic
if($app_request_source_type == 1){ if($app_request_source_type == 1){
//'全部客户列表' 需要排除排除纯房东客户 //'全部客户列表' 需要排除排除纯房东客户
$conditions['user_label'] = array( "neq", 2 ); $conditions['user_label'] = array( "neq", 2 );
//'全部客户列表' 需要排除排除保护期内的客户
$time_now = date('Y-m-d H:i:s');//当前时间 if (!isset($conditions['create_time'])){
$time_before = date("Y-m-d H:i:s",strtotime("-1 day"));//24小时前的时间 //1.'全部客户列表' 需要排除排除保护期内的客户
$conditions['create_time'] = array( 'not between', array( $time_before, $time_now ) ); //2.上面流程如果不存在$conditions['create_time'],说明非精确搜索,排除排除保护期内的客户
$time_now = date('Y-m-d H:i:s');//当前时间
$time_before = date("Y-m-d H:i:s",strtotime("-1 day"));//24小时前的时间
$conditions['create_time'] = array( 'not between', array( $time_before, $time_now ) );
}
} }
} }
//dump($app_request_source_type);exit; //dump($app_request_source_type);exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment