Forráskód Böngészése

费用审核
消息通知调整

leiy 1 éve%!(EXTRA string=óta)
szülő
commit
709402c27b

+ 10 - 0
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -1731,6 +1731,16 @@ namespace OASystem.API.Controllers
                     var creditCurrencyData = creditCurrencyDatas.Where(it => it.Id == creditData.PaymentCurrency).FirstOrDefault();
                     if (creditCurrencyData != null) creditCurrency = creditCurrencyData.Name;
 
+                    if (creditCurrency.Equals("CNY"))
+                    {
+                        creditData.DayRate = 1.0000M;
+                    }
+
+                    if (creditData.PayPercentage == 0.00M)
+                    {
+                        creditData.PayPercentage = 100M;
+                    }
+
 
                     decimal CNYPrice = (creditData.PayMoney * (creditData.PayPercentage / 100)) * creditData.DayRate;
                     string msgTitle = $"[{groupNameStr}({creditTypeStr})]的费用申请";

+ 1 - 1
OASystem/OASystem.Domain/Entities/Groups/Grp_CreditCardPayment.cs

@@ -158,7 +158,7 @@ namespace OASystem.Domain.Entities.Groups
         /// 此次付款百分比
         /// </summary>
         [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10, 2)")]
-        public decimal PayPercentage { get; set; }
+        public decimal PayPercentage { get; set; } = 100M;
         /// <summary>
         /// 此次付款金额
         /// </summary>