fix(doctor): 修正医生满意度统计中的回复数计算逻辑
- 排除音视频会话数,只统计文字回复数量 - 回复数计算结果取非负值避免出现负数 - 24小时回复率统计不再包含音视频会话 fix(watch): 修复手表设备绑定时的组织代码比较逻辑 - 修正绑定验证时使用正确的组织代码字段 - 防止因字段引用错误导致的绑定权限检查失败 refactor(watch): 将警告开关异步保存以提高系统稳定性 - 使用异步任务执行外部系统调用 - 避免外部系统异常影响主业务流程 - 解绑非必要操作以增强系统容错性
This commit is contained in:
+4
-1
@@ -353,7 +353,10 @@ public class ConDoctorServiceImpl extends ServiceImpl<ConDoctorMapper, ConDoctor
|
||||
}
|
||||
String userScore = conDoctorSatisfy.getUserScore();
|
||||
String userScoreNum = conDoctorSatisfy.getUserScoreNum();
|
||||
String replyNum = conDoctorSatisfy.getReplyNum();
|
||||
// 回复数排除音视频会话数(音视频为实时通话,不计入文字回复统计),结果取非负值
|
||||
int replyNumVal = Math.max(Integer.parseInt(conDoctorSatisfy.getReplyNum()) - item.getAudioVideo(), 0);
|
||||
String replyNum = String.valueOf(replyNumVal);
|
||||
//24小时回复率不计算音视频
|
||||
String messageNum = conDoctorSatisfy.getMessageNum();
|
||||
|
||||
String a = conDoctorApiService.averageJudgment(item.getId(), new BigDecimal(userScore), new BigDecimal(userScoreNum));
|
||||
|
||||
Reference in New Issue
Block a user