|
|
@@ -66,7 +66,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private TsaRendererService rendererService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private ObjectMapper mapper;
|
|
|
|
|
|
@@ -295,7 +295,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
// 외부몰주문등록
|
|
|
if ("createExtmallOrder".equals(extmallOrder.getProcJob())) {
|
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정
|
|
|
- String[] extMallOrderNames = {"ordDt", "extmallId", "extmallOrderId", "agentOrderId", "extmallProdId", "goodsCd", "sku", "optCd", "currPrice", "ordQty", "delvFee", "ordNm", "ordTelno", "ordPhnno", "ordEmail", "recipNm", "recipTelno", "recipPhnno", "recipZipcode", "recipBaseAddr", "recipDtlAddr", "delvMemo"};
|
|
|
+ String[] extMallOrderNames = {"ordDt", "extmallId", "extmallOrderId", "agentOrderId", "extmallProdId", "sku", "optCd", "currPrice", "ordQty", "delvFee", "ordNm", "ordTelno", "ordPhnno", "ordEmail", "recipNm", "recipTelno", "recipPhnno", "recipZipcode", "recipBaseAddr", "recipDtlAddr", "delvMemo"};
|
|
|
|
|
|
ecxelGoodsList = GagaExcelUtil.getList(GagaFileUtil.getConcatenationPath(targetPath, extmallOrder.getExcelFileNm()), 0, extMallOrderNames, 0);
|
|
|
}
|
|
|
@@ -384,13 +384,13 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
Extmall extmall = new Extmall();
|
|
|
extmall.setVendorId(TscConstants.VendorId.SHOPLINKER.value()); // 샵링커
|
|
|
mav.addObject("extmallList", ocmService.getExtmallList(extmall));
|
|
|
-
|
|
|
+
|
|
|
// 공급업체
|
|
|
mav.addObject("supplyCompList", rendererService.getSupplyCompanyList(TsaSession.getInfo().getSupplyCompCd()));
|
|
|
|
|
|
// 유통구분
|
|
|
mav.addObject("distributionGbList", rendererService.getCommonCodeList("G065"));
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("ocm/ExtmallUsacRegisterForm");
|
|
|
|
|
|
return mav;
|
|
|
@@ -419,7 +419,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (!StringUtils.isBlank(extmallUsac.getBrandList())) {
|
|
|
try {
|
|
|
String[] arrBrandCd = mapper.readValue(extmallUsac.getBrandList(), String[].class);
|
|
|
@@ -428,7 +428,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (!StringUtils.isBlank(extmallUsac.getCondition())) {
|
|
|
extmallUsac.setConditionList(extmallUsac.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
|
@@ -442,7 +442,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 제휴몰정산가격업로드- 엑셀다운로드
|
|
|
*
|
|
|
@@ -465,7 +465,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (!StringUtils.isBlank(extmallUsac.getBrandList())) {
|
|
|
try {
|
|
|
String[] arrBrandCd = mapper.readValue(extmallUsac.getBrandList(), String[].class);
|
|
|
@@ -474,7 +474,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (!StringUtils.isBlank(extmallUsac.getCondition())) {
|
|
|
extmallUsac.setConditionList(extmallUsac.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
|
@@ -483,7 +483,7 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
|
|
|
return GagaFileUtil.writeFile(request, excelFilenameWithPath);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 제휴몰주문업로드 엑셀 업로드
|
|
|
*
|
|
|
@@ -521,5 +521,5 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
|
|
|
return super.ok(message.getMessage("SUCC_0007"));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|