Selaa lähdekoodia

取消交易测试数据

lichunlei 2 vuotta sitten
vanhempi
commit
37a68e1b46

+ 0 - 9
AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

@@ -48,15 +48,6 @@ namespace MySystem
                                     TopUserId = int.Parse(user.ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
                                 }
                                 int BrandId = pos.BrandId;
-                                // int BrandId = int.Parse(Mer.ProductType);
-                                // if (BrandId == 1 && Mer.MerNo.StartsWith("M900"))
-                                // {
-                                //     BrandId = 3;
-                                // }
-                                // if (BrandId == 4 && Mer.Field1 == "200")
-                                // {
-                                //     BrandId = 5;
-                                // }
 
                                 PxcModels.PosMerchantInfo add = db.PosMerchantInfo.FirstOrDefault(m => m.KqMerNo == Mer.MerNo);
                                 if (add == null)

+ 1 - 18
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -31,24 +31,7 @@ namespace MySystem
                     PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
                     DateTime start = DateTime.Now.AddDays(-10);
                     int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/TradeRecordId.txt")));
-                    // IQueryable<TradeRecord> trades = spdb.TradeRecord.Where(m => m.Id >= StartId && m.CreateDate >= start && m.Status == 1).OrderBy(m => m.CreateDate);
-                    List<TradeRecord> trades = new List<TradeRecord>();
-                    trades.Add(new TradeRecord()
-                    {
-                        ProductType = "10",
-                        Field2 = "620522****0017",
-                        Field1 = "199****5853",
-                        DigAmt = 0.00M,
-                        SerEntryMode = "0",
-                        BankCardType = "01",
-                        TradeType = "M015",
-                        TradeAmount = 1000M,
-                        TradeSnNo = "0000320226624650120068",
-                        TradeSerialNo = "23032117055533128544",
-                        MerName = "王**",
-                        MerNo = "110000004032435",
-                        CreateDate = DateTime.Parse("2023-03-21 17:05:55.0"),
-                    });
+                    IQueryable<TradeRecord> trades = spdb.TradeRecord.Where(m => m.Id >= StartId && m.CreateDate >= start && m.Status == 1).OrderBy(m => m.CreateDate);
                     foreach (TradeRecord trade in trades.ToList())
                     {
                         bool op = true;