Authored by zhaojun2

bugfix

package com.yohoufo.common.utils;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public final class UfoStringUtils extends org.apache.commons.lang3.StringUtils{
/**
... ... @@ -145,5 +148,13 @@ public final class UfoStringUtils extends org.apache.commons.lang3.StringUtils{
return password.matches(reg);
}
public static List<Integer> string2IntegerList(String str) {
if (StringUtils.isNotBlank(str)) {
List<Integer> list = Arrays.stream(str.split(",")).map(e -> parseInt(e)).filter(Objects::nonNull).collect(Collectors.toList());
return list;
}
return Collections.emptyList();
}
}
... ...
... ... @@ -6,8 +6,6 @@ import com.alibaba.fastjson.annotation.JSONField;
public class ProductSeriesTemplate {
@JSONField(name = "product_id")
private String productId;
@JSONField(name = "image_url")
private String imageUrl;
@JSONField(name = "series_id")
... ... @@ -15,14 +13,6 @@ public class ProductSeriesTemplate {
@JSONField(name = "series_name")
private String seriesName;
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getImageUrl() {
return imageUrl;
}
... ...