修改新疆大屏及小助手专家咨询量bug
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
+6
-3
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user