| 
					
				 | 
			
			
				@@ -56,7 +56,7 @@ namespace OASystem.Infrastructure.Repositories.Financial 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				                         From Fin_PaymentRefundAndOtherMoney prom 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				                         Left Join Sys_Users u On u.Id = prom.CreateUserId  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				                         Left Join Sys_SetData sd On prom.CurrencyId = sd.Id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					                     Left Join Grp_CreditCardPayment ccp On ccp.CTable = 285 And ccp.CId = prom.Id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					                     Left Join Grp_CreditCardPayment ccp On ccp.CTable = 98 And ccp.CId = prom.Id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				                         Where prom.IsDel = 0 And u.IsDel = 0 And sd.IsDel = 0 And  ccp.IsDel = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					                     And prom.DiId = {0}", diId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -194,7 +194,7 @@ namespace OASystem.Infrastructure.Repositories.Financial 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string sql = string.Format(@"Select prom.Id,ccp.Id CcpId,prom.DiId,prom.PriceName,prom.Price,prom.CurrencyId,ccp.Payee,ccp.PayDId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										 ccp.OrbitalPrivateTransfer,ccp.ConsumptionPatterns,prom.PayType,prom.Remark 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										 From Fin_PaymentRefundAndOtherMoney prom  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-										 Left Join Grp_CreditCardPayment ccp On ccp.CId = prom.id And ccp.CTable = 79 And ccp.IsDel = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										 Left Join Grp_CreditCardPayment ccp On ccp.CId = prom.id And ccp.CTable = 98 And ccp.IsDel = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										 Where prom.IsDel = 0 And prom.Id = {0}", dto.Id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 var data = await _sqlSugar.SqlQueryable<Fin_PaymentRefundAndOtherMoneyInfoView>(sql).ToListAsync(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -286,7 +286,7 @@ namespace OASystem.Infrastructure.Repositories.Financial 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //Id = dto.CcpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //CId = dto.CcpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     DIId = dto.DiId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    CTable = 285, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    CTable = 98, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     PayDId = dto.PayDId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ConsumptionPatterns = dto.ConsumptionPatterns, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ConsumptionDate = string.Empty, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -357,13 +357,12 @@ namespace OASystem.Infrastructure.Repositories.Financial 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 else if (dto.Status == 2) //修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    _PaymentRefundAndOtherMoney.Id = dto.Id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     _CreditCardPayment.Id = dto.CcpId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     _CreditCardPayment.CId = dto.Id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     _sqlSugar.BeginTran(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    var prom_update = await _sqlSugar.Updateable(_PaymentRefundAndOtherMoney) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    var prom_update = await _sqlSugar.Updateable(_CreditCardPayment) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      .IgnoreColumns(it => new { it.CreateUserId, it.CreateTime, it.DeleteUserId, it.DeleteTime, it.IsDel }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      .WhereColumns(it => new { it.Id }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      .ExecuteCommandAsync(); 
			 |