|
@@ -844,14 +844,6 @@ public class TsaGoodsService {
|
|
|
String goodsNumFlag = "";
|
|
String goodsNumFlag = "";
|
|
|
for (Goods goods : goodsList) {
|
|
for (Goods goods : goodsList) {
|
|
|
|
|
|
|
|
- if (!StringUtils.isBlank(goodsCdFlag) && !StringUtils.isBlank(goodsNumFlag)) {
|
|
|
|
|
- throw new IllegalStateException("상품코드와 원코드 중 한 개의 셀에만 값을 입력해서 조회하세요.");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (!StringUtils.isBlank(goods.getSupplyCompCd())) {
|
|
|
|
|
- goods.setGoodsCd(goods.getSupplyCompCd());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
SearchData searchData = new SearchData();
|
|
SearchData searchData = new SearchData();
|
|
|
searchData.setRegNo(goods.getRegNo());
|
|
searchData.setRegNo(goods.getRegNo());
|
|
|
searchData.setSearchCd(goods.getGoodsCd());
|
|
searchData.setSearchCd(goods.getGoodsCd());
|
|
@@ -1376,14 +1368,10 @@ public class TsaGoodsService {
|
|
|
regGoods.setGoodsStat("G008_20"); // 정보부족
|
|
regGoods.setGoodsStat("G008_20"); // 정보부족
|
|
|
regGoods.setFormalGb("G009_10"); // 정상 기본값 처리
|
|
regGoods.setFormalGb("G009_10"); // 정상 기본값 처리
|
|
|
regGoods.setGoodsGb("G073_11"); // 자사상품은 신규
|
|
regGoods.setGoodsGb("G073_11"); // 자사상품은 신규
|
|
|
- regGoods.setDistributionGb("G065_12"); // 유통구분
|
|
|
|
|
|
|
+ //regGoods.setDistributionGb("G065_12"); // 유통구분
|
|
|
regGoods.setTaxGb("10"); // 과세구분
|
|
regGoods.setTaxGb("10"); // 과세구분
|
|
|
regGoods.setGoodsNum(goodsCd);
|
|
regGoods.setGoodsNum(goodsCd);
|
|
|
|
|
|
|
|
- regGoods.setListPrice(goods.getCurrPrice());
|
|
|
|
|
- regGoods.setCurrPrice(goods.getCurrPrice());
|
|
|
|
|
- regGoods.setDcRate((int)(this.getDcRate(goods.getCurrPrice(), goods.getCurrPrice())));
|
|
|
|
|
-
|
|
|
|
|
Collection<GoodsCompose> goodsComposeList = null;
|
|
Collection<GoodsCompose> goodsComposeList = null;
|
|
|
try {
|
|
try {
|
|
|
goodsComposeList = mapper.readValue(goods.getGoodsComposeList(), new TypeReference<Collection<GoodsCompose>>() {
|
|
goodsComposeList = mapper.readValue(goods.getGoodsComposeList(), new TypeReference<Collection<GoodsCompose>>() {
|
|
@@ -1417,6 +1405,7 @@ public class TsaGoodsService {
|
|
|
if ("Y".equals(goodsCompose.getRepYn())) {
|
|
if ("Y".equals(goodsCompose.getRepYn())) {
|
|
|
regGoods.setListPrice(extendGoods.getCurrPrice());
|
|
regGoods.setListPrice(extendGoods.getCurrPrice());
|
|
|
regGoods.setCurrPrice(extendGoods.getCurrPrice());
|
|
regGoods.setCurrPrice(extendGoods.getCurrPrice());
|
|
|
|
|
+ regGoods.setDcRate((int)(this.getDcRate(goods.getCurrPrice(), goods.getCurrPrice())));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1458,7 +1447,7 @@ public class TsaGoodsService {
|
|
|
regGoods.setGoodsStat("G008_20"); // 정보부족
|
|
regGoods.setGoodsStat("G008_20"); // 정보부족
|
|
|
regGoods.setFormalGb("G009_10"); // 정상 기본값 처리
|
|
regGoods.setFormalGb("G009_10"); // 정상 기본값 처리
|
|
|
regGoods.setGoodsGb("G073_11"); // 자사상품은 신규
|
|
regGoods.setGoodsGb("G073_11"); // 자사상품은 신규
|
|
|
- regGoods.setDistributionGb("G065_12"); // 유통구분
|
|
|
|
|
|
|
+ //regGoods.setDistributionGb("G065_12"); // 유통구분
|
|
|
regGoods.setTaxGb("10"); // 과세구분
|
|
regGoods.setTaxGb("10"); // 과세구분
|
|
|
regGoods.setGoodsNum(goodsCd);
|
|
regGoods.setGoodsNum(goodsCd);
|
|
|
|
|
|
|
@@ -1525,6 +1514,7 @@ public class TsaGoodsService {
|
|
|
|
|
|
|
|
float pntPrate = 0f;
|
|
float pntPrate = 0f;
|
|
|
float pntMrate = 0f;
|
|
float pntMrate = 0f;
|
|
|
|
|
+ String distributionGb = "";
|
|
|
for (Brand tmpBrand : brandList) {
|
|
for (Brand tmpBrand : brandList) {
|
|
|
|
|
|
|
|
if ("G009_10".equals(regGoods.getFormalGb())) {
|
|
if ("G009_10".equals(regGoods.getFormalGb())) {
|
|
@@ -1534,11 +1524,12 @@ public class TsaGoodsService {
|
|
|
pntPrate = tmpBrand.getPntPrate20();
|
|
pntPrate = tmpBrand.getPntPrate20();
|
|
|
pntMrate = tmpBrand.getPntMrate20();
|
|
pntMrate = tmpBrand.getPntMrate20();
|
|
|
}
|
|
}
|
|
|
|
|
+ distributionGb = tmpBrand.getDistributionGb() ; // 유통구분
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
regGoods.setPntPrate(pntPrate); // 포인트적립율(PC)
|
|
regGoods.setPntPrate(pntPrate); // 포인트적립율(PC)
|
|
|
regGoods.setPntMrate(pntMrate); // 포인트적립율(MOBILE)
|
|
regGoods.setPntMrate(pntMrate); // 포인트적립율(MOBILE)
|
|
|
-
|
|
|
|
|
|
|
+ regGoods.setDistributionGb(distributionGb); // 유통구분
|
|
|
//regGoods.setSelfGoodsYn("Y");
|
|
//regGoods.setSelfGoodsYn("Y");
|
|
|
|
|
|
|
|
SupplyCompany supplyCompany = new SupplyCompany();
|
|
SupplyCompany supplyCompany = new SupplyCompany();
|
|
@@ -1582,9 +1573,7 @@ public class TsaGoodsService {
|
|
|
regGoods.setGoodsSnm(goodsSnm);
|
|
regGoods.setGoodsSnm(goodsSnm);
|
|
|
goodsDao.updateGoodsSnm(regGoods);
|
|
goodsDao.updateGoodsSnm(regGoods);
|
|
|
|
|
|
|
|
- // 카테고리 전시
|
|
|
|
|
- // 추후 작업 해야함 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
- //goodsDao.createCategoryGoods(regGoods);
|
|
|
|
|
|
|
+ goodsDao.createCategoryGoods(regGoods);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|