|
|
@@ -27,9 +27,9 @@ import com.style24.persistence.domain.GoodsHst;
|
|
|
import com.style24.persistence.domain.GoodsImg;
|
|
|
import com.style24.persistence.domain.GoodsMass;
|
|
|
import com.style24.persistence.domain.GoodsNotiInfo;
|
|
|
-import com.style24.persistence.domain.GoodsPriceRes;
|
|
|
import com.style24.persistence.domain.GoodsSafeNo;
|
|
|
import com.style24.persistence.domain.GoodsSearch;
|
|
|
+import com.style24.persistence.domain.GoodsSupplyPrice;
|
|
|
import com.style24.persistence.domain.IfProductSku;
|
|
|
import com.style24.persistence.domain.Itemkind;
|
|
|
import com.style24.persistence.domain.NotiInfo;
|
|
|
@@ -621,23 +621,18 @@ public class TssGoodsService {
|
|
|
|
|
|
} else {
|
|
|
if ("Y".equals(goods.getChCfrmYn())) {
|
|
|
- GoodsPriceRes goodsPriceRes = new GoodsPriceRes();
|
|
|
- goodsPriceRes.setGoodsCd(goods.getGoodsCd());
|
|
|
+ GoodsSupplyPrice GoodsSupplyPrice = new GoodsSupplyPrice();
|
|
|
+ GoodsSupplyPrice.setGoodsCd(goods.getGoodsCd());
|
|
|
if (goods.getCurrPrice() != goods.getCurrPriceOrg()) {
|
|
|
- goodsPriceRes.setResGoodsPrice(goods.getCurrPrice());
|
|
|
- goodsPriceRes.setEndGoodsPrice(goods.getCurrPrice());
|
|
|
+ GoodsSupplyPrice.setSupplyGoodsPrice(goods.getCurrPrice());
|
|
|
}
|
|
|
if (goods.getSellFeeRate() != goods.getSellFeeRateOrg()) {
|
|
|
- goodsPriceRes.setSellFeeRate(goods.getSellFeeRate());
|
|
|
+ GoodsSupplyPrice.setSupplySellFeeRate(goods.getSellFeeRate());
|
|
|
}
|
|
|
- goodsPriceRes.setApplyStdt(GagaDateUtil.getTodayDateTime()); //yyyymmddhhmiss
|
|
|
- int toYear = Integer.parseInt(GagaDateUtil.getToday("yyyy")) + 4;
|
|
|
- goodsPriceRes.setApplyEddt(Integer.toString(toYear) + "1231235959"); //yyyymmddhhmiss
|
|
|
- goodsPriceRes.setCfrmYn("N");
|
|
|
- goodsPriceRes.setApplyYn("N");
|
|
|
- goodsPriceRes.setRegNo(goods.getRegNo());
|
|
|
- goodsPriceRes.setUpdNo(goods.getUpdNo());
|
|
|
- goodsDao.createGoodPriceRes(goodsPriceRes);
|
|
|
+ GoodsSupplyPrice.setCfrmYn("N");
|
|
|
+ GoodsSupplyPrice.setRegNo(goods.getRegNo());
|
|
|
+ GoodsSupplyPrice.setUpdNo(goods.getUpdNo());
|
|
|
+ goodsDao.createGoodSupplyPrice(GoodsSupplyPrice);
|
|
|
|
|
|
goods.setCurrPrice(goods.getCurrPriceOrg());
|
|
|
goods.setSellFeeRate(goods.getSellFeeRateOrg());
|
|
|
@@ -1045,9 +1040,9 @@ public class TssGoodsService {
|
|
|
* @author eskim
|
|
|
* @since 2020. 11. 26
|
|
|
*/
|
|
|
- public int getGoodsSupplyPriceCount(GoodsPriceRes goodsPriceHst) {
|
|
|
+ public int getGoodsSupplyPriceCount(GoodsSupplyPrice goodsSupplyPrice) {
|
|
|
|
|
|
- return goodsDao.getGoodsSupplyPriceCount(goodsPriceHst);
|
|
|
+ return goodsDao.getGoodsSupplyPriceCount(goodsSupplyPrice);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -1058,9 +1053,9 @@ public class TssGoodsService {
|
|
|
* @author eskim
|
|
|
* @since 2020. 11. 26
|
|
|
*/
|
|
|
- public Collection<GoodsPriceRes> getGoodsSupplyPriceList(GoodsPriceRes goodsPriceHst) {
|
|
|
+ public Collection<GoodsSupplyPrice> getGoodsSupplyPriceList(GoodsSupplyPrice goodsSupplyPrice) {
|
|
|
|
|
|
- return goodsDao.getGoodsSupplyPriceList(goodsPriceHst);
|
|
|
+ return goodsDao.getGoodsSupplyPriceList(goodsSupplyPrice);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -3098,23 +3093,18 @@ public class TssGoodsService {
|
|
|
}
|
|
|
} else {
|
|
|
//입점
|
|
|
- GoodsPriceRes goodsPriceRes = new GoodsPriceRes();
|
|
|
- goodsPriceRes.setGoodsCd(goods.getGoodsCd());
|
|
|
- if (goods.getCurrPrice() != goodsOrigin.getCurrPrice()) {
|
|
|
- goodsPriceRes.setResGoodsPrice(goods.getCurrPrice());
|
|
|
- goodsPriceRes.setEndGoodsPrice(goods.getCurrPrice());
|
|
|
+ GoodsSupplyPrice goodsSupplyPrice = new GoodsSupplyPrice();
|
|
|
+ goodsSupplyPrice.setGoodsCd(goods.getGoodsCd());
|
|
|
+ if (goods.getCurrPrice() != goods.getCurrPriceOrg()) {
|
|
|
+ goodsSupplyPrice.setSupplyGoodsPrice(goods.getCurrPrice());
|
|
|
}
|
|
|
- if (goods.getSellFeeRate() != goodsOrigin.getSellFeeRate()) {
|
|
|
- goodsPriceRes.setSellFeeRate(sellFeeRate);
|
|
|
+ if (goods.getSellFeeRate() != goods.getSellFeeRateOrg()) {
|
|
|
+ goodsSupplyPrice.setSupplySellFeeRate(goods.getSellFeeRate());
|
|
|
}
|
|
|
- goodsPriceRes.setApplyStdt(GagaDateUtil.getTodayDateTime()); //yyyymmddhhmiss
|
|
|
- int toYear = Integer.parseInt(GagaDateUtil.getToday("yyyy")) + 4;
|
|
|
- goodsPriceRes.setApplyEddt(Integer.toString(toYear) + "1231235959"); //yyyymmddhhmiss
|
|
|
- goodsPriceRes.setCfrmYn("N");
|
|
|
- goodsPriceRes.setApplyYn("N");
|
|
|
- goodsPriceRes.setRegNo(goods.getRegNo());
|
|
|
- goodsPriceRes.setUpdNo(goods.getUpdNo());
|
|
|
- goodsDao.createGoodPriceRes(goodsPriceRes);
|
|
|
+ goodsSupplyPrice.setCfrmYn("N");
|
|
|
+ goodsSupplyPrice.setRegNo(goods.getRegNo());
|
|
|
+ goodsSupplyPrice.setUpdNo(goods.getUpdNo());
|
|
|
+ goodsDao.createGoodSupplyPrice(goodsSupplyPrice);
|
|
|
|
|
|
// 상품테이블에 바로 변경하지 않고 입점상품가격관리에서 승인해야함
|
|
|
goods.setCurrPrice(goodsOrigin.getCurrPrice());
|