|
@@ -237,12 +237,13 @@ public class TenantUnbindRecordServiceImpl extends ServiceImpl<TenantUnbindRecor
|
|
|
}
|
|
|
|
|
|
// 添加历史记录
|
|
|
- TenantUnbindHistory history = JSON.parseObject(JSON.toJSONString(unbindRecord), TenantUnbindHistory.class);
|
|
|
+ TenantUnbindRecord newRecord = tenantUnbindRecordService.getById(audio.getId());
|
|
|
+ TenantUnbindHistory history = JSON.parseObject(JSON.toJSONString(newRecord), TenantUnbindHistory.class);
|
|
|
history.setId(null);
|
|
|
tenantUnbindHistoryService.save(history);
|
|
|
|
|
|
// 老师端发送消息
|
|
|
- CompletableFuture.runAsync(() -> sendTeacherUnBindMessage(audio, unbindRecord));
|
|
|
+ CompletableFuture.runAsync(() -> sendTeacherUnBindMessage(audio, newRecord));
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|