修改oa接口排序

master
ELF 5 years ago
parent 38e83a2f97
commit 9fdbdc539e

@ -74,7 +74,7 @@ class FengHuoApiController extends Controller{
$pageSize = intval($pageSize); $pageSize = intval($pageSize);
$row = $pageSize ? $pageSize : 1000; $row = $pageSize ? $pageSize : 1000;
// 默认排序id降序 // 默认排序id降序
$order = 'id desc'; $order = 'register_time asc';
$data = M('user','tab_') $data = M('user','tab_')
->field('id,account,promote_account,register_ip,register_time,device_type,device_number') ->field('id,account,promote_account,register_ip,register_time,device_type,device_number')
->where($where) ->where($where)
@ -131,7 +131,7 @@ class FengHuoApiController extends Controller{
$pageSize = intval($pageSize); $pageSize = intval($pageSize);
$row = $pageSize ? $pageSize : 1000; $row = $pageSize ? $pageSize : 1000;
// 默认排序id降序 // 默认排序id降序
$order = 'id desc'; $order = 'pay_time asc';
$where['pay_status'] = array('neq',0); $where['pay_status'] = array('neq',0);
$data = M('spend','tab_') $data = M('spend','tab_')
@ -181,7 +181,7 @@ class FengHuoApiController extends Controller{
$pageSize = intval($pageSize); $pageSize = intval($pageSize);
$row = $pageSize ? $pageSize : 1000; $row = $pageSize ? $pageSize : 1000;
// 默认排序id降序 // 默认排序id降序
$order = 'id desc'; $order = 'play_time asc';
$data = M('user_play_info','tab_') $data = M('user_play_info','tab_')
->field('promote_account,user_id,game_name,server_name,role_name,role_level,play_time,role_id,user_account') ->field('promote_account,user_id,game_name,server_name,role_name,role_level,play_time,role_id,user_account')
->where($where) ->where($where)
@ -230,7 +230,7 @@ class FengHuoApiController extends Controller{
$pageSize = intval($pageSize); $pageSize = intval($pageSize);
$row = $pageSize ? $pageSize : 1000; $row = $pageSize ? $pageSize : 1000;
// 默认排序id降序 // 默认排序id降序
$order = 'id desc'; $order = 'login_time asc';
$where['login_time'] = array('neq',0); $where['login_time'] = array('neq',0);
@ -295,7 +295,7 @@ class FengHuoApiController extends Controller{
$pageSize = intval($pageSize); $pageSize = intval($pageSize);
$row = $pageSize ? $pageSize : 1000; $row = $pageSize ? $pageSize : 1000;
// 默认排序id降序 // 默认排序id降序
$order = 'm.id desc'; $order = 'm.create_time asc';
$data = M('mend as m', 'tab_') $data = M('mend as m', 'tab_')
->join('tab_user as u on m.user_id = u.id','LEFT') ->join('tab_user as u on m.user_id = u.id','LEFT')
->field('m.user_id,m.create_time,m.promote_account,m.promote_account_to,m.bind_type,m.user_account,u.register_time') ->field('m.user_id,m.create_time,m.promote_account,m.promote_account_to,m.bind_type,m.user_account,u.register_time')

Loading…
Cancel
Save