|
@@ -455,6 +455,8 @@ namespace MySystem
|
|
|
store.LaveNum -= OpStoreNum;
|
|
store.LaveNum -= OpStoreNum;
|
|
|
store.OutNum += OpStoreNum;
|
|
store.OutNum += OpStoreNum;
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
|
|
+ string SendData = "{\"Kind\":\"5\",\"Data\":{\"StoreId\":\"" + StoreId + "\",\"BrandId\":\"" + BrandId + "\",\"OpStoreNum\":\"" + OpStoreNum + "\"}}";
|
|
|
|
|
+ RedisDbconn.Instance.AddList("StoreApplyQueue", SendData);
|
|
|
RedisDbconn.Instance.Clear("StoreHouse:" + StoreId);
|
|
RedisDbconn.Instance.Clear("StoreHouse:" + StoreId);
|
|
|
RedisDbconn.Instance.Clear("StoreHouseList:" + store.UserId);
|
|
RedisDbconn.Instance.Clear("StoreHouseList:" + store.UserId);
|
|
|
}
|
|
}
|
|
@@ -499,7 +501,6 @@ namespace MySystem
|
|
|
}
|
|
}
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
tran.Commit();
|
|
tran.Commit();
|
|
|
- RedisDbconn.Instance.Clear("StoreHouse");
|
|
|
|
|
RedisDbconn.Instance.Set("CheckImport:" + checkKey, "success|" + SuccessCount);
|
|
RedisDbconn.Instance.Set("CheckImport:" + checkKey, "success|" + SuccessCount);
|
|
|
RedisDbconn.Instance.SetExpire("CheckImport:" + checkKey, 60000);
|
|
RedisDbconn.Instance.SetExpire("CheckImport:" + checkKey, 60000);
|
|
|
}
|
|
}
|