This commit is contained in:
wangjinlei
2024-05-23 16:52:25 +08:00
parent b48cc27723
commit 3992f13fdf

View File

@@ -250,6 +250,11 @@ public class BuyOrderController {
totalPrice = totalPrice.subtract(buyOrder.getJfDeduction()==null?BigDecimal.ZERO:buyOrder.getJfDeduction()); totalPrice = totalPrice.subtract(buyOrder.getJfDeduction()==null?BigDecimal.ZERO:buyOrder.getJfDeduction());
if(buyOrder.getRealMoney().compareTo(totalPrice)!=0){
return R.error("系统错误订单金额异常!");
}
String orderSn = IdWorker.getTimeId().substring(0, 32); String orderSn = IdWorker.getTimeId().substring(0, 32);
buyOrder.setOrderSn(orderSn); buyOrder.setOrderSn(orderSn);
if(buyOrder.getAddressId()!=0){ if(buyOrder.getAddressId()!=0){