挡位设置

This commit is contained in:
tianfeng 2025-12-05 18:41:34 +08:00
parent 9eaacf2f60
commit ca06d12209

View File

@ -105,8 +105,8 @@ public class SendFreightShipCmdExe {
FreightBalance freightBalance = freightBalanceService.getById(cmd.getReqUserId()); FreightBalance freightBalance = freightBalanceService.getById(cmd.getReqUserId());
ResponseAssert.notNull(FreightErrorCode.NOT_FREIGHT, freightBalance); ResponseAssert.notNull(FreightErrorCode.NOT_FREIGHT, freightBalance);
Long result = 0L; long result = cmd.getQuantity().divide(new BigDecimal(10000), RoundingMode.DOWN).setScale(0, RoundingMode.DOWN).longValue();
ResponseAssert.isTrue(FreightErrorCode.NOT_THRESHOLD, result > Optional.ofNullable(freightBalance.getDeliveryThreshold()).orElse(0)); ResponseAssert.isTrue(FreightErrorCode.NOT_THRESHOLD, result >= Optional.ofNullable(freightBalance.getDeliveryThreshold()).orElse(0));
// 支付密码效验 // 支付密码效验
checkPayPassword(cmd); checkPayPassword(cmd);