fix
Helius
2021-07-22 a0a853c453da0bc9ca9cc256b32db4d72bcafc80
fix
1 files modified
2 ■■■■■ changed files
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java 2 ●●●●● patch | view | raw | blame | history
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
@@ -197,11 +197,13 @@
            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());