|
|
@@ -313,6 +313,8 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
|
|
|
private final GroupsRelationNetflixService groupsRelationNetflixService;
|
|
|
|
|
|
+ private final OrderDonExceptionUserRecordMapper orderDonExceptionUserRecordMapper;
|
|
|
+
|
|
|
private final List<String> noChekGoodsTemp = List.of("Apple One", "Youtube", "Spotify");
|
|
|
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
@@ -1125,6 +1127,30 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //是否是河南濮阳ip 直接退款mj
|
|
|
+ if (orderDon.getGoodsId() == 26) {
|
|
|
+ OrderDonLocationRelate orderDonLocationRelate = orderDonLocationRelateMapper.selectOne(Wrappers.lambdaQuery(OrderDonLocationRelate.class)
|
|
|
+ .eq(OrderDonLocationRelate::getOrderId, orderDon.getId())
|
|
|
+ .last("limit 1"));
|
|
|
+ if (orderDonLocationRelate != null) {
|
|
|
+ String address = StringUtil.paidIpAddress(orderDonLocationRelate.getIp());
|
|
|
+ if (address.contains("濮阳")) {
|
|
|
+ log.info("该支付账号id:{} 河南濮阳ip 直接退款mj", buyerId);
|
|
|
+ notifyRefundOrder(orderDon, goodsDon, sku);
|
|
|
+ //记录
|
|
|
+ OrderDonExceptionUserRecord exceptionUserRecord = new OrderDonExceptionUserRecord();
|
|
|
+ exceptionUserRecord.setOrderId(orderDon.getId());
|
|
|
+ exceptionUserRecord.setUserId(orderDon.getUserId());
|
|
|
+ exceptionUserRecord.setBuyerId(orderDon.getBuyerId());
|
|
|
+ exceptionUserRecord.setIp(orderDonLocationRelate.getIp());
|
|
|
+ exceptionUserRecord.setAddress(address);
|
|
|
+ orderDonExceptionUserRecordMapper.insert(exceptionUserRecord);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// if (orderDon.getOrderType() == 1 && StrUtil.isNotEmpty(buyerId)) {
|
|
|
// //近一个月同一买家id 只能购买一次 多人
|
|
|
// if (orderDon.getGoodsId() == 26l && sku.getNum() != 1) {
|
|
|
@@ -1631,18 +1657,19 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
points = newReturnMoney.multiply(BigDecimal.valueOf(distributePointsExchangeMoney.getPoints())).divide(distributePointsExchangeMoney.getMoney(), 2, RoundingMode.HALF_DOWN);
|
|
|
distributeWaitingSendPoints.setPoints(points);
|
|
|
} else {
|
|
|
- DistributeExtraRebateConfig distributeExtraRebateConfig = distributeExtraRebateService.getRandomExtraRebate();
|
|
|
- if (distributeExtraRebateConfig != null) {
|
|
|
- BigDecimal multiple = distributeExtraRebateConfig.getMultiple();
|
|
|
- if (multiple.compareTo(BigDecimal.ONE) > 0) {
|
|
|
- //最终奖励
|
|
|
- BigDecimal finalPoints = points.multiply(multiple);
|
|
|
- distributeWaitingSendPoints.setPoints(finalPoints);
|
|
|
-
|
|
|
- distributeWaitingSendPoints.setExtraMultiple(multiple);
|
|
|
- distributeWaitingSendPoints.setExtraRebate(finalPoints.subtract(points));
|
|
|
- }
|
|
|
- }
|
|
|
+ //额外返利 去除
|
|
|
+// DistributeExtraRebateConfig distributeExtraRebateConfig = distributeExtraRebateService.getRandomExtraRebate();
|
|
|
+// if (distributeExtraRebateConfig != null) {
|
|
|
+// BigDecimal multiple = distributeExtraRebateConfig.getMultiple();
|
|
|
+// if (multiple.compareTo(BigDecimal.ONE) > 0) {
|
|
|
+// //最终奖励
|
|
|
+// BigDecimal finalPoints = points.multiply(multiple);
|
|
|
+// distributeWaitingSendPoints.setPoints(finalPoints);
|
|
|
+//
|
|
|
+// distributeWaitingSendPoints.setExtraMultiple(multiple);
|
|
|
+// distributeWaitingSendPoints.setExtraRebate(finalPoints.subtract(points));
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
distributeWaitingSendPointsMapper.insert(distributeWaitingSendPoints);
|