Commit 90cb24a6 authored by Quxl's avatar Quxl

x

parent 1d2d9100
......@@ -46,8 +46,6 @@ public class PdsProductsUpdateTask {
Map<String, String> headers = new HashMap<String, String>();
headers.put(authKey, authValue);
String responseBody = HttpUtil.get(urlQuery, headers);
System.out.println("headers" + JSON.toJSONString(headers));
System.out.println(responseBody);
JSONObject jsonObject = JSON.parseObject(responseBody);
JSONArray jsonArray = jsonObject.getJSONArray("data");
if(jsonArray != null) {
......
......@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSON;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.pds.config.HttpUtil;
......@@ -28,6 +29,7 @@ public class PdsService {
@Transactional
public void savePdsProduct(Object transactionId, Map<String, Object> productMap) {
System.out.println("PDS Save >>" + transactionId + " " + JSON.toJSONString(productMap));
jdbcTemplate.save("pds_article", productMap);
Map<String, String> headers = new HashMap<String, String>();
headers.put(authKey, authValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment