leiy 11 months ago
parent
commit
3f25e51203
1 changed files with 3 additions and 2 deletions
  1. 3 2
      OASystem/OASystem.Api/Controllers/StatisticsController.cs

+ 3 - 2
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -625,8 +625,9 @@ namespace OASystem.API.Controllers
                         unitCost = (item.PayMoney / item.ClientNum).ConvertToDecimal1();
 
                         Regex r = new Regex("[0-9]");
-                        item.ClientName = r.Replace(item.ClientName,"");
-                        string[] clientNames = item.ClientName.Split('.');
+                        string name1 = item.ClientName;
+                        name1 = r.Replace(name1, "");
+                        string[] clientNames = name1.Split('.');
                         for (int i = 0; i < item.ClientNum; i++)
                         {
                             string name = "";