|
@@ -9,7 +9,6 @@ import java.util.List;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
-import org.apache.commons.lang3.ArrayUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.env.Environment;
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -659,6 +658,15 @@ public class TsfCartService {
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
// 다다익선 진행중이 아니면 장바구니 조회한 금액으로 설정
|
|
// 다다익선 진행중이 아니면 장바구니 조회한 금액으로 설정
|
|
|
|
|
+ // 다다익선 할인 정보 및 상품 정보 장바구니에 등록
|
|
|
|
|
+ for (Order cart : cartGoodsList) {
|
|
|
|
|
+ cart.setTmtbDcAmt(cart.getCurrPrice());
|
|
|
|
|
+ if (cart.getPntRate() > 0) {
|
|
|
|
|
+ cart.setSavePntAmt((int)(cart.getTmtbDcAmt() * cart.getPntRate() / 100.0));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ cart.setSavePntAmt(0);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 자사 / 입점업체 리스트 분리
|
|
// 자사 / 입점업체 리스트 분리
|