|
|
@@ -22,6 +22,7 @@ import com.style24.persistence.domain.AdKeyword;
|
|
|
import com.style24.persistence.domain.AdKeywordGoods;
|
|
|
import com.style24.persistence.domain.Brand;
|
|
|
import com.style24.persistence.domain.Color;
|
|
|
+import com.style24.persistence.domain.DelvFeePolicy;
|
|
|
import com.style24.persistence.domain.FreeGoods;
|
|
|
import com.style24.persistence.domain.Goods;
|
|
|
import com.style24.persistence.domain.GoodsCategory;
|
|
|
@@ -46,6 +47,7 @@ import com.style24.persistence.domain.NoticeGoods;
|
|
|
import com.style24.persistence.domain.Option;
|
|
|
import com.style24.persistence.domain.ReinboundInform;
|
|
|
import com.style24.persistence.domain.SearchData;
|
|
|
+import com.style24.persistence.domain.SupplyCompany;
|
|
|
import com.style24.persistence.domain.Video;
|
|
|
import com.style24.persistence.domain.WmsColorMapping;
|
|
|
import com.style24.persistence.domain.WmsGoods;
|
|
|
@@ -873,7 +875,7 @@ public class TsaGoodsService {
|
|
|
}
|
|
|
goodsDao.updateGoodsSnm(goods);
|
|
|
|
|
|
- //상품 등록후에는 고시정보는 품목과 상관없이 변경처리 가능하게
|
|
|
+ //상품 등록후에는 고시정보는 품목과 상관없이 변경처리 가능하게
|
|
|
// Collection<GoodsNotiInfo> goodsNotiInfoList = goodsDao.getNewNotiInfo(goods);
|
|
|
// goodsDao.deleteGoodsNotiInfo(goods);
|
|
|
//
|
|
|
@@ -1353,6 +1355,11 @@ public class TsaGoodsService {
|
|
|
regGoods.setSupplyCompCd(extendGoods.getSupplyCompCd());
|
|
|
regGoods.setFormalGb(extendGoods.getFormalGb());
|
|
|
}
|
|
|
+
|
|
|
+ if ("Y".equals(goodsCompose.getRepYn())) {
|
|
|
+ regGoods.setListPrice(extendGoods.getCurrPrice());
|
|
|
+ regGoods.setCurrPrice(extendGoods.getCurrPrice());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.createGoodsExtend(regGoods, goodsComposeList); // 딜상품 관련 정보 저장
|
|
|
@@ -1459,8 +1466,6 @@ public class TsaGoodsService {
|
|
|
|
|
|
float pntPrate = 0f;
|
|
|
float pntMrate = 0f;
|
|
|
- float sellFeeRate = 0f;
|
|
|
- //String delvFeeCd = "";
|
|
|
for (Brand tmpBrand : brandList) {
|
|
|
|
|
|
if ("10".equals(regGoods.getFormalGb())) {
|
|
|
@@ -1470,15 +1475,31 @@ public class TsaGoodsService {
|
|
|
pntPrate = tmpBrand.getPntPrate20();
|
|
|
pntMrate = tmpBrand.getPntMrate20();
|
|
|
}
|
|
|
- sellFeeRate = tmpBrand.getSellFeeRate();
|
|
|
- //delvFeeCd = tmpBrand.getDelvFeeCd();
|
|
|
}
|
|
|
- //regGoods.setDelvFeeCd(delvFeeCd);// 배송비전책코드
|
|
|
+
|
|
|
regGoods.setPntPrate(pntPrate); // 포인트적립율(PC)
|
|
|
regGoods.setPntMrate(pntMrate); // 포인트적립율(MOBILE)
|
|
|
- regGoods.setSellFeeRate(sellFeeRate); // 판매수수료율
|
|
|
+
|
|
|
regGoods.setSelfGoodsYn("Y");
|
|
|
|
|
|
+ SupplyCompany supplyCompany = new SupplyCompany();
|
|
|
+ supplyCompany.setSupplyCompCd(regGoods.getSupplyCompCd());
|
|
|
+ Collection<SupplyCompany> supplyCompanyList = businessService.getSupplyCompanyList(supplyCompany);
|
|
|
+ if (supplyCompanyList == null || supplyCompanyList.isEmpty()) {
|
|
|
+ throw new IllegalStateException(message.getMessage("구성상품 중 기준 상품의 업체(판매수수율를 확인해 주세요."));
|
|
|
+ }
|
|
|
+ regGoods.setSellFeeRate(supplyCompanyList.iterator().next().getSellFeeRate()); // 판매수수료율
|
|
|
+
|
|
|
+
|
|
|
+ DelvFeePolicy delvFeePolicy = new DelvFeePolicy();
|
|
|
+ delvFeePolicy.setSupplyCompCd(regGoods.getSupplyCompCd());
|
|
|
+ Collection<DelvFeePolicy> deliveryFeePolicyList = businessService.getDeliveryFeePolicyList(delvFeePolicy);
|
|
|
+ if (deliveryFeePolicyList == null || deliveryFeePolicyList.isEmpty()) {
|
|
|
+ throw new IllegalStateException(message.getMessage("구성상품 중 기준 상품의 업체(배송비정책)를 확인해 주세요."));
|
|
|
+ }
|
|
|
+ regGoods.setDelvFeeCd(deliveryFeePolicyList.iterator().next().getDelvFeeCd());// 배송비정책코드
|
|
|
+
|
|
|
+
|
|
|
// 스타일 연도
|
|
|
regGoods.setStyleYear(regGoods.getStyleYear());
|
|
|
|