Commit 9497a2b4 authored by clone's avatar clone

时间转

parent 2e813f93
...@@ -95,7 +95,9 @@ class Shop extends Basic ...@@ -95,7 +95,9 @@ class Shop extends Basic
} }
if (isset($params['start_time']) && isset($params['end_time'])) { if (isset($params['start_time']) && isset($params['end_time'])) {
$conditions['create_time'] = array( 'between', array( $params['start_time'], $params['end_time'] ) ); $start_time = date('Y-m-d H:i:s',$params['start_time']);
$end_time = date('Y-m-d H:i:s',$params['end_time']);
$conditions['create_time'] = array( 'between', array( $start_time, $end_time ) );
} }
$order_ = ""; $order_ = "";
......
...@@ -106,7 +106,9 @@ class User extends Basic ...@@ -106,7 +106,9 @@ class User extends Basic
} }
if (isset($params['start_time']) && isset($params['end_time'])) { if (isset($params['start_time']) && isset($params['end_time'])) {
$conditions['create_time'] = array( 'between', array( $params['start_time'], $params['end_time'] ) ); $start_time = date('Y-m-d H:i:s',$params['start_time']);
$end_time = date('Y-m-d H:i:s',$params['end_time']);
$conditions['create_time'] = array( 'between', array( $start_time, $end_time ) );
} }
$userList = $this->userModel->selectUserList($field, $conditions,$pageNo, $pageSize, "id desc"); $userList = $this->userModel->selectUserList($field, $conditions,$pageNo, $pageSize, "id desc");
......
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