|
|
@@ -4271,8 +4271,13 @@ public class TssGoodsService {
|
|
|
this.saveGoodsDetailDesc(goods);
|
|
|
|
|
|
// 옵션/재고 저장
|
|
|
+ boolean optChk = true;
|
|
|
int index = 0;
|
|
|
for (String optCd1 : goods.getOptCd1()) {
|
|
|
+ if (StringUtils.isBlank(optCd1) || StringUtils.isBlank(goods.getOptCd2()[index])) {
|
|
|
+ optChk = false;
|
|
|
+ }
|
|
|
+
|
|
|
String optCd = goods.getGoodsCd() + "-" + (index + 1);
|
|
|
|
|
|
Option goodsStock = new Option();
|
|
|
@@ -4294,6 +4299,10 @@ public class TssGoodsService {
|
|
|
index++;
|
|
|
}
|
|
|
|
|
|
+ if (!optChk) {
|
|
|
+ throw new IllegalStateException("옵션정보를 확인해주세요.");
|
|
|
+ }
|
|
|
+
|
|
|
// 상품 정보고시 변경
|
|
|
this.saveGoodsNotiInfo(goods);
|
|
|
|