|
@@ -2,6 +2,8 @@ package com.style24.admin.biz.service;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
@@ -423,8 +425,13 @@ public class TsaGoodsService {
|
|
|
Collection<GagaMap> dataList = goodsDao.getGoodsInfoExcelList(goodsSearch); // map형식으로 조회
|
|
Collection<GagaMap> dataList = goodsDao.getGoodsInfoExcelList(goodsSearch); // map형식으로 조회
|
|
|
if (dataList != null && !dataList.isEmpty()) {
|
|
if (dataList != null && !dataList.isEmpty()) {
|
|
|
for (GagaMap gagaMap : dataList) {
|
|
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);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -964,10 +971,17 @@ public class TsaGoodsService {
|
|
|
*/
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public void saveGoodsDetail(Goods goods) {
|
|
public void saveGoodsDetail(Goods goods) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// <,> replace 처리
|
|
// <,> replace 처리
|
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
goods.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
goods.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
+ goods.setGoodsContentsDesc(goods.getGoodsContentsDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsDesc(goods.getGoodsDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsCharacterDesc(goods.getGoodsCharacterDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsPcTopDesc(goods.getGoodsPcTopDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsMobileTopDesc(goods.getGoodsMobileTopDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsPcDownDesc(goods.getGoodsPcDownDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsMobileDownDesc(goods.getGoodsMobileDownDesc().replaceAll("(?i)script",""));
|
|
|
|
|
|
|
|
// goods.setGoodsDesc(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsDesc(), "<", "<"), ">", ">"));
|
|
// goods.setGoodsDesc(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsDesc(), "<", "<"), ">", ">"));
|
|
|
// goods.setGoodsPcTopDesc(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsPcTopDesc(), "<", "<"), ">", ">"));
|
|
// goods.setGoodsPcTopDesc(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsPcTopDesc(), "<", "<"), ">", ">"));
|
|
@@ -1967,6 +1981,7 @@ public class TsaGoodsService {
|
|
|
public void saveNotice(Notice notice) {
|
|
public void saveNotice(Notice notice) {
|
|
|
notice.setRegNo(TsaSession.getInfo().getUserNo());
|
|
notice.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
notice.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
notice.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
+ notice.setNoticeContent(notice.getNoticeContent().replaceAll("(?i)script", ""));
|
|
|
|
|
|
|
|
// 신규 일때
|
|
// 신규 일때
|
|
|
if (notice.getNoticeSq() == null) {
|
|
if (notice.getNoticeSq() == null) {
|
|
@@ -3940,6 +3955,7 @@ public class TsaGoodsService {
|
|
|
//log.info("[saveSizeInfo] sizeInfo {}", sizeInfo);
|
|
//log.info("[saveSizeInfo] sizeInfo {}", sizeInfo);
|
|
|
String sizeCate1Cd = "";
|
|
String sizeCate1Cd = "";
|
|
|
String sizeCate2Cd = "";
|
|
String sizeCate2Cd = "";
|
|
|
|
|
+ sizeInfo.setSizeInfo(sizeInfo.getSizeInfo().replaceAll("(?i)script", ""));
|
|
|
if ("1".equals(sizeInfo.getSizeGb())) {
|
|
if ("1".equals(sizeInfo.getSizeGb())) {
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(sizeInfo.getSizeCate1Cd())) {
|
|
if (StringUtils.isBlank(sizeInfo.getSizeCate1Cd())) {
|
|
@@ -4157,7 +4173,6 @@ public class TsaGoodsService {
|
|
|
*/
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public void createSalfGoodsDetail(Goods goods) {
|
|
public void createSalfGoodsDetail(Goods goods) {
|
|
|
-
|
|
|
|
|
// 중복여부 확인
|
|
// 중복여부 확인
|
|
|
Goods goodsDup = goodsDao.getGoods(goods);
|
|
Goods goodsDup = goodsDao.getGoods(goods);
|
|
|
if (goodsDup != null) {
|
|
if (goodsDup != null) {
|
|
@@ -4198,6 +4213,14 @@ public class TsaGoodsService {
|
|
|
// goods.setGoodsNm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsNm(), "<", "<"), ">", ">"));
|
|
// goods.setGoodsNm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsNm(), "<", "<"), ">", ">"));
|
|
|
// goods.setGoodsTnm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsTnm(), "<", "<"), ">", ">"));
|
|
// goods.setGoodsTnm(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsTnm(), "<", "<"), ">", ">"));
|
|
|
// goods.setGoodsSnm1(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsSnm1(), "<", "<"), ">", ">"));
|
|
// goods.setGoodsSnm1(GagaStringUtil.replace(GagaStringUtil.replace(goods.getGoodsSnm1(), "<", "<"), ">", ">"));
|
|
|
|
|
+
|
|
|
|
|
+ goods.setGoodsContentsDesc(goods.getGoodsContentsDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsDesc(goods.getGoodsDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsCharacterDesc(goods.getGoodsCharacterDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsPcTopDesc(goods.getGoodsPcTopDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsMobileTopDesc(goods.getGoodsMobileTopDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsPcDownDesc(goods.getGoodsPcDownDesc().replaceAll("(?i)script",""));
|
|
|
|
|
+ goods.setGoodsMobileDownDesc(goods.getGoodsMobileDownDesc().replaceAll("(?i)script",""));
|
|
|
|
|
|
|
|
// 판매기간설정 eskim
|
|
// 판매기간설정 eskim
|
|
|
goods.setSellStdt(goods.getSellStYMD().replaceAll("-", "") + goods.getSellStHH() + "0000");
|
|
goods.setSellStdt(goods.getSellStYMD().replaceAll("-", "") + goods.getSellStHH() + "0000");
|