|
@@ -1113,23 +1113,23 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (orderDon.getOrderType() == 1 && StrUtil.isNotEmpty(buyerId)) {
|
|
|
|
|
- //近一个月同一买家id 只能购买一次 多人
|
|
|
|
|
- if (orderDon.getGoodsId() == 26l && sku.getNum() != 1) {
|
|
|
|
|
- Integer count = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
|
|
- .ne(OrderDon::getId, orderDon.getId())
|
|
|
|
|
- .eq(OrderDon::getGoodsId, orderDon.getGoodsId())
|
|
|
|
|
- .eq(OrderDon::getBuyerId, buyerId)
|
|
|
|
|
- .notIn(OrderDon::getStatus, Constant.noOrderAllStatus)
|
|
|
|
|
- .ge(OrderDon::getCreatedTime, DateUtil.offsetMonth(DateTime.now(), -1)));
|
|
|
|
|
- if (count > 1) {
|
|
|
|
|
- //退款
|
|
|
|
|
- log.info("一个月内同一买家id购买过Midjourney账号,对订单号:{}进行退款", orderDon.getOrderNo());
|
|
|
|
|
- notifyRefundOrder(orderDon, goodsDon, sku);
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (orderDon.getOrderType() == 1 && StrUtil.isNotEmpty(buyerId)) {
|
|
|
|
|
+// //近一个月同一买家id 只能购买一次 多人
|
|
|
|
|
+// if (orderDon.getGoodsId() == 26l && sku.getNum() != 1) {
|
|
|
|
|
+// Integer count = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
|
|
+// .ne(OrderDon::getId, orderDon.getId())
|
|
|
|
|
+// .eq(OrderDon::getGoodsId, orderDon.getGoodsId())
|
|
|
|
|
+// .eq(OrderDon::getBuyerId, buyerId)
|
|
|
|
|
+// .notIn(OrderDon::getStatus, Constant.noOrderAllStatus)
|
|
|
|
|
+// .ge(OrderDon::getCreatedTime, DateUtil.offsetMonth(DateTime.now(), -1)));
|
|
|
|
|
+// if (count > 1) {
|
|
|
|
|
+// //退款
|
|
|
|
|
+// log.info("一个月内同一买家id购买过Midjourney账号,对订单号:{}进行退款", orderDon.getOrderNo());
|
|
|
|
|
+// notifyRefundOrder(orderDon, goodsDon, sku);
|
|
|
|
|
+// return;
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
//回调
|
|
//回调
|
|
|
unifiedHandlerOrderNotify(orderDon, goodsDon, sku);
|
|
unifiedHandlerOrderNotify(orderDon, goodsDon, sku);
|
|
|
}
|
|
}
|