Browse Source

后台换绑备份解绑的商户信息

lcl 2 years ago
parent
commit
d434b3ee85
1 changed files with 3 additions and 0 deletions
  1. 3 0
      AppStart/Helper/SycnSpServer/SycnSpBindService.cs

+ 3 - 0
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -100,6 +100,9 @@ namespace MySystem
                                 PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
                                 if(merchant != null)
                                 {
+                                    //备份解绑的商户信息
+                                    CustomerSqlConn.op("insert into PosMerchantInfoBak select * from PosMerchantInfo where Id=" + pos.BindMerchantId, MysqlConn.SqlConnStr);
+                                    db.SaveChanges();
                                     pos.BindMerchantId = 0;
                                     pos.BindingState = 0;
                                     pos.BindingTime = null;