|
@@ -141,6 +141,8 @@ public class StockServiceImpl implements StockService{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void execPostProcedure(List<Map<String,Object>> datas,String responseText){
|
|
public void execPostProcedure(List<Map<String,Object>> datas,String responseText){
|
|
|
|
|
+ System.out.println("datas:" + datas);
|
|
|
|
|
+ System.out.println("datas size:" + datas.size());
|
|
|
for(Map<String,Object> data:datas){
|
|
for(Map<String,Object> data:datas){
|
|
|
String code = String.valueOf(data.get("outer_no"));
|
|
String code = String.valueOf(data.get("outer_no"));
|
|
|
String piClass = String.valueOf(data.get("src_order_type"));
|
|
String piClass = String.valueOf(data.get("src_order_type"));
|
|
@@ -148,8 +150,11 @@ public class StockServiceImpl implements StockService{
|
|
|
try {
|
|
try {
|
|
|
postHist = ediPostLogDao.findByCodeAndPiClass(code,piClass);
|
|
postHist = ediPostLogDao.findByCodeAndPiClass(code,piClass);
|
|
|
if(postHist!=null){ //说明之前已经过账成功
|
|
if(postHist!=null){ //说明之前已经过账成功
|
|
|
|
|
+ System.out.println("post confirm");
|
|
|
postConfirmToYunding(code,1);
|
|
postConfirmToYunding(code,1);
|
|
|
}else{ //没有记录,说明没有过账成功
|
|
}else{ //没有记录,说明没有过账成功
|
|
|
|
|
+ System.out.println("code:" + code);
|
|
|
|
|
+ System.out.println("piClass:" + piClass);
|
|
|
String out = baseDao.callProcedure("SP_YUNDING_STOCKPOST",new Object[]{code,piClass});
|
|
String out = baseDao.callProcedure("SP_YUNDING_STOCKPOST",new Object[]{code,piClass});
|
|
|
if (out!=null){
|
|
if (out!=null){
|
|
|
postFailLog(responseText,out);
|
|
postFailLog(responseText,out);
|
|
@@ -180,6 +185,7 @@ public class StockServiceImpl implements StockService{
|
|
|
String jsonData = JacksonUtil.toSortJson(postMapData);
|
|
String jsonData = JacksonUtil.toSortJson(postMapData);
|
|
|
try{
|
|
try{
|
|
|
HttpUtil.Response response = HttpUtil.doPostToYunding(sendStockPostConfirmToYundingUrl,jsonData,timestamp);
|
|
HttpUtil.Response response = HttpUtil.doPostToYunding(sendStockPostConfirmToYundingUrl,jsonData,timestamp);
|
|
|
|
|
+ System.out.println("confirm response:" + response.getResponseText());
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|