修改商品 信息 快捷接口 Bug
This commit is contained in:
@@ -338,17 +338,15 @@ public class StockServiceImpl implements StockService {
|
|||||||
TbProduct product = new TbProduct();
|
TbProduct product = new TbProduct();
|
||||||
for (StockUpdateValueVO updateValueVO : updateValueVOs) {
|
for (StockUpdateValueVO updateValueVO : updateValueVOs) {
|
||||||
if (!updateValueVO.isSku()) {
|
if (!updateValueVO.isSku()) {
|
||||||
if (!updateValueVO.isSku()) {
|
if (product == null) {
|
||||||
if (product == null) {
|
product = tbProductRepository.getById(Integer.valueOf(updateValueVO.getId()));
|
||||||
product = tbProductRepository.getById(Integer.valueOf(updateValueVO.getId()));
|
|
||||||
}
|
|
||||||
productUp(updateValueVO, product);
|
|
||||||
} else {
|
|
||||||
if (product == null) {
|
|
||||||
product = tbProductRepository.selectBySkuId(Integer.valueOf(updateValueVO.getId()));
|
|
||||||
}
|
|
||||||
productSkuUp(updateValueVO, product);
|
|
||||||
}
|
}
|
||||||
|
productUp(updateValueVO, product);
|
||||||
|
} else {
|
||||||
|
if (product == null) {
|
||||||
|
product = tbProductRepository.selectBySkuId(Integer.valueOf(updateValueVO.getId()));
|
||||||
|
}
|
||||||
|
productSkuUp(updateValueVO, product);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user