瀏覽代碼

修复机具表BindMerchantId未保存的bug

lichunlei 3 年之前
父節點
當前提交
df2af82d4e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
                                 {