|
|
@@ -2,6 +2,8 @@ package com.style24.admin.biz.service;
|
|
|
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
|
@@ -423,8 +425,13 @@ public class TsaGoodsService {
|
|
|
Collection<GagaMap> dataList = goodsDao.getGoodsInfoExcelList(goodsSearch); // map형식으로 조회
|
|
|
if (dataList != null && !dataList.isEmpty()) {
|
|
|
for (GagaMap gagaMap : dataList) {
|
|
|
- if (!StringUtils.isBlank(gagaMap.get("SYS_IMG_NM").toString())) {
|
|
|
- gagaMap.set("SYS_IMG_NM", targetPath + '/' + gagaMap.get("SYS_IMG_NM").toString() + "?RS=60");
|
|
|
+ if (!StringUtils.isBlank(gagaMap.getString("SYS_IMG_NM"))) {
|
|
|
+ try {
|
|
|
+ gagaMap.setString("SYS_IMG_NM", GagaFileUtil.getConcatenationPath(targetPath, gagaMap.getString("SYS_IMG_NM").substring(0, gagaMap.getString("SYS_IMG_NM").lastIndexOf("/") + 1) + URLEncoder.encode(GagaFileUtil.getFilename(gagaMap.getString("SYS_IMG_NM")), "UTF-8").replaceAll("\\+", "%20")) + "?RS=60");
|
|
|
+ //gagaMap.setString("SYS_IMG_NM", GagaFileUtil.getConcatenationPath(targetPath, gagaMap.getString("SYS_IMG_NM")));
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ //throw new IllegalStateException(e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|