@@ -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;