|
@@ -892,19 +892,11 @@ public class TscShoplinkerService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 생성 파일삭제
|
|
// 생성 파일삭제
|
|
|
- // GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
+ GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("error", e);
|
|
log.error("error", e);
|
|
|
- // 임시
|
|
|
|
|
- StringBuilder xmlFileName = new StringBuilder();
|
|
|
|
|
- xmlFileName.append(fileNm+"_"+fileAddNm).append(".xml");
|
|
|
|
|
- String xmlPath = GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString());
|
|
|
|
|
- String xmlUrl = GagaFileUtil.getConcatenationPath(map.getDomainUrl(), xmlFileName.toString());
|
|
|
|
|
- String slFolder = GagaFileUtil.getConcatenationPath(env.getProperty("shoplinker.xml.path"));
|
|
|
|
|
- File slPath = new File(slFolder);
|
|
|
|
|
- map.setXmlTxt(slPath.exists()+"\n"+xmlPath+"\n"+xmlUrl+"\n\n"+sbRequest.toString());
|
|
|
|
|
- //map.setXmlTxt(sbRequest.toString());
|
|
|
|
|
|
|
+ map.setXmlTxt(sbRequest.toString());
|
|
|
map.setApiResult("error");
|
|
map.setApiResult("error");
|
|
|
map.setApiMessage("API 통신오류");
|
|
map.setApiMessage("API 통신오류");
|
|
|
}
|
|
}
|
|
@@ -1004,7 +996,7 @@ public class TscShoplinkerService {
|
|
|
currentlyPage = map.getInt("currentlyPage");
|
|
currentlyPage = map.getInt("currentlyPage");
|
|
|
currListCount = map.getInt("currListCount");
|
|
currListCount = map.getInt("currListCount");
|
|
|
|
|
|
|
|
- slkSearch.setTxt(shoplinkerOrder.getApiStDate()+ " 총페이지: "+totalPage+ "("+totalCount+"건) || "+currentlyPage);
|
|
|
|
|
|
|
+ slkSearch.setTxt("["+shoplinkerOrder.getInfoStr()+"]"+ " 총페이지: "+totalPage+ "("+totalCount+"건) || "+currentlyPage);
|
|
|
updateCallApiRunable(slkSearch);
|
|
updateCallApiRunable(slkSearch);
|
|
|
|
|
|
|
|
if( currentlyPage < 1 ) currentlyPage = 1;
|
|
if( currentlyPage < 1 ) currentlyPage = 1;
|
|
@@ -1068,9 +1060,14 @@ public class TscShoplinkerService {
|
|
|
*/
|
|
*/
|
|
|
sbRequest.append(" <customer_id>").append("a0021915").append("</customer_id>\n");
|
|
sbRequest.append(" <customer_id>").append("a0021915").append("</customer_id>\n");
|
|
|
sbRequest.append(" <shoplinker_id><![CDATA[").append("yes2424").append("]]></shoplinker_id>\n");
|
|
sbRequest.append(" <shoplinker_id><![CDATA[").append("yes2424").append("]]></shoplinker_id>\n");
|
|
|
- sbRequest.append(" <order_flag>004</order_flag>\n");// 테스트용
|
|
|
|
|
- sbRequest.append(" <st_date>").append(shoplinkerOrder.getApiStDate().replace("-", "")).append("</st_date>\n");
|
|
|
|
|
- sbRequest.append(" <ed_date>").append(shoplinkerOrder.getApiStDate().replace("-", "")).append("</ed_date>\n");
|
|
|
|
|
|
|
+ sbRequest.append(" <order_flag>004</order_flag>\n"); // 테스트용
|
|
|
|
|
+ sbRequest.append(" <st_date>").append(shoplinkerOrder.getStDate().replace("-", "")).append("</st_date>\n");
|
|
|
|
|
+ sbRequest.append(" <ed_date>").append(shoplinkerOrder.getEdDate().replace("-", "")).append("</ed_date>\n");
|
|
|
|
|
+ if( "BATCH".equals(shoplinkerOrder.getAcType())){
|
|
|
|
|
+ sbRequest.append(" <sdt_time>").append(shoplinkerOrder.getStTime()).append("</sdt_time>\n");
|
|
|
|
|
+ sbRequest.append(" <edt_time>").append(shoplinkerOrder.getEdTime()).append("</edt_time>\n");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
sbRequest.append(" <page_no>").append(shoplinkerOrder.getOrderPageNo()).append("</page_no>\n");
|
|
sbRequest.append(" <page_no>").append(shoplinkerOrder.getOrderPageNo()).append("</page_no>\n");
|
|
|
|
|
|
|
|
sbRequest.append(" </Order>\n");
|
|
sbRequest.append(" </Order>\n");
|
|
@@ -1171,8 +1168,8 @@ public class TscShoplinkerService {
|
|
|
|
|
|
|
|
}else {
|
|
}else {
|
|
|
// 테스트용
|
|
// 테스트용
|
|
|
- xmlUrl = "http://ts5000.ipdisk.co.kr:8999/shoplinker/order/0409/order_real_"+shoplinkerOrder.getOrderPageNo()+".xml";
|
|
|
|
|
- xmlUrl = "http://ts5000.ipdisk.co.kr:8999/shoplinker/order/order_time.xml";
|
|
|
|
|
|
|
+ xmlUrl = "http://ts5000.ipdisk.co.kr:8999/shoplinker/order/0528/order_real_"+shoplinkerOrder.getOrderPageNo()+".xml";
|
|
|
|
|
+ //xmlUrl = "http://ts5000.ipdisk.co.kr:8999/shoplinker/order/order_time.xml";
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
// API 호출
|
|
// API 호출
|
|
@@ -1259,7 +1256,7 @@ public class TscShoplinkerService {
|
|
|
returnMap.setString("RESULT_TYPE", "TRUE");
|
|
returnMap.setString("RESULT_TYPE", "TRUE");
|
|
|
|
|
|
|
|
// 생성 파일삭제
|
|
// 생성 파일삭제
|
|
|
- GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(shoplinkerOrder.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
+ // GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(shoplinkerOrder.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
|
}catch(Exception e) {
|
|
}catch(Exception e) {
|
|
|
log.error("xml 생성오류 ", e);
|
|
log.error("xml 생성오류 ", e);
|
|
@@ -1479,7 +1476,12 @@ public class TscShoplinkerService {
|
|
|
resultMsg = (com.gagaframework.shoplinker.domain.invoice.ResultMessage)shoplinkerUtil.unmarshal(com.gagaframework.shoplinker.domain.invoice.ResultMessage.class, responseXmlData);
|
|
resultMsg = (com.gagaframework.shoplinker.domain.invoice.ResultMessage)shoplinkerUtil.unmarshal(com.gagaframework.shoplinker.domain.invoice.ResultMessage.class, responseXmlData);
|
|
|
|
|
|
|
|
apiHstMap.setApiType("INVOICE");
|
|
apiHstMap.setApiType("INVOICE");
|
|
|
- apiHstMap.setXmlTxt(sbRequest.toString());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ String slFolder = GagaFileUtil.getConcatenationPath(env.getProperty("shoplinker.xml.path")+"/invoice");
|
|
|
|
|
+ File slPath = new File(slFolder);
|
|
|
|
|
+ apiHstMap.setXmlTxt(slPath.exists()+"\n"+xmlPath+"\n"+xmlUrl+"\n\n"+sbRequest.toString());
|
|
|
|
|
+
|
|
|
|
|
+ //apiHstMap.setXmlTxt(sbRequest.toString());
|
|
|
apiHstMap.setOrdDtlNo(info.getOrdDtlNo());
|
|
apiHstMap.setOrdDtlNo(info.getOrdDtlNo());
|
|
|
apiHstMap.setApiResult(resultMsg.getResult());
|
|
apiHstMap.setApiResult(resultMsg.getResult());
|
|
|
apiHstMap.setApiMessage(resultMsg.getMessage());
|
|
apiHstMap.setApiMessage(resultMsg.getMessage());
|
|
@@ -1490,7 +1492,16 @@ public class TscShoplinkerService {
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("error", e);
|
|
log.error("error", e);
|
|
|
apiHstMap.setApiType("INVOICE");
|
|
apiHstMap.setApiType("INVOICE");
|
|
|
- apiHstMap.setXmlTxt(sbRequest.toString());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ StringBuilder xmlFileName = new StringBuilder();
|
|
|
|
|
+ xmlFileName.append("invoice_"+info.getOrdDtlNo()+"_"+fileAddNm).append(".xml");
|
|
|
|
|
+ String xmlPath = GagaFileUtil.getConcatenationPath(shoplinkerInvoice.getXmlPath(), xmlFileName.toString());
|
|
|
|
|
+ String xmlUrl = GagaFileUtil.getConcatenationPath(shoplinkerInvoice.getDomainUrl(), xmlFileName.toString());
|
|
|
|
|
+ String slFolder = GagaFileUtil.getConcatenationPath(env.getProperty("shoplinker.xml.path")+"/invoice");
|
|
|
|
|
+ File slPath = new File(slFolder);
|
|
|
|
|
+ apiHstMap.setXmlTxt(slPath.exists()+"\n"+xmlPath+"\n"+xmlUrl+"\n\n"+sbRequest.toString());
|
|
|
|
|
+
|
|
|
|
|
+ // apiHstMap.setXmlTxt(sbRequest.toString());
|
|
|
apiHstMap.setOrdDtlNo(info.getOrdDtlNo());
|
|
apiHstMap.setOrdDtlNo(info.getOrdDtlNo());
|
|
|
apiHstMap.setApiResult("error");
|
|
apiHstMap.setApiResult("error");
|
|
|
apiHstMap.setApiMessage("API 통신오류");
|
|
apiHstMap.setApiMessage("API 통신오류");
|
|
@@ -1651,8 +1662,8 @@ public class TscShoplinkerService {
|
|
|
* @author jmh
|
|
* @author jmh
|
|
|
* @since 2020. 5. 21
|
|
* @since 2020. 5. 21
|
|
|
*/
|
|
*/
|
|
|
- public Collection<ShoplinkerGoods> getStockListList(ShoplinkerSearch shoplinkerSearch) {
|
|
|
|
|
- return shoplinkerDao.getStockListList(shoplinkerSearch);
|
|
|
|
|
|
|
+ public Collection<ShoplinkerGoods> getStockList(ShoplinkerSearch shoplinkerSearch) {
|
|
|
|
|
+ return shoplinkerDao.getStockList(shoplinkerSearch);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|