|
|
@@ -306,7 +306,7 @@ public class MintOrderService {
|
|
|
|
|
|
//销量
|
|
|
// mintActivityService.increaseSale(mintActivityId, 1);
|
|
|
- if (mintOrder.getGasPrice().equals(BigDecimal.ZERO)) {
|
|
|
+ if (mintOrder.getGasPrice().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
this.mintNotify(mintOrder.getId(), PayMethod.WEIXIN, null);
|
|
|
}
|
|
|
return mintOrder;
|
|
|
@@ -548,7 +548,7 @@ public class MintOrderService {
|
|
|
rocketMQTemplate.syncSend(generalProperties.getUpdateStockTopic(), order.getMintActivityId(), 10000);
|
|
|
log.info("取消订单{}", order.getId());
|
|
|
} catch (Exception e) {
|
|
|
- mintActivityService.decreaseStock(order.getMintActivityId(),1);
|
|
|
+ mintActivityService.decreaseStock(order.getMintActivityId(), 1);
|
|
|
log.error("订单取消错误 orderId: " + order.getId(), e);
|
|
|
}
|
|
|
releaseOrderLock(order.getId());
|