Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -375,8 +375,8 @@ public class BOOrderService {
|
||||
|
||||
// 금액 조건
|
||||
if ("Y".equals(itemAmtCndUseAt)) {
|
||||
// subSlepric(금액)이 무료배송 금액조건보다 클 경우 [상품 기준]
|
||||
if (subSlepric.compareTo(itemAmtCndAditAmt) > 0) {
|
||||
// subSlepric(금액)이 무료배송 금액조건보다 크거나 같을 경우 [상품 기준]
|
||||
if (subSlepric.compareTo(itemAmtCndAditAmt) >= 0) {
|
||||
itemDlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
}
|
||||
@@ -385,8 +385,8 @@ public class BOOrderService {
|
||||
if ("Y".equals(itemCntCndUseAt)) {
|
||||
BigDecimal qy = new BigDecimal(String.valueOf(goodsMap.get("qy"))); // 수량
|
||||
|
||||
// qy(수량)이 무료배송 수량조건보다 클 경우 [상품 기준]
|
||||
if (qy.compareTo(itemCntCndAditAmt) > 0) {
|
||||
// qy(수량)이 무료배송 수량조건보다 크거나 같을 경우 [상품 기준]
|
||||
if (qy.compareTo(itemCntCndAditAmt) >= 0) {
|
||||
itemDlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2215,7 +2215,7 @@ public class BOPurchsService {
|
||||
// BigDecimal amtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt"); // 금액조건 추가금액
|
||||
BigDecimal slepric = (BigDecimal) goodsMap.get("subSlepric"); // 판매가 * 수량
|
||||
|
||||
if (slepric.compareTo(amtCndAditAmt) > 0) {
|
||||
if (slepric.compareTo(amtCndAditAmt) >= 0) {
|
||||
dlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
// else {
|
||||
@@ -2229,7 +2229,7 @@ public class BOPurchsService {
|
||||
// BigDecimal cntCndAditAmt = (BigDecimal) shippingGrouping.get("cntCndAditAmt"); // 금액조건 추가금액
|
||||
BigDecimal qy = (BigDecimal) goodsMap.get("qy"); // 수량
|
||||
|
||||
if (qy.compareTo(cntCndAditAmt) > 0) {
|
||||
if (qy.compareTo(cntCndAditAmt) >= 0) {
|
||||
dlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
// else {
|
||||
@@ -2519,7 +2519,7 @@ public class BOPurchsService {
|
||||
BigDecimal amtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt"); // 금액조건 추가금액
|
||||
BigDecimal slepric = (BigDecimal) goodsMap.get("subSlepric"); // 판매가 * 수량
|
||||
|
||||
if (slepric.compareTo(amtCndAditAmt) > 0) {
|
||||
if (slepric.compareTo(amtCndAditAmt) >= 0) {
|
||||
dlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
}
|
||||
@@ -2528,7 +2528,7 @@ public class BOPurchsService {
|
||||
BigInteger cntCndAditAmt = (BigInteger) shippingGrouping.get("cntCndAditAmt"); // 금액조건 추가금액
|
||||
BigInteger qy = (BigInteger) goodsMap.get("qy"); // 수량
|
||||
|
||||
if (cntCndAditAmt.intValue() < qy.intValue()) {
|
||||
if (cntCndAditAmt.intValue() <= qy.intValue()) {
|
||||
dlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
}
|
||||
@@ -2544,7 +2544,7 @@ public class BOPurchsService {
|
||||
if (bundleDlvyCndAmt != null && bundleDlvyCndAmt.intValue() > 0) {
|
||||
BigDecimal subSlepric = goodsByDlvyGroupList.stream().map(o -> (BigDecimal) o.get("subSlepric")).reduce(BigDecimal.ZERO, BigDecimal::add); // 합 (판매가 * 수량)
|
||||
|
||||
if (subSlepric.compareTo(bundleDlvyCndAmt) > 0) {
|
||||
if (subSlepric.compareTo(bundleDlvyCndAmt) >= 0) {
|
||||
dlvyAmt = new BigDecimal(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user