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;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.web.client.RestTemplate;
import java.util.*;
......@@ -71,9 +72,10 @@ public class MachineApiServiceImpl {
for (String skuId : skuIds) {
shopGoodsSku.setSkuId(Long.parseLong(skuId));
List<ShopGoodsSku> shopGoodsSkus = shopGoodsSkuMapper.selectShopGoodsSkuList(shopGoodsSku);
if(shopGoodsSkus.isEmpty()){
log.info("当前sku【{}】不存在",skuId);
//throw new ServiceException(skuId+"不存在");
if(CollectionUtils.isEmpty(shopGoodsSkus)){
log.info(skuId+"不存在");
continue;
// throw new ServiceException(skuId+"不存在");
}
for (ShopGoodsSku goodsSkus : shopGoodsSkus) {
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