@@ -52,14 +54,14 @@ class AlipayLifeMessageController extends CommonController
$number=MyC('admin_page_number');
$page_param=array(
'number'=>$number,
'total'=>$m->alias('a')->join('INNER JOIN __ALIPAY_LIFE_CATEGORY_JOIN__ AS cj ON a.id=cj.alipay_life_id')->where($where)->count('DISTINCT a.id'),
'total'=>$m->where($where)->count(),
'where'=>$param,
'url'=>U('Admin/AlipayLifeMessage/Index'),
);
$page=new\Library\Page($page_param);
// 获取列表
$list=$m->alias('a')->field('a.*')->join('INNER JOIN __ALIPAY_LIFE_CATEGORY_JOIN__ AS cj ON a.id=cj.alipay_life_id')->where($where)->limit($page->GetPageStarNumber(),$number)->order('a.id desc')->group('a.id')->select();
@@ -59,7 +59,7 @@ class AlipayLifeUserController extends CommonController
$page=new\Library\Page($page_param);
// 获取列表
$field='u.*, au.alipay_life_id, au.id AS alipay_life_user_id, au.user_id';
$field='u.*, au.alipay_life_id, au.id AS alipay_life_user_id, au.user_id, au.add_time AS alipay_life_add_time';
$list=$this->SetDataHandle($m->alias('au')->where($where)->join('INNER JOIN __USER__ AS u ON u.id=au.user_id')->field($field)->limit($page->GetPageStarNumber(),$number)->order('au.id desc')->select());
// 性别
...
...
@@ -105,6 +105,9 @@ class AlipayLifeUserController extends CommonController