|
|
@@ -276,11 +276,9 @@ public class TssGoodsController extends TssBaseController {
|
|
|
returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
} else {
|
|
|
for (GoodsNotiInfo tmpGoodsNotiInfo : goodsNotiInfoList) {
|
|
|
- if ("Y".equals(tmpGoodsNotiInfo.getReqYn()) || "Y".equals(tmpGoodsNotiInfo.getDispYn())) {
|
|
|
- if (StringUtils.isBlank(tmpGoodsNotiInfo.getNiContent())) {
|
|
|
- returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
- break;
|
|
|
- }
|
|
|
+ if (StringUtils.isBlank(tmpGoodsNotiInfo.getNiContent())) {
|
|
|
+ returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -625,8 +623,9 @@ public class TssGoodsController extends TssBaseController {
|
|
|
@RequestMapping(value = "/thumbnail/image/save", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public GagaResponse saveGoodsThumbnailImageList(@RequestBody Collection<GoodsImg> goodsImgList) throws Exception {
|
|
|
- if (goodsImgList == null || goodsImgList.isEmpty())
|
|
|
+ if (goodsImgList == null || goodsImgList.isEmpty()) {
|
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
+ }
|
|
|
|
|
|
String dextUploadPath = env.getProperty("upload.dext.target.path");
|
|
|
String goodsTargetPath = env.getProperty("upload.goods.target.path");
|
|
|
@@ -649,8 +648,9 @@ public class TssGoodsController extends TssBaseController {
|
|
|
Goods goods = new Goods();
|
|
|
goods.setGoodsCd(goodsImg.getGoodsCd());
|
|
|
Goods goodsInfo = goodsService.getGoods(goods);
|
|
|
- if (goodsInfo == null || goodsInfo.getGoodsCd().isEmpty())
|
|
|
+ if (goodsInfo == null || goodsInfo.getGoodsCd().isEmpty()) {
|
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
+ }
|
|
|
|
|
|
strBrandNo = String.valueOf(goodsInfo.getBrandNo());
|
|
|
}
|
|
|
@@ -761,7 +761,9 @@ public class TssGoodsController extends TssBaseController {
|
|
|
// 정보고시 목록
|
|
|
mav.addObject("niClsfCdList", rendererService.getAvailCommonCodeList("G004"));
|
|
|
// 사용자 업체
|
|
|
- String supplyCompCd = !StringUtils.isBlank(TssSession.getInfo().getSupplyCompCd()) ? TssSession.getInfo().getSupplyCompCd() : "NONE";
|
|
|
+ String supplyCompCd = TssSession.getInfo().getSupplyCompCd();
|
|
|
+ // 업체별 배송비 목록
|
|
|
+ mav.addObject("supplyDeliveryFeePolicyList", rendererService.getSupplyDeliveryFeePolicyList(supplyCompCd));
|
|
|
|
|
|
mav.addObject("supplyCompCd", supplyCompCd);
|
|
|
mav.setViewName("goods/GoodsMassRegisterForm");
|
|
|
@@ -807,7 +809,7 @@ public class TssGoodsController extends TssBaseController {
|
|
|
}
|
|
|
|
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정
|
|
|
- String[] goodsNames = {"goodsNum", "brandCd", "goodsNm", "itemkindCd", "styleYear", "seasonCd",
|
|
|
+ String[] goodsNames = {"goodsNum", "brandCd", "goodsNm", "itemkindCd", "styleYear", "seasonCd",
|
|
|
"sexGb", "listPrice", "currPrice", "costPrice", "formalGb", "originCd", "makeYmd",
|
|
|
"niClsfCd", "niContent1", "niContent2", "niContent3", "niContent4", "niContent5",
|
|
|
"niContent6", "niContent7", "niContent8", "niContent9", "niContent10", "niContent11", "niContent12",
|
|
|
@@ -818,14 +820,14 @@ public class TssGoodsController extends TssBaseController {
|
|
|
ecxelGoodsList = GagaExcelUtil.getList(GagaFileUtil.getConcatenationPath(targetPath, goodsMass.getExcelFileNm()), 0, goodsNames, 0);
|
|
|
|
|
|
for (GagaMap gagaMap : ecxelGoodsList) {
|
|
|
- goodsService.createExceluploadSelfGoods(gagaMap, goodsMass.getProcJob());
|
|
|
+ goodsService.createExceluploadSelfGoods(gagaMap, goodsMass.getProcJob());
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
// 입점상품등록
|
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정 -
|
|
|
- String[] goodsNames = {"supplyGoodsCd", "supplyCompCd", "brandCd", "goodsNm", "goodsTnm","goodsSnm1","itemkindCd", "styleYear", "seasonCd",
|
|
|
- "sexGb", "listPrice", "currPrice", "goodsGb", "formalGb", "originCd", "makeYmd", "taxGb", "ageGrpCd", "adultYn","optStr", "goodsContent",
|
|
|
+ String[] goodsNames = {"supplyGoodsCd", "supplyCompCd", "brandCd", "goodsNm", "goodsTnm", "goodsSnm1", "itemkindCd", "styleYear", "seasonCd",
|
|
|
+ "sexGb", "listPrice", "currPrice", "goodsGb", "formalGb", "originCd", "makeYmd", "taxGb", "ageGrpCd", "adultYn", "optStr", "goodsContent",
|
|
|
"niClsfCd", "niContent1", "niContent2", "niContent3", "niContent4", "niContent5",
|
|
|
"niContent6", "niContent7", "niContent8", "niContent9", "niContent10", "niContent11", "niContent12",
|
|
|
"niContent13", "niContent14", "niContent15", "niContent16", "niContent17", "niContent18",
|
|
|
@@ -846,7 +848,7 @@ public class TssGoodsController extends TssBaseController {
|
|
|
}
|
|
|
|
|
|
for (GagaMap gagaMap : ecxelGoodsList) {
|
|
|
- goodsService.createExceluploadGoods(gagaMap, goodsMass.getProcJob());
|
|
|
+ goodsService.createExceluploadGoods(gagaMap, goodsMass.getProcJob());
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -877,8 +879,8 @@ public class TssGoodsController extends TssBaseController {
|
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정 -
|
|
|
String[] goodsNames = {"goodsCd", "goodsNm", "goodsTnm", "goodsSnm1", "itemkindCd", "seasonCd",
|
|
|
"sexGb", "currPrice", "sellFeeRate", "goodsGb", "formalGb", "minOrdQty", "maxOrdQty", "dayMaxOrdQty",
|
|
|
- "giftPackYn", "newCustOrdYn", "returnableYn", "changeableYn",
|
|
|
- "taxGb", "ageGrpCd", "adultYn", "goodsContent",
|
|
|
+ "giftPackYn", "newCustOrdYn","pntPrate","prePpntUsableYn", "pntMrate","preMpntUsableYn",
|
|
|
+ "returnableYn", "changeableYn","taxGb", "ageGrpCd", "adultYn", "delvFeeCd", "goodsContent",
|
|
|
"niClsfCd", "niContent1", "niContent2",
|
|
|
"niContent3", "niContent4", "niContent5", "niContent6", "niContent7", "niContent8", "niContent9",
|
|
|
"niContent10", "niContent11", "niContent12", "niContent13", "niContent14", "niContent15", "niContent16",
|
|
|
@@ -893,7 +895,7 @@ public class TssGoodsController extends TssBaseController {
|
|
|
}
|
|
|
|
|
|
for (GagaMap gagaMap : ecxelGoodsList) {
|
|
|
- goodsService.updateMassExceluploadGoods(gagaMap, goodsMass.getProcJob());
|
|
|
+ goodsService.updateMassExceluploadGoods(gagaMap, goodsMass.getProcJob());
|
|
|
}
|
|
|
|
|
|
// 파일 삭제
|
|
|
@@ -1136,4 +1138,19 @@ public class TssGoodsController extends TssBaseController {
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 상품 품목 변경 저장
|
|
|
+ *
|
|
|
+ * @param goodsList
|
|
|
+ * @return
|
|
|
+ * @author eskim
|
|
|
+ * @since 2021. 01. 24
|
|
|
+ */
|
|
|
+ @PostMapping("/itemKind/change/save")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaResponse saveItemKindChange(@RequestBody Collection<Goods> goodsList) {
|
|
|
+ goodsService.saveItemKindChange(goodsList);
|
|
|
+ return super.ok(message.getMessage("SUCC_0001"));
|
|
|
+ }
|
|
|
}
|