Authored by mali

批量导入商品接口

... ... @@ -656,13 +656,14 @@ public static void main(String[] args) {
bo1.setSaleTime(bo.getSaleTime().trim());
Map<String, Integer> stringIntegerMap1 = brandSeriesMap.get(bo1.getBrandId());
if (null == stringIntegerMap1 || null == stringIntegerMap1.get(bo.getSeriesName().trim())) {
return new ApiResponse<>(400, "品牌系列不匹配!");
}
bo1.setSeriesId(stringIntegerMap1.get(bo.getSeriesName().trim()));
if (StringUtils.isNoneEmpty(bo.getSeriesName())) {
Map<String, Integer> stringIntegerMap1 = brandSeriesMap.get(bo1.getBrandId());
if (null == stringIntegerMap1 || null == stringIntegerMap1.get(bo.getSeriesName().trim())) {
return new ApiResponse<>(400, "品牌系列不匹配!");
}
bo1.setSeriesId(stringIntegerMap1.get(bo.getSeriesName().trim()));
}
List<Integer> sizeIdList = new ArrayList<>();
Map<String, Integer> stringIntegerMap = sizeMap.get(bo1.getMidSortId());
... ...