Commit d0b660cd by 张新旗

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	soss-system/src/main/java/com/soss/system/service/impl/MachineApiServiceImpl.java
parents 828745b3 a5892626
...@@ -20,6 +20,7 @@ import org.springframework.http.HttpHeaders; ...@@ -20,6 +20,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
import java.util.*; import java.util.*;
...@@ -71,9 +72,10 @@ public class MachineApiServiceImpl { ...@@ -71,9 +72,10 @@ public class MachineApiServiceImpl {
for (String skuId : skuIds) { for (String skuId : skuIds) {
shopGoodsSku.setSkuId(Long.parseLong(skuId)); shopGoodsSku.setSkuId(Long.parseLong(skuId));
List<ShopGoodsSku> shopGoodsSkus = shopGoodsSkuMapper.selectShopGoodsSkuList(shopGoodsSku); List<ShopGoodsSku> shopGoodsSkus = shopGoodsSkuMapper.selectShopGoodsSkuList(shopGoodsSku);
if(shopGoodsSkus.isEmpty()){ if(CollectionUtils.isEmpty(shopGoodsSkus)){
log.info("当前sku【{}】不存在",skuId); log.info(skuId+"不存在");
//throw new ServiceException(skuId+"不存在"); continue;
// throw new ServiceException(skuId+"不存在");
} }
for (ShopGoodsSku goodsSkus : shopGoodsSkus) { for (ShopGoodsSku goodsSkus : shopGoodsSkus) {
Long goodsId = goodsSkus.getGoodsId(); Long goodsId = goodsSkus.getGoodsId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment