Explorar o código

修复机具表BindMerchantId未保存的bug

lichunlei %!s(int64=3) %!d(string=hai) anos
pai
achega
df2af82d4e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

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

@@ -80,6 +80,7 @@ namespace MySystem
                                 add.MerchantMobile = Mer.MerMobile;
                                 add.MerchantName = Mer.MerName;
                                 pos.BindMerchantId = add.Id;
+                                db.SaveChanges();
                                 Merchants edit = spdb.Merchants.FirstOrDefault(m => m.Id == Mer.Id);
                                 if (edit != null)
                                 {