bug
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user