|
|
@@ -38,7 +38,7 @@ public class InsertServiceImpl implements InsertService {
|
|
|
// private static final String serverUrl = "http://gw.api.tbsandbox.com/router/rest";
|
|
|
public static final String appKey = "31921866"; // 可替换为您的沙箱环境应用的appKey /* 待修改 */
|
|
|
public static final String appSecret = "7121c52d4c9970ba08bf09e2f525acd0"; // 可替换为您的沙箱环境应用的appSecret /* 待修改 */
|
|
|
- public static final String sessionKey = "61024291979328cd09f0ba138f79236d66bd313f3364cf148715824"; // 必须替换为沙箱账号授权得到的真实有效sessionKey /* 待修改 */
|
|
|
+// public static final String sessionKey = "61024291979328cd09f0ba138f79236d66bd313f3364cf148715824"; // 必须替换为沙箱账号授权得到的真实有效sessionKey /* 待修改 */
|
|
|
public static Logger logger = Logger.getLogger(InsertServiceImpl.class);
|
|
|
|
|
|
@Autowired
|
|
|
@@ -87,9 +87,6 @@ public class InsertServiceImpl implements InsertService {
|
|
|
",receiver_address,shipping_type,o2o_guide_name,modified,end_time,post_fee,payment,total_fee,consign_time,sku_properties_name");
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
req.setStartCreated(StringUtils.parseDateTime("1990-01-01 00:00:00"));
|
|
|
|
|
|
Date date = new Date();
|
|
|
@@ -101,9 +98,10 @@ public class InsertServiceImpl implements InsertService {
|
|
|
Date endtime = calendar.getTime();
|
|
|
|
|
|
req.setEndCreated(endtime);
|
|
|
-// req.setEndCreated(StringUtils.parseDateTime("2020-12-01 00:00:00"));
|
|
|
+
|
|
|
try {
|
|
|
TradesSoldGetResponse rsp = client.execute(req, session_Key);
|
|
|
+// TradesSoldGetResponse rsp = client.execute(req,"6101610227ce2081f21253411b0073fcb18b38a3a1b314f48715824");
|
|
|
trades = rsp.getTrades();
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
@@ -202,7 +200,7 @@ public class InsertServiceImpl implements InsertService {
|
|
|
",sa_enddate,sa_statuscode,sa_status,sa_fare,sa_total" +
|
|
|
",sa_recamount,sa_plandelivery,sa_printstatuscode,sa_remark)" +
|
|
|
" SELECT 'GN0008358','P001', " + trades.get(i).getTid() + " , '现结','HLK淘宝','国内标准销售订单', ' " +trimNull( trades.get(i).getReceiverName() ) + " ' , ' " + trimNull(trades.get(i).getReceiverMobile()) + " ' , " + said + "," + trades.get(i).getTid() + "," + sa_code
|
|
|
- + " , to_date ( '" + createdtime + "' ,'YYYY-MM-DD hh24:mi:ss') , ' " + trimNull( trades.get(i).getBuyerNick() ) + " ',sysdate,'RMB','1','"
|
|
|
+ + " , to_date ( '" + createdtime + "' ,'YYYY-MM-DD hh24:mi:ss') , '管理员',sysdate,'RMB','1','"
|
|
|
+ trimNull(trades.get(i).getReceiverName() )+ "','" + trimNull( trades.get(i).getBuyerNick() )+ "','" + trimNull(trades.get(i).getReceiverState() ) + " || " + trimNull( trades.get(i).getReceiverAddress() )+ " ', ' "
|
|
|
+ trimNull( trades.get(i).getShippingType() ) + " ', ' " + trimNull (trades.get(i).getO2oGuideName() ) + " ', to_date ( '" + modified
|
|
|
+ "','YYYY-MM-DD hh24:mi:ss') , to_date ( '" +end_time + "','YYYY-MM-DD hh24:mi:ss') ,'ENTERING','在录入'," + trimNull( trades.get(i).getPostFee() )+ "," +trimNull( trades.get(i).getPayment() ) + ","
|