|
@@ -496,7 +496,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public GagaMap getGoodsList(@RequestBody GoodsSearch goodsSearch) {
|
|
public GagaMap getGoodsList(@RequestBody GoodsSearch goodsSearch) {
|
|
|
|
|
|
|
|
- //log.info("[getGoodsList] goodsSearch = {}", goodsSearch);
|
|
|
|
|
|
|
+ log.info("[getGoodsList] goodsSearch = {}", goodsSearch);
|
|
|
GagaMap result = new GagaMap();
|
|
GagaMap result = new GagaMap();
|
|
|
|
|
|
|
|
// 입점업체담당자는 업체코드 설정
|
|
// 입점업체담당자는 업체코드 설정
|
|
@@ -507,7 +507,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
|
|
|
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
@@ -572,7 +572,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
|
|
|
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
@@ -580,6 +580,28 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
goodsSearch.setSearchGb("MASTER");
|
|
goodsSearch.setSearchGb("MASTER");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String [] arrBrandCd = mapper.readValue(goodsSearch.getBrandList(), String[].class);
|
|
|
|
|
+ goodsSearch.setMultiBrand(arrBrandCd);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSearch.getSupplyCompList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String [] arrSupplyComp = mapper.readValue(goodsSearch.getSupplyCompList(), String[].class);
|
|
|
|
|
+ goodsSearch.setMultiSupplyCompCd(arrSupplyComp);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ log.info("[downloadGoodsInfoExcelList] goodsSearch = {}", goodsSearch);
|
|
|
|
|
|
|
|
// 대용량엑셀파일다운로드는 이런 식으로 ...
|
|
// 대용량엑셀파일다운로드는 이런 식으로 ...
|
|
|
goodsService.getGoodsInfoExcelList(goodsSearch, excelFilenameWithPath);
|
|
goodsService.getGoodsInfoExcelList(goodsSearch, excelFilenameWithPath);
|
|
@@ -1575,7 +1597,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
@@ -1776,7 +1798,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
|
try {
|
|
try {
|
|
@@ -2067,7 +2089,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return goodsService.getNoticeList(goodsSearch);
|
|
return goodsService.getNoticeList(goodsSearch);
|
|
@@ -2190,7 +2212,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
|
|
|
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
@@ -2425,7 +2447,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
|
|
|
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
if ("searchExtendGoodsCd".equals(goodsSearch.getSearch())) {
|
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
goodsSearch.setSearchGb("EXTEND");
|
|
@@ -2450,7 +2472,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return goodsService.saveGoodsNaverPrice(goodsSearch);
|
|
return goodsService.saveGoodsNaverPrice(goodsSearch);
|
|
@@ -2560,7 +2582,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
public Collection<GoodsNotiInfo> getGoodsNotiInfoListByNotiClsf(@RequestBody GoodsNotiInfo goodsNotiInfo) {
|
|
public Collection<GoodsNotiInfo> getGoodsNotiInfoListByNotiClsf(@RequestBody GoodsNotiInfo goodsNotiInfo) {
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (StringUtils.isNotBlank(goodsNotiInfo.getGoodsCd())) {
|
|
if (StringUtils.isNotBlank(goodsNotiInfo.getGoodsCd())) {
|
|
|
- goodsNotiInfo.setGoodsCds(goodsNotiInfo.getGoodsCd().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsNotiInfo.setGoodsCds(goodsNotiInfo.getGoodsCd().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return goodsService.getGoodsNotiInfoListByNotiClsf(goodsNotiInfo);
|
|
return goodsService.getGoodsNotiInfoListByNotiClsf(goodsNotiInfo);
|
|
@@ -2632,7 +2654,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return goodsService.getFreeGoodsList(goodsSearch);
|
|
return goodsService.getFreeGoodsList(goodsSearch);
|
|
@@ -2835,7 +2857,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
@@ -2863,7 +2885,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
Goods goods = new Goods();
|
|
Goods goods = new Goods();
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
- goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").split("\n"));
|
|
|
|
|
|
|
+ goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
goods.setArrGoodsCd(goodsSearch.getConditionList());
|
|
goods.setArrGoodsCd(goodsSearch.getConditionList());
|
|
|
}
|
|
}
|
|
|
|
|
|