|
|
@@ -397,9 +397,9 @@ public class LawyerClientConsultationOrderServiceImpl extends ServiceImpl<Lawyer
|
|
|
|
|
|
// 提取所有律师ID,并加上lawyer_前缀
|
|
|
List<String> lawyerIdList = orderList.stream()
|
|
|
- .map(LawyerConsultationOrderVO::getLawyerPhone)
|
|
|
+ .map(LawyerConsultationOrderVO::getClientUserPhone)
|
|
|
.filter(Objects::nonNull)
|
|
|
- .map(phone -> "lawyer_" + phone)
|
|
|
+ .map(phone -> "user_" + phone)
|
|
|
.distinct()
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
@@ -426,7 +426,7 @@ public class LawyerClientConsultationOrderServiceImpl extends ServiceImpl<Lawyer
|
|
|
}
|
|
|
|
|
|
for(LawyerConsultationOrderVO lawyerConsultationOrderVO : voPage.getRecords()){
|
|
|
- String lawyerPhone = "user_" + lawyerConsultationOrderVO.getLawyerPhone();
|
|
|
+ String lawyerPhone = "user_" + lawyerConsultationOrderVO.getClientUserPhone();
|
|
|
if(!senderIdCountMap.isEmpty() && senderIdCountMap.containsKey(lawyerPhone) && lawyerConsultationOrderVO.getOrderStatus() == 2){
|
|
|
long messageCount = senderIdCountMap.get(lawyerPhone);
|
|
|
lawyerConsultationOrderVO.setUnreadMessage(messageCount);
|