| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | |
| | | if(ll != null && ll.size() > 0){ |
| | | for(FlowerMarkupSpListDTO ss : ll){ |
| | | ss.setPrice(getFinalPriceForPartner(dto.getPartnerId(), ss.getCategory(), ss.getFlowerId(), ss.getPrice(), ss.getLevel())); |
| | | BigDecimal fee = ss.getFee(); |
| | | if (fee == null) { |
| | | fee = BigDecimal.ZERO; |
| | | } |
| | | ss.setSellPrice(ss.getPrice().add(fee)); |
| | | } |
| | | } |
| | | |
| | |
| | | if(ll != null && ll.size() > 0){ |
| | | for(FlowerMarkupSpListDTO ss : ll){ |
| | | ss.setPrice(getFinalPriceForPartner(dto.getPartnerId(), ss.getCategory(), ss.getFlowerId(), ss.getPrice(), ss.getLevel())); |
| | | BigDecimal fee = ss.getFee(); |
| | | if (fee == null) { |
| | | fee = BigDecimal.ZERO; |
| | | } |
| | | ss.setSellPrice(ss.getPrice().add(fee)); |
| | | } |
| | | } |
| | | |