更新
This commit is contained in:
parent
68d4eae71c
commit
3404f9eb7a
@ -39,7 +39,7 @@ class AccountLogLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
public function setSearch(): array
|
public function setSearch(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'=' => ['al.change_type'],
|
'=' => ['change_type','company_id'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,18 +57,13 @@ class AccountLogLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
$where[] = ['change_type', 'in', AccountLogEnum::getUserMoneyChangeType()];
|
$where[] = ['change_type', 'in', AccountLogEnum::getUserMoneyChangeType()];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->params['user_info'])) {
|
|
||||||
$where[] = ['u.sn|u.nickname|u.mobile', 'like', '%' . $this->params['user_info'] . '%'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($this->params['start_time'])) {
|
if (!empty($this->params['start_time'])) {
|
||||||
$where[] = ['al.create_time', '>=', strtotime($this->params['start_time'])];
|
$where[] = ['create_time', '>=', strtotime($this->params['start_time'])];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->params['end_time'])) {
|
if (!empty($this->params['end_time'])) {
|
||||||
$where[] = ['al.create_time', '<=', strtotime($this->params['end_time'])];
|
$where[] = ['create_time', '<=', strtotime($this->params['end_time'])];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $where;
|
return $where;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,9 +103,7 @@ class AccountLogLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return UserAccountLog::alias('al')
|
return UserAccountLog::where($this->queryWhere())
|
||||||
->join('user u', 'u.id = al.user_id')
|
|
||||||
->where($this->queryWhere())
|
|
||||||
->where($this->searchWhere)
|
->where($this->searchWhere)
|
||||||
->count();
|
->count();
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ class IndexLogic extends BaseLogic
|
|||||||
$group_find=UserRole::where('id',$group_id)->find();
|
$group_find=UserRole::where('id',$group_id)->find();
|
||||||
$menu=[];
|
$menu=[];
|
||||||
if($group_find){
|
if($group_find){
|
||||||
$select=UserMenu::where('id','in',$group_find['menu_arr'])->field('id,pid,name,icon,sort,paths')->limit(100)->select()->toArray();
|
$select=UserMenu::where('id','in',$group_find['menu_arr'])->field('id,pid,name,icon,sort,paths')->order('sort','desc')->limit(100)->select()->toArray();
|
||||||
$arr=[];
|
$arr=[];
|
||||||
foreach($select as $k=>$v){
|
foreach($select as $k=>$v){
|
||||||
if($v['pid']==0){
|
if($v['pid']==0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user