|
@@ -96,8 +96,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
Result result = new() { Code = -2 };
|
|
|
|
|
|
-
|
|
|
-
|
|
|
string teamRateInfoSql = string.Format(@"Select * From Grp_TeamRate tr Where tr.IsDel = 0");
|
|
|
|
|
|
var teamRateInfo = await _sqlSugar.SqlQueryable<Grp_TeamRate>(teamRateInfoSql).ToListAsync();
|
|
@@ -118,8 +116,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
foreach (Grp_TeamRate item1 in teamRateInfo)
|
|
|
{
|
|
|
-
|
|
|
string rateStr = string.Empty;
|
|
|
+
|
|
|
if (item1.RateU != 0) rateStr += "美元(USD):" + item1.RateU + "|";
|
|
|
if (item1.RateE != 0) rateStr += "欧元(EUR):" + item1.RateE + "|";
|
|
|
|
|
@@ -165,29 +163,29 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
rateStr += "卢布(RUB):" + item1.RateRUB + "|";
|
|
|
|
|
|
|
|
|
- SetDataInfoView setData = otherCurrencyData1.Where(x => x.Id == item1.OtherRateId).FirstOrDefault();
|
|
|
- if (setData != null)
|
|
|
+
|
|
|
+ if (!string.IsNullOrEmpty(item1.OtherRateCode))
|
|
|
{
|
|
|
- if (item1.OtherPrice != 0)
|
|
|
- rateStr += string.Format("{0}({1}):{2}", setData.Remark, setData.Name, item1.OtherPrice);
|
|
|
+
|
|
|
+
|
|
|
+ rateStr += $"{otherCurrencyData1.Find(it => it.Name.Equals(item1.OtherRateCode))?.Remark ?? "Unknown"}({item1.OtherRateCode}):{item1.OtherPrice}|";
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
- else
|
|
|
+
|
|
|
+ if (!rateStr.Contains("CNY"))
|
|
|
{
|
|
|
- if (rateStr.Length > 0)
|
|
|
- {
|
|
|
- rateStr = rateStr.Substring(0, rateStr.Length - 1);
|
|
|
- }
|
|
|
+ rateStr += "人名币(CNY):1.0000|";
|
|
|
+ }
|
|
|
|
|
|
+ if (rateStr.Length > 0)
|
|
|
+ {
|
|
|
+ rateStr = rateStr.Substring(0, rateStr.Length - 1);
|
|
|
}
|
|
|
|
|
|
item1.Remark = rateStr;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
#endregion
|
|
|
|
|
|
try
|