|
@ -174,8 +174,8 @@ public class RefundServiceImpl implements RefundService { |
|
|
userGoldRecord.setType((byte) 2); |
|
|
userGoldRecord.setType((byte) 2); |
|
|
userGoldRecord.setAuditStatus(0); |
|
|
userGoldRecord.setAuditStatus(0); |
|
|
userGoldRecord.setCreateTime(new Date()); |
|
|
userGoldRecord.setCreateTime(new Date()); |
|
|
List<ConsumeUser> list1 = consumeMapper.selectOrderCodeByJwcode(userGoldRecord); |
|
|
|
|
|
List<RechargeUser> list2 = rechargeMapper.selectOrderCodeByJwcode(userGoldRecord); |
|
|
|
|
|
|
|
|
List<ConsumeUser> list1 = consumeMapper.selectOrderCodeByJwcode(refundUser); |
|
|
|
|
|
List<RechargeUser> list2 = rechargeMapper.selectOrderCodeByJwcode(refundUser); |
|
|
if(Objects.equals(refundUser.getRefundType(), "商品退款")){ |
|
|
if(Objects.equals(refundUser.getRefundType(), "商品退款")){ |
|
|
//消费订单号校验 |
|
|
//消费订单号校验 |
|
|
if (list1 == null || list1.isEmpty()) { |
|
|
if (list1 == null || list1.isEmpty()) { |
|
@ -187,7 +187,8 @@ public class RefundServiceImpl implements RefundService { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
return Result.error("订单重复"); |
|
|
return Result.error("订单重复"); |
|
|
}}else{ |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
//充值订单号校验 |
|
|
//充值订单号校验 |
|
|
if (list2 == null || list2.isEmpty()) { |
|
|
if (list2 == null || list2.isEmpty()) { |
|
|
return Result.error("该用户没有该订单号"); |
|
|
return Result.error("该用户没有该订单号"); |
|
|