|
|
@@ -689,9 +689,9 @@ public class TssGoodsService {
|
|
|
// 신규가입기간
|
|
|
if (!StringUtils.isEmpty(goods.getNewCustOrdStdt())) {
|
|
|
goods.setNewCustOrdStdt(goods.getNewCustOrdStdt().replaceAll("-", "") + "000000");
|
|
|
- goods.setNewCustOrdEddt(goods.getNewCustOrdEddt().replaceAll("-", "") + "235959");
|
|
|
+ goods.setNewCustOrdEddt(goods.getNewCustOrdEddt().replaceAll("-", "") + "235959");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 기본정보 변경
|
|
|
if ("Y".equals(goods.getChDataYn())) {
|
|
|
goodsDao.createGoodsHst(goods);
|
|
|
@@ -725,7 +725,7 @@ public class TssGoodsService {
|
|
|
|
|
|
// 상품 정보고시 변경
|
|
|
this.saveGoodsNotiInfo(goods);
|
|
|
-
|
|
|
+
|
|
|
// 안전인증정보
|
|
|
// 안전안증작업
|
|
|
if (!StringUtils.isEmpty(goods.getCertTargetGb())) {
|
|
|
@@ -737,7 +737,7 @@ public class TssGoodsService {
|
|
|
goodsSafeNo.setCertNum(goods.getCertNum());
|
|
|
this.saveGoodsDetailCertNum(goodsSafeNo);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 상품 구매등급 적용 - SCM 미적용
|
|
|
// if (goods.getGoodsOrderGrade() != null && goods.getGoodsOrderGrade().length > 0) {
|
|
|
// Goods goodsOrderGrade = new Goods();
|
|
|
@@ -2583,10 +2583,9 @@ public class TssGoodsService {
|
|
|
goods.setCertNum(goodsMass.getCertNum().trim()); //안전인증번호
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
- else {
|
|
|
- if (!StringUtils.isBlank(goodsMass.getCertFormGb()) ||
|
|
|
- !StringUtils.isBlank(goodsMass.getCertType()) ||
|
|
|
+ } else {
|
|
|
+ if (!StringUtils.isBlank(goodsMass.getCertFormGb()) ||
|
|
|
+ !StringUtils.isBlank(goodsMass.getCertType()) ||
|
|
|
!StringUtils.isBlank(goodsMass.getCertNum())) {
|
|
|
goods.setGoodsRegMsg("인증대상 오류");
|
|
|
goods.setGoodsStat("10");
|
|
|
@@ -3805,7 +3804,7 @@ public class TssGoodsService {
|
|
|
goods.setSelfGoodsYn("N");
|
|
|
goods.setGoodsType("G056_N");
|
|
|
goods.setTobeFormYn("N");
|
|
|
-
|
|
|
+
|
|
|
// <,> replace 처리
|
|
|
goods.setRegNo(TssSession.getInfo().getUserNo());
|
|
|
goods.setUpdNo(TssSession.getInfo().getUserNo());
|
|
|
@@ -3823,11 +3822,11 @@ public class TssGoodsService {
|
|
|
// 판매기간설정 eskim
|
|
|
goods.setSellStdt(goods.getSellStYMD().replaceAll("-", "") + goods.getSellStHH() + "0000");
|
|
|
goods.setSellEddt(goods.getSellEdYMD().replaceAll("-", "") + goods.getSellEdHH() + "5959");
|
|
|
-
|
|
|
+
|
|
|
if (goods.getListPrice() < goods.getCurrPrice()) {
|
|
|
throw new IllegalStateException("판매가를 올바르게 입력해주세요.");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 판매수수료율
|
|
|
SupplyCompany supplyCompany = new SupplyCompany();
|
|
|
supplyCompany.setSupplyCompCd(goods.getSupplyCompCd());
|
|
|
@@ -4153,7 +4152,7 @@ public class TssGoodsService {
|
|
|
* @since 2021. 06. 17
|
|
|
*/
|
|
|
public Collection<Itemkind> getItemkindList(Itemkind itemkind) {
|
|
|
- log.info("itemkind ={}" , itemkind);
|
|
|
+ log.info("itemkind ={}", itemkind);
|
|
|
return goodsDao.getItemkindList(itemkind);
|
|
|
}
|
|
|
|
|
|
@@ -4194,7 +4193,7 @@ public class TssGoodsService {
|
|
|
goods.setSelfGoodsYn("Y");
|
|
|
goods.setGoodsType("G056_N");
|
|
|
goods.setTobeFormYn("Y");
|
|
|
-
|
|
|
+
|
|
|
// <,> replace 처리
|
|
|
goods.setRegNo(TssSession.getInfo().getUserNo());
|
|
|
goods.setUpdNo(TssSession.getInfo().getUserNo());
|
|
|
@@ -4223,7 +4222,7 @@ public class TssGoodsService {
|
|
|
goods.setCurrPrice(0); // 기본처리
|
|
|
// 원가
|
|
|
goods.setCostPrice(0); // 기본처리
|
|
|
-
|
|
|
+
|
|
|
// 판매수수료율
|
|
|
SupplyCompany supplyCompany = new SupplyCompany();
|
|
|
supplyCompany.setSupplyCompCd(goods.getSupplyCompCd());
|
|
|
@@ -4337,7 +4336,7 @@ public class TssGoodsService {
|
|
|
goodsColorSize.setUpdNo(TssSession.getInfo().getUserNo());
|
|
|
goodsDao.updateGoodsMainColorCd(goodsColorSize); // 대표색상 설정
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 상품상세정보 저장
|
|
|
this.saveGoodsDetailDesc(goods);
|
|
|
|
|
|
@@ -4349,4 +4348,15 @@ public class TssGoodsService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 상품기본이미지명 조회
|
|
|
+ *
|
|
|
+ * @param notice
|
|
|
+ * @return
|
|
|
+ * @author eskim
|
|
|
+ * @since 2021. 07. 25
|
|
|
+ */
|
|
|
+ public String getGoodsDefaultImageName(GoodsImg goodsImg) {
|
|
|
+ return goodsDao.getGoodsDefaultImageName(goodsImg);
|
|
|
+ }
|
|
|
}
|