|
@@ -152,7 +152,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
@PostMapping("/itemkind/base/list")
|
|
@PostMapping("/itemkind/base/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Collection<Itemkind> getItemkindList(@RequestBody Itemkind itemkind) {
|
|
public Collection<Itemkind> getItemkindList(@RequestBody Itemkind itemkind) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(itemkind.getSearchItemkindCd())) {
|
|
if (!StringUtils.isBlank(itemkind.getSearchItemkindCd())) {
|
|
|
itemkind.setMultiItemkindCd(itemkind.getSearchItemkindCd().replaceAll("\r", "").trim().split("\n"));
|
|
itemkind.setMultiItemkindCd(itemkind.getSearchItemkindCd().replaceAll("\r", "").trim().split("\n"));
|
|
@@ -160,7 +160,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
if (!StringUtils.isBlank(itemkind.getSearchItemkindNm())) {
|
|
if (!StringUtils.isBlank(itemkind.getSearchItemkindNm())) {
|
|
|
itemkind.setMultiItemkindNm(itemkind.getSearchItemkindNm().replaceAll("\r", "").trim().split("\n"));
|
|
itemkind.setMultiItemkindNm(itemkind.getSearchItemkindNm().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return goodsService.getItemkindList(itemkind);
|
|
return goodsService.getItemkindList(itemkind);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -559,7 +559,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (!StringUtils.isBlank(goodsSearch.getItemkindList())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getItemkindList())) {
|
|
|
try {
|
|
try {
|
|
|
String[] arrItemkind = mapper.readValue(goodsSearch.getItemkindList(), String[].class);
|
|
String[] arrItemkind = mapper.readValue(goodsSearch.getItemkindList(), String[].class);
|
|
@@ -1591,7 +1591,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
if (!StringUtils.isBlank(goodsSupplyPrice.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSupplyPrice.getCondition())) {
|
|
|
goodsSupplyPrice.setConditionList(goodsSupplyPrice.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
goodsSupplyPrice.setConditionList(goodsSupplyPrice.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (!StringUtils.isBlank(goodsSupplyPrice.getBrandList())) {
|
|
if (!StringUtils.isBlank(goodsSupplyPrice.getBrandList())) {
|
|
|
try {
|
|
try {
|
|
|
String[] arrBrandCd = mapper.readValue(goodsSupplyPrice.getBrandList(), String[].class);
|
|
String[] arrBrandCd = mapper.readValue(goodsSupplyPrice.getBrandList(), String[].class);
|
|
@@ -1611,8 +1611,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return goodsService.getGoodsSupplyPriceList(goodsSupplyPrice);
|
|
return goodsService.getGoodsSupplyPriceList(goodsSupplyPrice);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1786,7 +1785,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
@PostMapping("/video/list")
|
|
@PostMapping("/video/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Collection<GoodsVideo> getGoodsVideoList(@RequestBody GoodsVideo goodsVideo) {
|
|
public Collection<GoodsVideo> getGoodsVideoList(@RequestBody GoodsVideo goodsVideo) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
if (!StringUtils.isBlank(goodsVideo.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsVideo.getCondition())) {
|
|
|
goodsVideo.setConditionList(goodsVideo.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
goodsVideo.setConditionList(goodsVideo.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
@@ -1802,7 +1801,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return goodsService.getGoodsVideoList(goodsVideo);
|
|
return goodsService.getGoodsVideoList(goodsVideo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2429,7 +2428,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (!StringUtils.isBlank(goodsSearch.getItemkindList())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getItemkindList())) {
|
|
|
try {
|
|
try {
|
|
|
String[] arrItemkind = mapper.readValue(goodsSearch.getItemkindList(), String[].class);
|
|
String[] arrItemkind = mapper.readValue(goodsSearch.getItemkindList(), String[].class);
|
|
@@ -2439,7 +2438,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
throw new IllegalStateException("품목 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("품목 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//log.info("[getPopupGoodsList] goodsSearch=>{}", goodsSearch);
|
|
//log.info("[getPopupGoodsList] goodsSearch=>{}", goodsSearch);
|
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
|
goodsSearch.setPageable(new TscPageRequest(goodsSearch.getPageNo() - 1, goodsSearch.getPageSize()));
|
|
goodsSearch.setPageable(new TscPageRequest(goodsSearch.getPageNo() - 1, goodsSearch.getPageSize()));
|
|
@@ -3327,7 +3326,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
if (!StringUtils.isBlank(ifIncomelot.getCondition())) {
|
|
if (!StringUtils.isBlank(ifIncomelot.getCondition())) {
|
|
|
ifIncomelot.setConditionList(ifIncomelot.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
ifIncomelot.setConditionList(ifIncomelot.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
ifIncomelot.setPageable(new TscPageRequest(ifIncomelot.getPageNo() - 1, ifIncomelot.getPageSize()));
|
|
ifIncomelot.setPageable(new TscPageRequest(ifIncomelot.getPageNo() - 1, ifIncomelot.getPageSize()));
|
|
|
ifIncomelot.getPageable().setTotalCount(goodsService.getGoodsWmsIncomelotSkuListCount(ifIncomelot));
|
|
ifIncomelot.getPageable().setTotalCount(goodsService.getGoodsWmsIncomelotSkuListCount(ifIncomelot));
|
|
|
|
|
|
|
@@ -3435,7 +3434,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
return result;
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 상품 상세 컨텐츠 화면
|
|
* 상품 상세 컨텐츠 화면
|
|
|
*
|
|
*
|
|
@@ -3446,10 +3445,10 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
@GetMapping("/contents/form")
|
|
@GetMapping("/contents/form")
|
|
|
public ModelAndView detailContentsForm() {
|
|
public ModelAndView detailContentsForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 상품상세노출컨텐츠유형
|
|
// 상품상세노출컨텐츠유형
|
|
|
mav.addObject("goodsContentsTypeList", rendererService.getAvailCommonCodeList("G086"));
|
|
mav.addObject("goodsContentsTypeList", rendererService.getAvailCommonCodeList("G086"));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
mav.setViewName("goods/GoodsContentsForm");
|
|
mav.setViewName("goods/GoodsContentsForm");
|
|
|
|
|
|
|
|
return mav;
|
|
return mav;
|
|
@@ -3476,7 +3475,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getCondition())) {
|
|
|
goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
goodsSearch.setConditionList(goodsSearch.getCondition().replaceAll("\r", "").trim().split("\n"));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
|
try {
|
|
try {
|
|
|
String[] arrBrandCd = mapper.readValue(goodsSearch.getBrandList(), String[].class);
|
|
String[] arrBrandCd = mapper.readValue(goodsSearch.getBrandList(), String[].class);
|
|
@@ -3561,4 +3560,24 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 상품기본이미지URL 조회
|
|
|
|
|
+ * @param
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author eskim
|
|
|
|
|
+ * @since 2021. 07. 25
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/default/image/url")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public String getGoodsDefaultImageUrl(GoodsImg goodsImg) {
|
|
|
|
|
+ // 상품기본이미지명 조회
|
|
|
|
|
+ String defaultImgNm = goodsService.getGoodsDefaultImageName(goodsImg);
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isEmpty(defaultImgNm)) {
|
|
|
|
|
+ return GagaFileUtil.getConcatenationPath(env.getProperty("upload.goods.view"), defaultImgNm);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|