You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			44 lines
		
	
	
		
			941 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			941 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| 
 | |
| namespace wstmart\admin\controller;
 | |
| 
 | |
| use think\Db;
 | |
| use wstmart\admin\model\LogSysData as M;
 | |
| 
 | |
| class LogSysData extends Base
 | |
| {
 | |
|     public function index()
 | |
|     {
 | |
|         return $this->fetch("list");
 | |
|     }
 | |
| 
 | |
|     public function index2()
 | |
|     {
 | |
|         return $this->fetch("list2");
 | |
|     }
 | |
| 
 | |
|     public function index3()
 | |
|     {
 | |
|         return $this->fetch('list3');
 | |
|     }
 | |
|     /**
 | |
|      * 获取分页
 | |
|      */
 | |
|     public function pageQuery(){
 | |
|         $m = new M();
 | |
|         $rs = $m->pageQuery();
 | |
|         return WSTGrid($rs);
 | |
|     }
 | |
| 
 | |
|     public function uvData(){
 | |
|         $data = Db::name('user_vouchers_notice')->alias('a')
 | |
|             ->join('users b','b.userId=a.userId','left')
 | |
|             ->field('a.*,b.loginName')
 | |
|             ->paginate(input('post.limit/d'))->toArray();
 | |
|         foreach ($data['Rows'] as &$item) {
 | |
|             $item['createTime'] = date("Y-m-d H:i:s", $item['createTime']);
 | |
|         }
 | |
|         return WSTGrid($data);
 | |
|     }
 | |
| } |