挡位设置
This commit is contained in:
parent
9eaacf2f60
commit
ca06d12209
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user