| 
					
				 | 
			
			
				@@ -260,11 +260,14 @@ class Manage extends Auth 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $czongjine = $db->find($where, array('col' => 'sum(cash) as cash'));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $szongjine = $db->find($where, array('col' => 'sum(price) as cash'));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $kzongjine = $db->find($where, array('col' => 'sum(buy_price) as cash'));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $lirun = $szongjine['cash'] - $kzongjine['cash'];
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $where['status'] = array('<', 10);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $chu = $db->count($where);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $where['status'] = 11;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $shibaijine = $db->find($where, array('col' => 'sum(cash) as cash'));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $shibai = $db->count($where);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return array
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -313,11 +316,18 @@ class Manage extends Auth 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'name' => '成功金额',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'value' => $czongjine['cash'] ?? 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            /*
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             array
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             (
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'span' => '3',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'name' => '实际成功金额',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'value' => $szongjine['cash'] ?? 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'name' => '失败金额',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'value' => $shibaijine['cash'] ?? 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ),*/
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            array
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'span' => '3',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'name' => '利润',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'value' => $lirun ?? 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         );
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 |