|
@@ -1401,6 +1401,19 @@ public class TscShoplinkerService {
|
|
|
return shoplinkerDao.getExtmallOrderInfo(extmallOrder);
|
|
return shoplinkerDao.getExtmallOrderInfo(extmallOrder);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 송장전송-전송예정목록
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param shoplinkerGoods
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author jmh
|
|
|
|
|
+ * @since 2021. 5. 20
|
|
|
|
|
+ */
|
|
|
|
|
+ public Collection<ShoplinkerInvoice> getShoplinkerInvoiceOrdDtlList() {
|
|
|
|
|
+ return shoplinkerDao.getShoplinkerInvoiceOrdDtlList();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 송장전송-전송
|
|
* 송장전송-전송
|
|
|
*
|
|
*
|
|
@@ -1409,7 +1422,7 @@ public class TscShoplinkerService {
|
|
|
* @author jmh
|
|
* @author jmh
|
|
|
* @since 2021. 5. 20
|
|
* @since 2021. 5. 20
|
|
|
*/
|
|
*/
|
|
|
- public void createShoplinkerInvoiceXml(ShoplinkerInvoice shoplinkerInvoice) throws IOException {
|
|
|
|
|
|
|
+ public void createShoplinkerInvoiceXml(ShoplinkerInvoice shoplinkerInvoice, Collection<ShoplinkerInvoice> sendList) throws IOException {
|
|
|
// 파일명 뒤에 붙일 시간
|
|
// 파일명 뒤에 붙일 시간
|
|
|
fileAddNm = GagaDateUtil.getTodayDateTime();
|
|
fileAddNm = GagaDateUtil.getTodayDateTime();
|
|
|
|
|
|
|
@@ -1425,8 +1438,6 @@ public class TscShoplinkerService {
|
|
|
StringBuilder sbRequest;
|
|
StringBuilder sbRequest;
|
|
|
com.gagaframework.shoplinker.domain.invoice.ResultMessage resultMsg;
|
|
com.gagaframework.shoplinker.domain.invoice.ResultMessage resultMsg;
|
|
|
|
|
|
|
|
- Collection<ShoplinkerInvoice> sendList = shoplinkerDao.getShoplinkerInvoiceOrdDtlList(shoplinkerInvoice);
|
|
|
|
|
-
|
|
|
|
|
if( null != sendList && !sendList.isEmpty()) {
|
|
if( null != sendList && !sendList.isEmpty()) {
|
|
|
for(ShoplinkerInvoice info : sendList) {
|
|
for(ShoplinkerInvoice info : sendList) {
|
|
|
apiHstMap = new ShoplinkerGoods();
|
|
apiHstMap = new ShoplinkerGoods();
|
|
@@ -1474,7 +1485,7 @@ public class TscShoplinkerService {
|
|
|
apiHstMap.setApiMessage(resultMsg.getMessage());
|
|
apiHstMap.setApiMessage(resultMsg.getMessage());
|
|
|
|
|
|
|
|
// 생성 파일삭제
|
|
// 생성 파일삭제
|
|
|
- GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(shoplinkerInvoice.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
+ // GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(shoplinkerInvoice.getXmlPath(), xmlFileName.toString()));
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("error", e);
|
|
log.error("error", e);
|