推广
This commit is contained in:
@@ -20,7 +20,7 @@ class Account extends Controller
|
|||||||
$page = ($_GET['PageIndex'] - 1) * 50;
|
$page = ($_GET['PageIndex'] - 1) * 50;
|
||||||
}
|
}
|
||||||
$where = [];
|
$where = [];
|
||||||
$where_str = '';
|
$where_str = ' agent_id='.$agent_id.' ';
|
||||||
$where['UserCode'] = $agent_phone;
|
$where['UserCode'] = $agent_phone;
|
||||||
|
|
||||||
//处理筛选
|
//处理筛选
|
||||||
@@ -39,7 +39,7 @@ class Account extends Controller
|
|||||||
if (!empty($_GET['Btime'])){
|
if (!empty($_GET['Btime'])){
|
||||||
$date1 = date('Y-m-d', strtotime($_GET['Btime']));
|
$date1 = date('Y-m-d', strtotime($_GET['Btime']));
|
||||||
$date2 = date('Y-m-d', strtotime($_GET['Etime']));
|
$date2 = date('Y-m-d', strtotime($_GET['Etime']));
|
||||||
$where_str .= " EndTime>='" . $date1 . "' and EndTime<='" . $date2 . "' ";
|
$where_str .= " AND EndTime>='" . $date1 . "' and EndTime<='" . $date2 . "' ";
|
||||||
}
|
}
|
||||||
if (!empty($_GET['Bktime'])){
|
if (!empty($_GET['Bktime'])){
|
||||||
if (mb_strlen($where_str)>0){
|
if (mb_strlen($where_str)>0){
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class Order extends Controller
|
|||||||
$where = [];
|
$where = [];
|
||||||
$where_str = '';
|
$where_str = '';
|
||||||
$where['UserName'] = $agent_phone;
|
$where['UserName'] = $agent_phone;
|
||||||
|
$where_str = ' agent_id='.$agent_id.' ';
|
||||||
|
|
||||||
if(!empty($get_data['ProductIds'])){
|
if(!empty($get_data['ProductIds'])){
|
||||||
$where['ProductId'] = $get_data['ProductIds'];
|
$where['ProductId'] = $get_data['ProductIds'];
|
||||||
@@ -35,7 +36,7 @@ class Order extends Controller
|
|||||||
if (!empty($_GET['Btime'])){
|
if (!empty($_GET['Btime'])){
|
||||||
$date1 = date('Y-m-d', strtotime($_GET['Btime']));
|
$date1 = date('Y-m-d', strtotime($_GET['Btime']));
|
||||||
$date2 = date('Y-m-d', strtotime($_GET['Etime']));
|
$date2 = date('Y-m-d', strtotime($_GET['Etime']));
|
||||||
$where_str .= " UpdateTime>='" . $date1 . "' and UpdateTime<='" . $date2 . "' ";
|
$where_str .= " AND UpdateTime>='" . $date1 . "' and UpdateTime<='" . $date2 . "' ";
|
||||||
}
|
}
|
||||||
if (!empty($get_data['keyWord'])){
|
if (!empty($get_data['keyWord'])){
|
||||||
$where['UserName'] = ['like','%'.$get_data['keyWord'].'%'];
|
$where['UserName'] = ['like','%'.$get_data['keyWord'].'%'];
|
||||||
|
|||||||
Reference in New Issue
Block a user