|
@@ -781,15 +781,27 @@ public class LawyerConsultationOrderServiceImpl extends ServiceImpl<LawyerConsul
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-// voPage.get
|
|
|
|
|
|
|
+
|
|
|
//订单总数
|
|
//订单总数
|
|
|
- resultMap.put("lawyerOrderCount", 0);
|
|
|
|
|
- //进行中数据
|
|
|
|
|
- resultMap.put("lawyerInProgressOrderCount", 0);
|
|
|
|
|
- //已完成数据
|
|
|
|
|
- resultMap.put("lawyerCompleteOrderCount", 0);
|
|
|
|
|
|
|
+ resultMap.put("lawyerOrderCount", voPage.getTotal());
|
|
|
|
|
|
|
|
|
|
+ //进行中数据
|
|
|
|
|
+ LambdaQueryWrapper<LawyerConsultationOrder> lawyerConsultationOrderLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getLawyerUserId, lawyerId);
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getDeleteFlag, 0);
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getOrderStatus, LawyerStatusEnum.INPROGRESS.getStatus());
|
|
|
|
|
+ int inProgressCount = consultationOrderMapper.selectCount(lawyerConsultationOrderLambdaQueryWrapper);
|
|
|
|
|
+ resultMap.put("lawyerInProgressOrderCount", inProgressCount);
|
|
|
|
|
|
|
|
|
|
+ //已完成数据
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getLawyerUserId, lawyerId);
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getDeleteFlag, 0);
|
|
|
|
|
+ lawyerConsultationOrderLambdaQueryWrapper.eq(LawyerConsultationOrder::getOrderStatus, LawyerStatusEnum.COMPLETE.getStatus());
|
|
|
|
|
+ int completeCount = consultationOrderMapper.selectCount(lawyerConsultationOrderLambdaQueryWrapper);
|
|
|
|
|
+ resultMap.put("lawyerCompleteOrderCount", completeCount);
|
|
|
|
|
+
|
|
|
|
|
+ resultMap.put("lawyerConsultationOrderList", voPage.getRecords());
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
|
|
|