Authored by hugufei

fix CollectionUtils name

... ... @@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import javax.annotation.PostConstruct;
... ... @@ -232,11 +233,11 @@ public class AggProductListService implements ApplicationEventPublisherAware {
private JSONObject queryProductList(BrandProductResponse response, int totalViewNum) {
List<Map<String, Object>> productList = new ArrayList<>();
if (response != null && !org.springframework.util.CollectionUtils.isEmpty(response.getProductList())) {
if (response != null && !CollectionUtils.isEmpty(response.getProductList())) {
//3、获取召回结果的skn
List<Integer> productSknList = response.getProductList().stream().map(BrandProduct::getProductSkn).collect(Collectors.toList());
//4、获取商品的返回信息
if (!org.springframework.util.CollectionUtils.isEmpty(productSknList)) {
if (!CollectionUtils.isEmpty(productSknList)) {
long begin = System.currentTimeMillis();
productList = sknReturnInfoCacheBean.queryProductListBySkn(productSknList, productSknList.size());
logger.info("AggBrandProductListService.queryProductListBySkn,cost is [{}]", System.currentTimeMillis() - begin);
... ...