Commit 90cb24a6 authored by Quxl's avatar Quxl

x

parent 1d2d9100
...@@ -46,8 +46,6 @@ public class PdsProductsUpdateTask { ...@@ -46,8 +46,6 @@ public class PdsProductsUpdateTask {
Map<String, String> headers = new HashMap<String, String>(); Map<String, String> headers = new HashMap<String, String>();
headers.put(authKey, authValue); headers.put(authKey, authValue);
String responseBody = HttpUtil.get(urlQuery, headers); String responseBody = HttpUtil.get(urlQuery, headers);
System.out.println("headers" + JSON.toJSONString(headers));
System.out.println(responseBody);
JSONObject jsonObject = JSON.parseObject(responseBody); JSONObject jsonObject = JSON.parseObject(responseBody);
JSONArray jsonArray = jsonObject.getJSONArray("data"); JSONArray jsonArray = jsonObject.getJSONArray("data");
if(jsonArray != null) { if(jsonArray != null) {
......
...@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSON;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.pds.config.HttpUtil; import com.egolm.pds.config.HttpUtil;
...@@ -28,6 +29,7 @@ public class PdsService { ...@@ -28,6 +29,7 @@ public class PdsService {
@Transactional @Transactional
public void savePdsProduct(Object transactionId, Map<String, Object> productMap) { public void savePdsProduct(Object transactionId, Map<String, Object> productMap) {
System.out.println("PDS Save >>" + transactionId + " " + JSON.toJSONString(productMap));
jdbcTemplate.save("pds_article", productMap); jdbcTemplate.save("pds_article", productMap);
Map<String, String> headers = new HashMap<String, String>(); Map<String, String> headers = new HashMap<String, String>();
headers.put(authKey, authValue); 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