完成在小程序端的功能

This commit is contained in:
zhonghua1
2026-01-05 21:42:48 +08:00
parent 8f35c605d1
commit 34cd6275b7
4 changed files with 44 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
package com.rj.service;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.AudioManagementSegments;
@@ -12,5 +14,8 @@ import com.rj.entity.AudioManagementSegments;
*/
public interface IAudioManagementSegmentsService extends IService<AudioManagementSegments> {
@InterceptorIgnore(tenantLine = "true") // 禁用多租户拦截
public boolean updateNoTenant(AudioManagementSegments entity,
LambdaUpdateWrapper<AudioManagementSegments> updateWrapper) ;
}

View File

@@ -1,5 +1,7 @@
package com.rj.service.impl;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rj.entity.AudioManagementSegments;
import com.rj.mapper.AudioManagementSegmentsMapper;
@@ -17,6 +19,12 @@ import org.springframework.stereotype.Service;
public class AudioManagementSegmentsServiceImpl
extends ServiceImpl<AudioManagementSegmentsMapper, AudioManagementSegments>
implements IAudioManagementSegmentsService {
@Override
@InterceptorIgnore(tenantLine = "true") // 禁用多租户拦截
public boolean updateNoTenant(AudioManagementSegments entity,
LambdaUpdateWrapper<AudioManagementSegments> updateWrapper) {
return super.update(entity, updateWrapper);
}
}

View File

@@ -383,7 +383,7 @@ public class TtsRequestLogServiceImpl implements ITtsRequestLogService {
try {
// 从transcriptionUrl下载识别结果
String transcriptionResult = downloadTranscriptionResult(taskResult.getTranscriptionUrl());
log.info("transcriptionResult: {}" , transcriptionResult);
// log.info("transcriptionResult: {}" , transcriptionResult);
if (transcriptionResult != null && !transcriptionResult.trim().isEmpty()) {
// 解析transcription结果JSON