|
|
@@ -1109,7 +1109,7 @@ public class TssGoodsService {
|
|
|
return goods.getGoodsStat(); //continue
|
|
|
}
|
|
|
|
|
|
- // 상품고시정보
|
|
|
+ // 상품고시정보 - 항목및 기본값
|
|
|
Collection<GoodsNotiInfo> goodsNotiList = goodsDao.getItemkindNotiInfoList(goods);
|
|
|
if (goodsNotiList == null || goodsNotiList.isEmpty()) {
|
|
|
goods.setGoodsRegMsg("품목의 고시정보 없음");
|
|
|
@@ -1148,8 +1148,13 @@ public class TssGoodsService {
|
|
|
goodsDao.updateGoodsMainColorCd(goodsColorSize); // 대표색상 설정
|
|
|
}
|
|
|
|
|
|
+ int index = 0;
|
|
|
// 자사 상품 등록시 고시정보 처리
|
|
|
for (GoodsNotiInfo goodsNotiInfo : goodsNotiList) {
|
|
|
+ if (!StringUtils.isEmpty(gagaMap.getString("niContent" + (index + 1)))) {
|
|
|
+ goodsNotiInfo.setNiContent(gagaMap.getString("niContent" + (index + 1)));
|
|
|
+ }
|
|
|
+
|
|
|
if ("G005_003".equals(goodsNotiInfo.getNiItemCd())) { // 색상
|
|
|
if (!StringUtils.isEmpty(goodsColorSize.getOpt1Str())) {
|
|
|
goodsNotiInfo.setNiContent(goodsColorSize.getOpt1Str());
|
|
|
@@ -1178,8 +1183,10 @@ public class TssGoodsService {
|
|
|
goodsNotiInfo.setNiContent(goods.getItemkindNm());
|
|
|
}
|
|
|
}
|
|
|
+ index++;
|
|
|
}
|
|
|
|
|
|
+ log.info("[goodsNotiList goodsNotiList goodsNotiList ]={}", goodsNotiList);
|
|
|
//고시항목 필수값 확인
|
|
|
goods = this.getGoodsNotiCheck(goods, goodsNotiList, gagaMap, procJob);
|
|
|
|
|
|
@@ -1555,13 +1562,14 @@ public class TssGoodsService {
|
|
|
* @since 2021. 01. 12
|
|
|
*/
|
|
|
private Goods getGoodsNotiCheck(Goods goods, Collection<GoodsNotiInfo> goodsNotiList, GagaMap excelMap, String procJob) {
|
|
|
-
|
|
|
+ log.info("[getGoodsNotiCheck goodsNotiList] =>{}", goodsNotiList);
|
|
|
// 고시항목 필수값 입력 확인
|
|
|
int index = 0;
|
|
|
|
|
|
if ("createSelfGoods".equals(procJob)) {
|
|
|
for (GoodsNotiInfo goodsNotiInfo : goodsNotiList) {
|
|
|
if ("Y".equals(goodsNotiInfo.getReqYn()) && StringUtils.isEmpty(goodsNotiInfo.getNiContent())) {
|
|
|
+ log.info("[goodsNotiInfo] =>{}", goodsNotiInfo);
|
|
|
goods.setGoodsRegMsg("고시항목 오류");
|
|
|
goods.setGoodsStat("G008_20");
|
|
|
return goods;
|