|
|
@@ -6,6 +6,7 @@ import com.uas.platform.b2b.manage.service.ProductService;
|
|
|
import com.uas.platform.b2b.manage.support.CollectionUtil;
|
|
|
import com.uas.platform.core.util.serializer.FlexJsonUtils;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
+import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
@@ -32,7 +33,9 @@ public class ProductServiceImpl implements ProductService {
|
|
|
/**
|
|
|
* 公共物料访问接口
|
|
|
*/
|
|
|
- private static final String PRODUCT_URL = "https://api-product.usoftmall.com/";
|
|
|
+ private static final String PRODUCT_URL = "http://api-product.usoftchina.com/";
|
|
|
+
|
|
|
+ private static final Logger LOGGER = Logger.getLogger(ProductServiceImpl.class);
|
|
|
|
|
|
/**
|
|
|
* 通过企业UU号查询企业注册物料信息
|
|
|
@@ -54,7 +57,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
resultMap.put(info.getEnUU(), info);
|
|
|
}
|
|
|
} catch (RuntimeException e) {
|
|
|
-
|
|
|
+ LOGGER.error("获取数据失败", e);
|
|
|
}
|
|
|
}
|
|
|
return resultMap;
|