|
|
@@ -269,43 +269,47 @@ public class TscShoplinkerService {
|
|
|
|
|
|
for(Order ord : rOrdList) {
|
|
|
slOrder = mapper.convertValue(ord, ShoplinkerOrder.class);
|
|
|
- slOrder.setOrderIfIdx(commonService.getNextSequence("SEQ_SHHOPLINKER_ORD"));
|
|
|
- currListCount ++;
|
|
|
-
|
|
|
- //1. 샵링커 주문등록
|
|
|
- try {
|
|
|
- slOrderMap = mapper.convertValue(slOrder, GagaMap.class);
|
|
|
- insertOrderList.add(slOrderMap);
|
|
|
- index ++;
|
|
|
-
|
|
|
- // 5개씩 (5개씩 보내는게 가장 빠름)
|
|
|
- if (index % 5 == 0 || rOrdList.size() == index) {
|
|
|
- paramMap = new GagaMap();
|
|
|
- paramMap.put("insertOrderList", insertOrderList);
|
|
|
-
|
|
|
- shoplinkerDao.insertShoplinkerOrderList(paramMap);
|
|
|
- insertOrderList.clear();
|
|
|
+
|
|
|
+ if(!"APISHOP_0021".equals(slOrder.getMallId())) {
|
|
|
+
|
|
|
+ slOrder.setOrderIfIdx(commonService.getNextSequence("SEQ_SHHOPLINKER_ORD"));
|
|
|
+ currListCount ++;
|
|
|
+
|
|
|
+ //1. 샵링커 주문등록
|
|
|
+ try {
|
|
|
+ slOrderMap = mapper.convertValue(slOrder, GagaMap.class);
|
|
|
+ insertOrderList.add(slOrderMap);
|
|
|
+ index ++;
|
|
|
+
|
|
|
+ // 5개씩 (5개씩 보내는게 가장 빠름)
|
|
|
+ if (index % 5 == 0 || rOrdList.size() == index) {
|
|
|
+ paramMap = new GagaMap();
|
|
|
+ paramMap.put("insertOrderList", insertOrderList);
|
|
|
+
|
|
|
+ shoplinkerDao.insertShoplinkerOrderList(paramMap);
|
|
|
+ insertOrderList.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // 한개씩 작업 시
|
|
|
+ // shoplinkerDao.insertShoplinkerOrder(slOrder);
|
|
|
+ }catch(Exception e) {
|
|
|
+ ShoplinkerGoods map = new ShoplinkerGoods();
|
|
|
+ String chkParams = "";
|
|
|
+ chkParams += "SHOPLINKER_ORDER_ID="+ord.getShoplinkerOrderId() +",MALL_ORDER_ID="+ord.getMallOrderId()
|
|
|
+ + ",ORDER_NAME="+ord.getOrderName() + ",ORDER_TEL="+ord.getOrderTel() + ",ORDER_CEL="+ord.getOrderCel()
|
|
|
+ + ",RECEIVE="+ord.getReceive() + ",RECEIVE_TEL="+ord.getReceiveTel() + ",RECEIVE_CEL="+ord.getReceiveCel()
|
|
|
+ + ",RECEIVE_ADDR="+ord.getReceiveAddr() + ",DELIVERY_MSG="+ord.getDeliveryMsg() + ",PRODUCT_NAME="+ord.getProductName()
|
|
|
+ + ",SKU="+ord.getSku() + ",SUPPLY_ID="+ord.getSupplyId() + ",DELIVERY="+ord.getDelivery() + ",ORDER_USER_ID="+ord.getOrderUserId()
|
|
|
+ + ",SCRSPIK_USE="+ord.getCrspikUse() + ",DEAL_NO="+ord.getDealNo() + ",ORDER_MAIN_KEY="+ord.getOrderMainKey()
|
|
|
+ + ",PAN_TYPE="+ord.getPanType() + ",SCHANNEL_TYPE="+ord.getChannelType() + ",SHIP_NO="+ord.getShipNo();
|
|
|
+ map.setApiType("ORDER");
|
|
|
+ map.setXmlTxt(chkParams);
|
|
|
+ map.setApiResult(TscConstants.ShoplinkerApiStat.S_ERROR.value());
|
|
|
+ map.setApiMessage("샵링커 주문생성 오류");
|
|
|
+
|
|
|
+ // 오류이력 저장
|
|
|
+ shoplinkerDao.insertShoplinerApiHst(map);
|
|
|
}
|
|
|
-
|
|
|
- // 한개씩 작업 시
|
|
|
- // shoplinkerDao.insertShoplinkerOrder(slOrder);
|
|
|
- }catch(Exception e) {
|
|
|
- ShoplinkerGoods map = new ShoplinkerGoods();
|
|
|
- String chkParams = "";
|
|
|
- chkParams += "SHOPLINKER_ORDER_ID="+ord.getShoplinkerOrderId() +",MALL_ORDER_ID="+ord.getMallOrderId()
|
|
|
- + ",ORDER_NAME="+ord.getOrderName() + ",ORDER_TEL="+ord.getOrderTel() + ",ORDER_CEL="+ord.getOrderCel()
|
|
|
- + ",RECEIVE="+ord.getReceive() + ",RECEIVE_TEL="+ord.getReceiveTel() + ",RECEIVE_CEL="+ord.getReceiveCel()
|
|
|
- + ",RECEIVE_ADDR="+ord.getReceiveAddr() + ",DELIVERY_MSG="+ord.getDeliveryMsg() + ",PRODUCT_NAME="+ord.getProductName()
|
|
|
- + ",SKU="+ord.getSku() + ",SUPPLY_ID="+ord.getSupplyId() + ",DELIVERY="+ord.getDelivery() + ",ORDER_USER_ID="+ord.getOrderUserId()
|
|
|
- + ",SCRSPIK_USE="+ord.getCrspikUse() + ",DEAL_NO="+ord.getDealNo() + ",ORDER_MAIN_KEY="+ord.getOrderMainKey()
|
|
|
- + ",PAN_TYPE="+ord.getPanType() + ",SCHANNEL_TYPE="+ord.getChannelType() + ",SHIP_NO="+ord.getShipNo();
|
|
|
- map.setApiType("ORDER");
|
|
|
- map.setXmlTxt(chkParams);
|
|
|
- map.setApiResult(TscConstants.ShoplinkerApiStat.S_ERROR.value());
|
|
|
- map.setApiMessage("샵링커 주문생성 오류");
|
|
|
-
|
|
|
- // 오류이력 저장
|
|
|
- shoplinkerDao.insertShoplinerApiHst(map);
|
|
|
}
|
|
|
}
|
|
|
|