Commit 841b134c authored by zhuwei's avatar zhuwei

bug

parent 3a40b507
...@@ -644,6 +644,14 @@ class User extends Basic ...@@ -644,6 +644,14 @@ class User extends Basic
// dump($model_res);exit(); // dump($model_res);exit();
$where = []; $where = [];
// $where['city'] = trim($this->city); // $where['city'] = trim($this->city);
if (!empty($this->params['end_date']) && !empty($this->params['start_date'])) {
if (strtotime($last_month) > strtotime($this->params['start_date'])) {
$start_date = $last_month;
} else {
$start_date = $this->params['start_date'];
}
$where['a.create_time'] = ['between',[$start_date.' 00:00:00',$this->params['end_date']. ' 23:59:59']];
}
$field = 'max(a.id) as max_id'; $field = 'max(a.id) as max_id';
$order = 'a.id asc'; $order = 'a.id asc';
$max_id = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = '', $order); $max_id = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = '', $order);
......
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