增加使用场景, 给大模型分析师提供依据。
This commit is contained in:
@@ -1179,6 +1179,7 @@ public class AudioFileController {
|
||||
segment.setSalesName(deviceManagement.getSalesName());
|
||||
segment.setDealershipId(deviceManagement.getDealershipId());
|
||||
segment.setDealershipName(deviceManagement.getDealershipName());
|
||||
segment.setScenario(deviceManagement.getScenario());
|
||||
}
|
||||
|
||||
// 5. 从requestBody和processedData中提取字段
|
||||
@@ -1403,6 +1404,11 @@ public class AudioFileController {
|
||||
if (processedData != null) {
|
||||
segment.setChunkIndex(extractStringField(processedData, "chunkIndex"));
|
||||
}
|
||||
|
||||
String scenario = extractStringField(requestBody, "scenario");
|
||||
if (scenario != null) {
|
||||
segment.setScenario(scenario);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -562,7 +562,9 @@ public class AudioManagementSegmentsController {
|
||||
@Parameter(description = "上传状态")
|
||||
@RequestParam(required = false) String uploadStatus,
|
||||
@Parameter(description = "同步状态")
|
||||
@RequestParam(required = false) String syncStatus) {
|
||||
@RequestParam(required = false) String syncStatus,
|
||||
@Parameter(description = "场景")
|
||||
@RequestParam(required = false) String scenario) {
|
||||
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
try {
|
||||
@@ -593,6 +595,9 @@ public class AudioManagementSegmentsController {
|
||||
if (syncStatus != null && !syncStatus.trim().isEmpty()) {
|
||||
queryWrapper.eq(AudioManagementSegments::getSyncStatus, syncStatus);
|
||||
}
|
||||
if (scenario != null && !scenario.trim().isEmpty()) {
|
||||
queryWrapper.eq(AudioManagementSegments::getScenario, scenario);
|
||||
}
|
||||
|
||||
// 按创建时间倒序排列
|
||||
queryWrapper.orderByDesc(AudioManagementSegments::getCreateTime);
|
||||
|
||||
@@ -136,6 +136,8 @@ public class DeviceManagementController {
|
||||
@RequestParam(required = false) String dealershipId,
|
||||
@Parameter(description = "绑定状态")
|
||||
@RequestParam(required = false) Boolean bindStatus,
|
||||
@Parameter(description = "场景")
|
||||
@RequestParam(required = false) String scenario,
|
||||
@Parameter(description = "电话")
|
||||
@RequestParam(required = false) String salesPhone) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
@@ -153,6 +155,9 @@ public class DeviceManagementController {
|
||||
if (bindStatus != null) {
|
||||
queryWrapper.eq(DeviceManagement::getBindStatus, bindStatus);
|
||||
}
|
||||
if (scenario != null && !scenario.trim().isEmpty()) {
|
||||
queryWrapper.eq(DeviceManagement::getScenario, scenario);
|
||||
}
|
||||
if (salesPhone != null && !salesPhone.trim().isEmpty()) {
|
||||
queryWrapper.eq(DeviceManagement::getSalesPhone, salesPhone);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user