...
|
...
|
@@ -610,53 +610,53 @@ public static void main(String[] args) { |
|
|
*
|
|
|
*/
|
|
|
ProductRequestBo bo1 = new ProductRequestBo();
|
|
|
bo1.setGoodsName(bo.getGoodsName());
|
|
|
if (null == brandMap.get(bo.getBrandName())) {
|
|
|
bo1.setGoodsName(bo.getGoodsName().trim());
|
|
|
if (null == brandMap.get(bo.getBrandName().trim())) {
|
|
|
return new ApiResponse<>(400, "品牌不匹配!");
|
|
|
}
|
|
|
bo1.setBrandId(colorsMap.get(bo.getColorName()));
|
|
|
if (null == colorsMap.get(bo.getColorName())) {
|
|
|
bo1.setBrandId(brandMap.get(bo.getBrandName().trim()));
|
|
|
if (null == colorsMap.get(bo.getColorName().trim())) {
|
|
|
return new ApiResponse<>(400, "颜色不匹配!");
|
|
|
}
|
|
|
bo1.setColorId(colorsMap.get(bo.getColorName()));
|
|
|
bo1.setColorId(colorsMap.get(bo.getColorName().trim()));
|
|
|
|
|
|
bo1.setColorName(bo.getColorName());
|
|
|
bo1.setColorName(bo.getColorName().trim());
|
|
|
bo1.setEditImage(1);
|
|
|
|
|
|
|
|
|
if (null == generMap.get(bo.getGenderName())) {
|
|
|
if (null == generMap.get(bo.getGenderName().trim())) {
|
|
|
return new ApiResponse<>(400, "性别不匹配!");
|
|
|
}
|
|
|
bo1.setGender(generMap.get(bo.getGenderName()));
|
|
|
bo1.setGender(generMap.get(bo.getGenderName().trim()));
|
|
|
|
|
|
bo1.setImageUrlList(bo.getImageUrlList());
|
|
|
|
|
|
bo1.setKeyWords(bo.getKeyWords());
|
|
|
bo1.setMaxPrice(bo.getMaxPrice());
|
|
|
bo1.setKeyWords(bo.getKeyWords().trim());
|
|
|
bo1.setMaxPrice(bo.getMaxPrice().trim());
|
|
|
|
|
|
if (null == sortMap.get(bo.getMaxSortName())) {
|
|
|
if (null == sortMap.get(bo.getMaxSortName().trim())) {
|
|
|
return new ApiResponse<>(400, "品类不匹配!");
|
|
|
}
|
|
|
|
|
|
bo1.setMaxSortId(sortMap.get(bo.getMaxSortName()));
|
|
|
if (null == sortMap.get(bo.getMidSortName())) {
|
|
|
bo1.setMaxSortId(sortMap.get(bo.getMaxSortName().trim()));
|
|
|
if (null == sortMap.get(bo.getMidSortName().trim())) {
|
|
|
return new ApiResponse<>(400, "品类不匹配!");
|
|
|
}
|
|
|
|
|
|
bo1.setMidSortId(sortMap.get(bo.getMidSortName()));
|
|
|
bo1.setMidSortId(sortMap.get(bo.getMidSortName().trim()));
|
|
|
|
|
|
bo1.setMinPrice(bo.getMinPrice());
|
|
|
bo1.setProductCode(bo.getProductCode());
|
|
|
bo1.setProductName(bo.getProductName());
|
|
|
bo1.setSaleTime(bo.getSaleTime());
|
|
|
bo1.setMinPrice(bo.getMinPrice().trim());
|
|
|
bo1.setProductCode(bo.getProductCode().trim());
|
|
|
bo1.setProductName(bo.getProductName().trim());
|
|
|
bo1.setSaleTime(bo.getSaleTime().trim());
|
|
|
|
|
|
|
|
|
Map<String, Integer> stringIntegerMap1 = brandSeriesMap.get(bo1.getBrandId());
|
|
|
if (null == stringIntegerMap1 || null == stringIntegerMap1.get(bo.getSeriesName())) {
|
|
|
if (null == stringIntegerMap1 || null == stringIntegerMap1.get(bo.getSeriesName().trim())) {
|
|
|
return new ApiResponse<>(400, "品牌系列不匹配!");
|
|
|
}
|
|
|
|
|
|
bo1.setSeriesId(stringIntegerMap1.get(bo.getSeriesName()));
|
|
|
bo1.setSeriesId(stringIntegerMap1.get(bo.getSeriesName().trim()));
|
|
|
|
|
|
|
|
|
List<Integer> sizeIdList = new ArrayList<>();
|
...
|
...
|
@@ -665,7 +665,7 @@ public static void main(String[] args) { |
|
|
return new ApiResponse<>(400, "尺码不匹配!");
|
|
|
}
|
|
|
for (String sizeName : bo.getSizeNameList()) {
|
|
|
Integer integer = stringIntegerMap.get(sizeName);
|
|
|
Integer integer = stringIntegerMap.get(sizeName.trim());
|
|
|
if (null == integer) {
|
|
|
return new ApiResponse<>(400, "尺码不匹配!");
|
|
|
}
|
...
|
...
|
|