|  | @@ -1171,4 +1171,29 @@ class Manage
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    public function area_stat_view($id)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        $info = Dever::db('mail/area_stat')->find($id);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if ($info['data']) {
 | 
	
		
			
				|  |  | +            $info['data'] = Dever::json_decode($info['data']);
 | 
	
		
			
				|  |  | +            if ($info['data']) {
 | 
	
		
			
				|  |  | +                $table['head'] = array('门店名称', '门店编号', '收益(元)');
 | 
	
		
			
				|  |  | +                foreach ($info['data'] as $k => $v) {
 | 
	
		
			
				|  |  | +                    $shop = Dever::db('shop/info')->one($k);
 | 
	
		
			
				|  |  | +                    $table['body'][] = array($shop['name'], $shop['sid'], $v);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                $result[] = array
 | 
	
		
			
				|  |  | +                (
 | 
	
		
			
				|  |  | +                    'type' => 'table',
 | 
	
		
			
				|  |  | +                    'content' => $table,
 | 
	
		
			
				|  |  | +                );
 | 
	
		
			
				|  |  | +                return Dever::show('', $result);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return '';
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |