diff --git a/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java index ca78d4eb..a67520c7 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java @@ -70,15 +70,20 @@ public class ExpressFeeServiceImpl extends ServiceImpl= 0 && weight.compareTo(new BigDecimal(3)) < 0) { weightInterval = 1; additionalWeight = weight.subtract(new BigDecimal(1)); - } else if (weight.compareTo(new BigDecimal(3)) >= 0 && weight.compareTo(new BigDecimal(15)) < 0) { + } else if (weight.compareTo(new BigDecimal(3)) >= 0 && weight.compareTo(thridLevel) < 0) { weightInterval = 2; additionalWeight = weight.subtract(new BigDecimal(3)); } else { weightInterval = 3; - additionalWeight = weight.subtract(new BigDecimal(15)); + additionalWeight = weight.subtract(thridLevel); } QueryWrapper queryWrapper = new QueryWrapper<>(); if (!regionCode.startsWith("11") && !regionCode.startsWith("12") && !regionCode.startsWith("31") && !regionCode.startsWith("50")) { @@ -91,6 +96,7 @@ public class ExpressFeeServiceImpl extends ServiceImpl