|
|
@@ -50,6 +50,7 @@ public class TsbDaumSummaryEp extends TsbAbstractJob<Collection<GoodsEp>, Collec
|
|
|
|
|
|
@Override
|
|
|
public String write(Collection<GoodsEp> goodsEpList) throws Exception {
|
|
|
+ /*
|
|
|
if (goodsEpList != null && !goodsEpList.isEmpty()) {
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
sb.append("<<<tocnt>>>").append(goodsEpList.size());
|
|
|
@@ -66,6 +67,27 @@ public class TsbDaumSummaryEp extends TsbAbstractJob<Collection<GoodsEp>, Collec
|
|
|
bw.flush();
|
|
|
bw.close();
|
|
|
}
|
|
|
+ */
|
|
|
+
|
|
|
+ if (goodsEpList != null && !goodsEpList.isEmpty()) {
|
|
|
+ String uploadPath = GagaFileUtil.getConcatenationPath(env.getProperty("ep.file.path"), "iStyle24ProductFeed_DaumProductSmry_new.txt");
|
|
|
+ log.info("다음 요약EP 파일 경로: {}", uploadPath);
|
|
|
+ BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(uploadPath)), "UTF-8"));
|
|
|
+
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append("<<<tocnt>>>").append(goodsEpList.size());
|
|
|
+ bw.append(sb.toString());
|
|
|
+
|
|
|
+ for (GoodsEp goodsEp : goodsEpList) {
|
|
|
+ sb = new StringBuilder();
|
|
|
+ this.setEpInfo(sb, goodsEp);
|
|
|
+ bw.append(sb.toString());
|
|
|
+ }
|
|
|
+
|
|
|
+ bw.write(sb.toString());
|
|
|
+ bw.flush();
|
|
|
+ bw.close();
|
|
|
+ }
|
|
|
|
|
|
return "OK";
|
|
|
}
|