|
@@ -232,7 +232,7 @@ public class FsStoreCartScrmServiceImpl implements IFsStoreCartScrmService
|
|
ErpGoodsStockQueryResponse goodsStock = goodsService.getGoodsStock(queryRequert);
|
|
ErpGoodsStockQueryResponse goodsStock = goodsService.getGoodsStock(queryRequert);
|
|
if(goodsStock != null && goodsStock.getStocks() != null && !goodsStock.getStocks().isEmpty()){
|
|
if(goodsStock != null && goodsStock.getStocks() != null && !goodsStock.getStocks().isEmpty()){
|
|
|
|
|
|
- int stocks = Integer.valueOf(goodsStock.getStocks().get(0).getSalable_qty());
|
|
|
|
|
|
+ int stocks = Double.valueOf(goodsStock.getStocks().get(0).getSalable_qty()).intValue();
|
|
|
|
|
|
if(stocks<=0){
|
|
if(stocks<=0){
|
|
productAttrValue.setStock(0);
|
|
productAttrValue.setStock(0);
|