提交代码

dev
胡锐 4 months ago
parent 00d8d3ebc2
commit fec9c9d68e
  1. 5
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java

@ -250,9 +250,14 @@ public class BsOrderServiceImpl implements BsOrderService {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂不支持多商户商品下单"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂不支持多商户商品下单");
} }
if (order.getPayRealPrice().compareTo(new BigDecimal("0")) <= 0) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "当前不支持0元购买");
}
// 订单入库 // 订单入库
editData(order); editData(order);
if (order.getOrderStatus().equals(OrderStatusEnum.status1.getCode())) { if (order.getOrderStatus().equals(OrderStatusEnum.status1.getCode())) {
// 10分钟内未支付,自动取消订单 // 10分钟内未支付,自动取消订单
Message<OrderModel> rocketMsg = MessageBuilder.withPayload(order).build(); Message<OrderModel> rocketMsg = MessageBuilder.withPayload(order).build();

Loading…
Cancel
Save