|
@@ -317,7 +317,7 @@ public class UserOrderRefundServiceImpl extends ServiceImpl<UserOrderRefundDao,
|
|
|
String join = StringUtil.join(detilIds, ",");
|
|
|
|
|
|
List<UserOrderRefund> list = list(Wrappers.<UserOrderRefund>lambdaQuery().eq(UserOrderRefund::getOrderNo, detail.getOrderNo()));
|
|
|
- if(!StringUtil.isEmpty(list)){
|
|
|
+ if(!CollectionUtils.isEmpty(list)){
|
|
|
return HttpResponseResult.failed("已经存在退款单");
|
|
|
}
|
|
|
|
|
@@ -332,7 +332,7 @@ public class UserOrderRefundServiceImpl extends ServiceImpl<UserOrderRefundDao,
|
|
|
save(orderRefunds);
|
|
|
|
|
|
for (UserOrderDetailVo vo : detail.getOrderDetailList()) {
|
|
|
- List<Long> collect = orderRefundReq.getOredrDetilIds().stream().filter(o -> o.equals(vo.getId())).collect(Collectors.toList());
|
|
|
+ List<Long> collect = detilIds.stream().filter(o -> o.equals(vo.getId())).collect(Collectors.toList());
|
|
|
if (CollectionUtils.isNotEmpty(collect)) {
|
|
|
Consumer<UserOrderDetailVo> refundAfterConsumer = refundAfter.get(vo.getGoodType());
|
|
|
if (!Objects.isNull(refundAfterConsumer)) {
|