大赛管理功能

This commit is contained in:
tiger_zhou 2024-03-11 18:12:01 +08:00
parent d20fe5fd27
commit 352c44a280
2 changed files with 60 additions and 56 deletions

View File

@ -35,6 +35,7 @@ public class VoiceService {
/**
* 语音识别
*
* @param vo
* @return
*/
@ -48,6 +49,7 @@ public class VoiceService {
/**
* 语音合成
*
* @param vo
* @return
*/
@ -55,7 +57,8 @@ public class VoiceService {
String md5Code = vo.md5Code();
String fileName = String.format("%s.wav", md5Code);
if (Objects.equals(false, this.voiceSynthesisUtil.checkFileIsExist(fileName))) {
byte[] data = voiceService.voiceSynthesis(vo);
byte[] bytes = voiceService.voiceSynthesis(vo);
byte[] data = bytes;
this.uploadFile(voiceSynthesisUtil, data, fileName, SYNTHESIS_FOLDER);
}
String filePath = this.voiceSynthesisUtil.getDownLoadPath(fileName);
@ -64,6 +67,7 @@ public class VoiceService {
/**
* 语音合成返回原数据
*
* @param vo
* @return
*/

View File

@ -330,6 +330,6 @@
</foreach>
UNION all
select A.id,A.name,A.desc,A.content,A.standards,A.scene_id,A.score_rule_id as ruleId,A.parent_id from racetr_task A, task B where A.parent_id = B.id)
select A.id,A.name,A.desc,A.content,A.standards,A.score_rule_id as ruleId,A.parent_id,B.id as scene_id,B.type as sceneType from task A left join racetr_scene B on A.scene_id = B.id
select A.id,A.name,A.desc,A.content,A.standards,A.ruleId ,A.parent_id,B.id as scene_id,B.type as sceneType from task A left join racetr_scene B on A.scene_id = B.id
</select>
</mapper>