| 
					
				 | 
			
			
				@@ -5513,6 +5513,8 @@ Group by PriceType ", dto.diId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var jw = JsonView(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var stateArr = new int[] { 0, 1 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!DateTime.TryParse(dto.StartDate, out DateTime StartDateTime)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 jw.Msg = "开始时间格式有误!"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -5528,12 +5530,19 @@ Group by PriceType ", dto.diId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 jw.Msg = "开始时间大于结束时间!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return Ok(jw); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!stateArr.Contains(dto.Send) || !stateArr.Contains(dto.Confirm)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                jw.Msg = "状态标识有误!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return Ok(jw); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var expressionSelectWhere = Expressionable.Create<Fin_RoyaltyConfirm>() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .And(it => it.VisitDate >= StartDateTime) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .And(it => it.VisitDate <= EndDateTime) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .And(it => it.IsDel == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .And(it => it.UserId == dto.UserId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .And(it => it.IsConfirm == dto.Confirm) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .And(it => it.IsSeed == dto.Send) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .ToExpression(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -5552,7 +5561,15 @@ Group by PriceType ", dto.diId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     x.IsSeed 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                jw = JsonView(true, "获取成功!", query); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                jw = JsonView(true, "获取成功!", new 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    List = query, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    CostPrice = query.Sum(x=>x.Price), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ConfirmPrice = query.Where(x=>x.IsConfirm == 1).Sum(x=>x.Price), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    NoConfirmPrice = query.Where(x => x.IsConfirm == 0).Sum(x => x.Price), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    SeedPrice = query.Where(x => x.IsSeed == 1).Sum(x => x.Price), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    NoSeedPrice = query.Where(x => x.IsSeed == 0).Sum(x => x.Price), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             catch (Exception ex) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 |