DuGuYang 2 anni fa
parent
commit
f7ef4cbce1

+ 3 - 3
AppStart/Helper/ImportHelper/PreWithdrawalResultsService.cs

@@ -63,8 +63,8 @@ namespace MySystem
                                     for (int i = DoCount; i < DoCount + Size; i++)
                                     {
                                         DataRow dr = list.Rows[i];
-                                        string Id = dr["A"].ToString();
-                                        string IsOk = dr["L"].ToString();
+                                        string Id = dr[0].ToString();
+                                        string IsOk = dr[11].ToString();
                                         var id = int.Parse(Id);
                                         var Info = db.PreAmountRecord.FirstOrDefault(m => m.Id == id) ?? new PreAmountRecord();
                                         if (Info.Id > 0)
@@ -76,11 +76,11 @@ namespace MySystem
                                                 var userAccount = db.UserAccount.FirstOrDefault(m => m.Id == Info.UserId) ?? new UserAccount();
                                                 if (userAccount.Id > 0)
                                                 {
-                                                    SuccessCount += 1;
                                                     userAccount.PreTempAmount += Info.UseAmount;//退还卡充值临额
                                                     userAccount.ValidPreAmount += Info.UseAmount;//退还可用额度
                                                 }
                                             }
+                                            SuccessCount += 1;
                                         }
                                         else
                                         {

+ 3 - 3
AppStart/Helper/ImportHelper/StoreHouseWithdrawalResultsService.cs

@@ -63,8 +63,8 @@ namespace MySystem
                                     for (int i = DoCount; i < DoCount + Size; i++)
                                     {
                                         DataRow dr = list.Rows[i];
-                                        string Id = dr["A"].ToString();
-                                        string IsOk = dr["L"].ToString();
+                                        string Id = dr[0].ToString();
+                                        string IsOk = dr[11].ToString();
                                         var id = int.Parse(Id);
                                         var Info = db.StoreHouseAmountRecord.FirstOrDefault(m => m.Id == id) ?? new StoreHouseAmountRecord();
                                         if (Info.Id > 0)
@@ -76,11 +76,11 @@ namespace MySystem
                                                 var userAccount = db.UserAccount.FirstOrDefault(m => m.Id == Info.UserId) ?? new UserAccount();
                                                 if (userAccount.Id > 0)
                                                 {
-                                                    SuccessCount += 1;
                                                     userAccount.TempAmount += Info.UseAmount;//退还卡充值临额
                                                     userAccount.ValidAmount += Info.UseAmount;//退还可用额度
                                                 }
                                             }
+                                            SuccessCount += 1;
                                         }
                                         else
                                         {