浏览代码

商户-绑定收款码调整

lcl 1 年之前
父节点
当前提交
b34cbcc699
共有 1 个文件被更改,包括 20 次插入20 次删除
  1. 20 20
      Areas/Api/Controllers/v1/MainServer/MerchantQrCodeController.cs

+ 20 - 20
Areas/Api/Controllers/v1/MainServer/MerchantQrCodeController.cs

@@ -126,26 +126,26 @@ namespace MySystem.Areas.Api.Controllers.v1
             //     SnNo = SnNo,
             // }).Entity;
             // maindb.SaveChanges();
-            string DataId = query.Id + "_0";
-            MachineForQrCode forQrCode = maindb.MachineForQrCode.FirstOrDefault(m => m.DataId == DataId);
-            if (forQrCode == null)
-            {
-                forQrCode = maindb.MachineForQrCode.Add(new MachineForQrCode(){
-                    DataId = DataId,
-                    SnNo = SnNo,
-                    // MachineSnNo = MachineNo,
-                    BindDate = DateTime.Now,
-                    MerchantId = MerchantId,
-                }).Entity;
-            }
-            else
-            { 
-                forQrCode.SnNo = SnNo;
-                // forQrCode.MachineSnNo = MachineNo;
-                forQrCode.BindDate = DateTime.Now;
-                forQrCode.MerchantId = MerchantId;
-            }
-            maindb.SaveChanges();
+            // string DataId = query.Id + "_0";
+            // MachineForQrCode forQrCode = maindb.MachineForQrCode.FirstOrDefault(m => m.DataId == DataId);
+            // if (forQrCode == null)
+            // {
+            //     forQrCode = maindb.MachineForQrCode.Add(new MachineForQrCode(){
+            //         DataId = DataId,
+            //         SnNo = SnNo,
+            //         // MachineSnNo = MachineNo,
+            //         BindDate = DateTime.Now,
+            //         MerchantId = MerchantId,
+            //     }).Entity;
+            // }
+            // else
+            // { 
+            //     forQrCode.SnNo = SnNo;
+            //     // forQrCode.MachineSnNo = MachineNo;
+            //     forQrCode.BindDate = DateTime.Now;
+            //     forQrCode.MerchantId = MerchantId;
+            // }
+            // maindb.SaveChanges();
             fields = new Dictionary<string, object>();
             fields.Add("BuyUserId", merchant.UserId);
             fields.Add("UserId", merchant.UserId);