Browse Source

修复机具表BindMerchantId未保存的bug

lichunlei 3 năm trước cách đây
mục cha
commit
df2af82d4e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
                                 {