Browse Source

团组汇率 GetGroupRateDataSource
/*
* 放在首位币种
* 人名币 CNY Rate = 1,美元 USD,欧元 EUR,港币 HKD,日元 JPY ,澳大利 AUD,英镑 GBP
* 依次排序
*/

leiy 11 months ago
parent
commit
91939e7566

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/TeamRateRepository.cs

@@ -60,12 +60,12 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
                 /*
                  * 放在首位币种
-                 * 人名币 CNY,美元 USD,欧元 EUR,港币 HKD,日元 JPY ,澳大利 AUD,英镑 GBP
+                 * 人名币 CNY Rate = 1,美元 USD,欧元 EUR,港币 HKD,日元 JPY ,澳大利 AUD,英镑 GBP
                  */
 
                 //人名币
                 var cnyData = teamRateDescViews.Find(it => it.CurrencyCode.Equals("CNY"));
-                if (cnyData != null) { teamRateDescViews.Remove(cnyData); teamRateDescViews.Insert(0, cnyData); }
+                if (cnyData != null) { teamRateDescViews.Remove(cnyData); cnyData.Rate = 1.0000M; teamRateDescViews.Insert(0, cnyData); }
 
                 //美元
                 var usdData = teamRateDescViews.Find(it => it.CurrencyCode.Equals("USD"));