|
@@ -55,10 +55,7 @@ import com.zhongzheng.modules.grade.vo.ClassGradeVo;
|
|
|
import com.zhongzheng.modules.inform.service.IInformRemindService;
|
|
|
import com.zhongzheng.modules.inform.service.IInformUserService;
|
|
|
import com.zhongzheng.modules.order.bo.*;
|
|
|
-import com.zhongzheng.modules.order.domain.Order;
|
|
|
-import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
|
-import com.zhongzheng.modules.order.domain.OrderInput;
|
|
|
-import com.zhongzheng.modules.order.domain.OrderPay;
|
|
|
+import com.zhongzheng.modules.order.domain.*;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
|
import com.zhongzheng.modules.order.service.*;
|
|
|
import com.zhongzheng.modules.order.vo.*;
|
|
@@ -97,6 +94,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
@Autowired
|
|
|
private IOrderGoodsService iOrderGoodsService;
|
|
|
@Autowired
|
|
|
+ private IOrderGoodsRefundService iOrderGoodsRefundService;
|
|
|
+ @Autowired
|
|
|
private IGoodsService iGoodsService;
|
|
|
@Autowired
|
|
|
private IClassGradeService iClassGradeService;
|
|
@@ -1354,6 +1353,14 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
if (orderGoodsVo.getGoodsRealPrice() != null) {
|
|
|
totalPrice = totalPrice.add(orderGoodsVo.getGoodsRealPrice());
|
|
|
}
|
|
|
+ //审核状态
|
|
|
+ List<OrderGoodsRefund> refundList = iOrderGoodsRefundService
|
|
|
+ .list(new LambdaQueryWrapper<OrderGoodsRefund>()
|
|
|
+ .eq(OrderGoodsRefund::getOrderGoodsId, orderGoodsVo.getOrderGoodsId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(refundList)){
|
|
|
+ OrderGoodsRefund refund = refundList.stream().filter(item -> item.getPeriodStatus() != -1 && item.getPeriodStatus() != -2).findFirst().orElse(null);
|
|
|
+ orderGoodsVo.setPeriodStatus(ObjectUtils.isNotNull(refund)?refund.getPeriodStatus():null);
|
|
|
+ }
|
|
|
}
|
|
|
orderListVo.setOrderGoodsList(list);
|
|
|
orderListVo.setTotalPrice(totalPrice);
|