增加使用场景, 给大模型分析师提供依据。
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);
|
||||
}
|
||||
|
||||
@@ -93,6 +93,10 @@ public class AudioManagementSegments implements Serializable {
|
||||
@TableField("dealership_name")
|
||||
private String dealershipName;
|
||||
|
||||
@Schema(description = "场景")
|
||||
@TableField("scenario")
|
||||
private String scenario;
|
||||
|
||||
@Schema(description = "上传状态")
|
||||
@TableField("upload_status")
|
||||
private String uploadStatus;
|
||||
|
||||
@@ -102,6 +102,10 @@ public class DeviceManagement implements Serializable {
|
||||
@TableField("project_name")
|
||||
private String projectName;
|
||||
|
||||
@Schema(description = "场景")
|
||||
@TableField("scenario")
|
||||
private String scenario;
|
||||
|
||||
@Schema(description = "绑定状态(1已绑定 0未绑定)")
|
||||
@TableField("bind_status")
|
||||
private Boolean bindStatus;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.rj.pojo.sys;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAlias;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -15,7 +16,8 @@ import jakarta.validation.constraints.NotBlank;
|
||||
@Schema(description = "登录请求")
|
||||
public class LoginRequest {
|
||||
|
||||
@Schema(description = "用户名", required = true, example = "admin")
|
||||
@Schema(description = "用户名(支持 userName / username / loginAccount)", required = true, example = "admin")
|
||||
@JsonAlias({"username", "loginAccount"})
|
||||
@NotBlank(message = "用户名不能为空")
|
||||
private String userName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user