Authored by Lixiaodi

bug修改

... ... @@ -94,7 +94,7 @@ public class ControllerCacheAop implements ApplicationContextAware{
try {
Object level1_obj = this.cacheClient.get(level1_cache_key, returnType);
if (level1_obj != null) {
logger.debug("Cache1 hit for method:{} at key:{}.", methodName, level1_cache_key);
logger.info("Cache1 hit for method:{} at key:{}.", methodName, level1_cache_key);
return level1_obj;
}
} catch (Exception e) {
... ...
... ... @@ -243,11 +243,16 @@ public class ProductServiceImpl implements ProductService{
StoragePrice sp = storagePriceMapper.selectBySkup(skup);
storageId = sp.getStorageId();
if (sp == null || (storageId = sp.getStorageId()) == null) {
LOGGER.error("addStorageNum skup={}, storageId={}, num={}, find storageId is null", skup, storageId,
num);
LOGGER.error("修改库存:StoragePrice表无数据或者StorageId为空, skup={}, storageId={}, num={}, find storageId is null",
skup, storageId, num);
return;
}
}
storageMapper.addStorageNum(storageId, num);
try {
storageMapper.addStorageNum(storageId, num);
} catch (Exception e) {
LOGGER.error("修改库存出错: skup=" + skup + ", storageId=" + storageId + ", num=" + num + ", find storageId is null", e);
}
}
private StoragePrice checkSkupCanSale(Integer skup) {
... ...