修改新疆大屏及小助手专家咨询量bug

This commit is contained in:
wanghao
2025-07-09 13:47:44 +08:00
parent 19addb4469
commit ec897c0567
10 changed files with 69 additions and 5 deletions
@@ -537,7 +537,8 @@
WHERE del_flag = 0
AND status = 1
AND tf_reply = 1
AND from_account IN
AND session_type = 1
AND to_account IN
<foreach item="id" collection="doctorIds" open="(" separator="," close=")">
#{id}
</foreach>
@@ -369,10 +369,13 @@ public class ConHelperServiceImpl extends ServiceImpl<ConHelperMapper, ConHelper
conHelperDoctorVO.setStatus(it.getDoctorStatus());
conHelperDoctorVO.setTimes("0");
if (CollectionUtils.isNotEmpty(conSessions)) {
List<ConSession> collect = conSessions.stream().filter(i -> i.getToAccount().equals(it.getId())).filter(Objects::nonNull).distinct().collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(collect)) {
conHelperDoctorVO.setTimes(String.valueOf(collect.size()));
int times = 0;
for (ConSession conSession : conSessions) {
if (conSession.getToAccount().equals(it.getId())) {
times++;
}
}
conHelperDoctorVO.setTimes(String.valueOf(times));
}
conHelperDoctorVOList.add(conHelperDoctorVO);
});