|
|
@@ -44,6 +44,7 @@ import com.style24.persistence.domain.Itemkind;
|
|
|
import com.style24.persistence.domain.NotiInfo;
|
|
|
import com.style24.persistence.domain.Notice;
|
|
|
import com.style24.persistence.domain.NoticeGoods;
|
|
|
+import com.style24.persistence.domain.Option;
|
|
|
import com.style24.persistence.domain.User;
|
|
|
import com.style24.persistence.domain.Video;
|
|
|
import com.style24.persistence.domain.WmsColorMapping;
|
|
|
@@ -590,33 +591,36 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
continue;
|
|
|
}
|
|
|
- // 사이즈 등록 여부 확인
|
|
|
-// Stock stock = new Stock();
|
|
|
-// stock.setGoodsCd(tmpGoods.getGoodsCd());
|
|
|
-// int stockCnt = goodsService.getGoodsSizeCount(stock);
|
|
|
-// if (stockCnt <= 0) {
|
|
|
-// returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
-// continue;
|
|
|
-// }
|
|
|
+ // 옵션 등록 여부 확인 - 일반상품만 확인
|
|
|
+ if ("G056_N".equals(dataGoods.getGoodsType())){
|
|
|
+ Option stock = new Option();
|
|
|
+ stock.setGoodsCd(tmpGoods.getGoodsCd());
|
|
|
+ int stockCnt = goodsService.getGoodsOptionCount(stock);
|
|
|
+ if (stockCnt <= 0) {
|
|
|
+ returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
//고시정보
|
|
|
-// GoodsNotiInfo goodsNotiInfo = new GoodsNotiInfo();
|
|
|
-// goodsNotiInfo.setGoodsCd(tmpGoods.getGoodsCd());
|
|
|
-// goodsNotiInfo.setSupplyCompCd(tmpGoods.getSupplyCompCd());
|
|
|
-// goodsNotiInfo.setNiClsfCd(tmpGoods.getNiClsfCd());
|
|
|
-// Collection<GoodsNotiInfo> goodsNotiInfoList = goodsService.getGoodsNotiInfoList(goodsNotiInfo);
|
|
|
-// if (goodsNotiInfoList == null || goodsNotiInfoList.isEmpty()) {
|
|
|
-// returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
-// } else {
|
|
|
-// for (GoodsNotiInfo tmpGoodsNotiInfo : goodsNotiInfoList) {
|
|
|
-// if ("Y".equals(tmpGoodsNotiInfo.getReqYn()) || "Y".equals(tmpGoodsNotiInfo.getDispYn())) {
|
|
|
-// if (StringUtils.isEmpty(tmpGoodsNotiInfo.getNiContent())) {
|
|
|
-// returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
+ GoodsNotiInfo goodsNotiInfo = new GoodsNotiInfo();
|
|
|
+ goodsNotiInfo.setGoodsCd(tmpGoods.getGoodsCd());
|
|
|
+ goodsNotiInfo.setSupplyCompCd(tmpGoods.getSupplyCompCd());
|
|
|
+ goodsNotiInfo.setNiClsfCd(tmpGoods.getNiClsfCd());
|
|
|
+ Collection<GoodsNotiInfo> goodsNotiInfoList = goodsService.getGoodsNotiInfoList(goodsNotiInfo);
|
|
|
+ if (goodsNotiInfoList == null || goodsNotiInfoList.isEmpty()) {
|
|
|
+ returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
+ } else {
|
|
|
+ for (GoodsNotiInfo tmpGoodsNotiInfo : goodsNotiInfoList) {
|
|
|
+ if ("Y".equals(tmpGoodsNotiInfo.getReqYn()) || "Y".equals(tmpGoodsNotiInfo.getDispYn())) {
|
|
|
+ if (StringUtils.isEmpty(tmpGoodsNotiInfo.getNiContent())) {
|
|
|
+ returnGoods += tmpGoods.getGoodsCd() + ",";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|