解决类型7商店次数不刷新问题

master_haizei01
grimm 2024-07-19 14:48:13 +08:00
parent a1cd1810e6
commit 04bafcf3e3
1 changed files with 9 additions and 9 deletions

View File

@ -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) {