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