解决类型7商店次数不刷新问题
parent
a1cd1810e6
commit
04bafcf3e3
|
|
@ -30,14 +30,14 @@ public class StoreManager extends MongoBase {
|
|||
removeString(getMongoKey() + ".storeInfoMap." + key);
|
||||
}
|
||||
|
||||
public void removeStoreItemInfo(Integer key,Integer itemKey) {
|
||||
StoreInfo storeInfo= storeInfoMap.get(key);
|
||||
if (storeInfo == null){
|
||||
return;
|
||||
}
|
||||
storeInfo.getItemNumMap().remove(itemKey);
|
||||
updateString(getMongoKey() + ".storeInfoMap." + key, storeInfo);
|
||||
}
|
||||
// public void removeStoreItemInfo(Integer key,Integer itemKey) {
|
||||
// StoreInfo storeInfo= storeInfoMap.get(key);
|
||||
// if (storeInfo == null){
|
||||
// return;
|
||||
// }
|
||||
// storeInfo.getItemNumMap().remove(itemKey);
|
||||
// updateString(getMongoKey() + ".storeInfoMap." + key, storeInfo);
|
||||
// }
|
||||
|
||||
public void refreshStoreItem(Integer key,Integer itemKey) {
|
||||
StoreInfo storeInfo= storeInfoMap.get(key);
|
||||
|
|
@ -45,7 +45,7 @@ public class StoreManager extends MongoBase {
|
|||
return;
|
||||
}
|
||||
storeInfo.getItemNumMap().put(itemKey, 0);
|
||||
updateString(getMongoKey() + ".storeInfoMap." + key, storeInfo);
|
||||
updateString("storeInfoMap." + key, storeInfo);
|
||||
}
|
||||
|
||||
public void newStoreInfo(int id,long lastRefreshTime,long startTime,long endTime,Map<Integer,Integer> itemNumMap) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue