|  |  | 
 |  |  |             orderItems.setTitle(environmentalInfo.getTitle()); | 
 |  |  |             orderItems.setPrice(new BigDecimal(environmentalInfo.getPrice())); | 
 |  |  |             BigDecimal total = orderItems.getPrice().multiply(BigDecimal.valueOf(40)).multiply(weight); | 
 |  |  |             log.info("======>{}, {}, {}", total, orderItems.getPrice(), weight); | 
 |  |  |             orderItems.setScore(total.setScale(0, BigDecimal.ROUND_DOWN).toString()); | 
 |  |  |             orderItems.setWeight(weight); | 
 |  |  |             jhyOrderItemsMapper.insert(orderItems); | 
 |  |  |  | 
 |  |  |             totalScore = totalScore.add(total); | 
 |  |  |             log.info("=====>>>{}", totalScore); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         JhyOrder order = jhyOrderMapper.selectByPrimaryKey(confirmDto.getOrderId()); |