增加使用场景, 给大模型分析师提供依据。
This commit is contained in:
@@ -1179,6 +1179,7 @@ public class AudioFileController {
|
|||||||
segment.setSalesName(deviceManagement.getSalesName());
|
segment.setSalesName(deviceManagement.getSalesName());
|
||||||
segment.setDealershipId(deviceManagement.getDealershipId());
|
segment.setDealershipId(deviceManagement.getDealershipId());
|
||||||
segment.setDealershipName(deviceManagement.getDealershipName());
|
segment.setDealershipName(deviceManagement.getDealershipName());
|
||||||
|
segment.setScenario(deviceManagement.getScenario());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5. 从requestBody和processedData中提取字段
|
// 5. 从requestBody和processedData中提取字段
|
||||||
@@ -1403,6 +1404,11 @@ public class AudioFileController {
|
|||||||
if (processedData != null) {
|
if (processedData != null) {
|
||||||
segment.setChunkIndex(extractStringField(processedData, "chunkIndex"));
|
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 = "上传状态")
|
@Parameter(description = "上传状态")
|
||||||
@RequestParam(required = false) String uploadStatus,
|
@RequestParam(required = false) String uploadStatus,
|
||||||
@Parameter(description = "同步状态")
|
@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<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
try {
|
try {
|
||||||
@@ -593,6 +595,9 @@ public class AudioManagementSegmentsController {
|
|||||||
if (syncStatus != null && !syncStatus.trim().isEmpty()) {
|
if (syncStatus != null && !syncStatus.trim().isEmpty()) {
|
||||||
queryWrapper.eq(AudioManagementSegments::getSyncStatus, syncStatus);
|
queryWrapper.eq(AudioManagementSegments::getSyncStatus, syncStatus);
|
||||||
}
|
}
|
||||||
|
if (scenario != null && !scenario.trim().isEmpty()) {
|
||||||
|
queryWrapper.eq(AudioManagementSegments::getScenario, scenario);
|
||||||
|
}
|
||||||
|
|
||||||
// 按创建时间倒序排列
|
// 按创建时间倒序排列
|
||||||
queryWrapper.orderByDesc(AudioManagementSegments::getCreateTime);
|
queryWrapper.orderByDesc(AudioManagementSegments::getCreateTime);
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ public class DeviceManagementController {
|
|||||||
@RequestParam(required = false) String dealershipId,
|
@RequestParam(required = false) String dealershipId,
|
||||||
@Parameter(description = "绑定状态")
|
@Parameter(description = "绑定状态")
|
||||||
@RequestParam(required = false) Boolean bindStatus,
|
@RequestParam(required = false) Boolean bindStatus,
|
||||||
|
@Parameter(description = "场景")
|
||||||
|
@RequestParam(required = false) String scenario,
|
||||||
@Parameter(description = "电话")
|
@Parameter(description = "电话")
|
||||||
@RequestParam(required = false) String salesPhone) {
|
@RequestParam(required = false) String salesPhone) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
@@ -153,6 +155,9 @@ public class DeviceManagementController {
|
|||||||
if (bindStatus != null) {
|
if (bindStatus != null) {
|
||||||
queryWrapper.eq(DeviceManagement::getBindStatus, bindStatus);
|
queryWrapper.eq(DeviceManagement::getBindStatus, bindStatus);
|
||||||
}
|
}
|
||||||
|
if (scenario != null && !scenario.trim().isEmpty()) {
|
||||||
|
queryWrapper.eq(DeviceManagement::getScenario, scenario);
|
||||||
|
}
|
||||||
if (salesPhone != null && !salesPhone.trim().isEmpty()) {
|
if (salesPhone != null && !salesPhone.trim().isEmpty()) {
|
||||||
queryWrapper.eq(DeviceManagement::getSalesPhone, salesPhone);
|
queryWrapper.eq(DeviceManagement::getSalesPhone, salesPhone);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,10 @@ public class AudioManagementSegments implements Serializable {
|
|||||||
@TableField("dealership_name")
|
@TableField("dealership_name")
|
||||||
private String dealershipName;
|
private String dealershipName;
|
||||||
|
|
||||||
|
@Schema(description = "场景")
|
||||||
|
@TableField("scenario")
|
||||||
|
private String scenario;
|
||||||
|
|
||||||
@Schema(description = "上传状态")
|
@Schema(description = "上传状态")
|
||||||
@TableField("upload_status")
|
@TableField("upload_status")
|
||||||
private String uploadStatus;
|
private String uploadStatus;
|
||||||
|
|||||||
@@ -102,6 +102,10 @@ public class DeviceManagement implements Serializable {
|
|||||||
@TableField("project_name")
|
@TableField("project_name")
|
||||||
private String projectName;
|
private String projectName;
|
||||||
|
|
||||||
|
@Schema(description = "场景")
|
||||||
|
@TableField("scenario")
|
||||||
|
private String scenario;
|
||||||
|
|
||||||
@Schema(description = "绑定状态(1已绑定 0未绑定)")
|
@Schema(description = "绑定状态(1已绑定 0未绑定)")
|
||||||
@TableField("bind_status")
|
@TableField("bind_status")
|
||||||
private Boolean bindStatus;
|
private Boolean bindStatus;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.rj.pojo.sys;
|
package com.rj.pojo.sys;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAlias;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -15,7 +16,8 @@ import jakarta.validation.constraints.NotBlank;
|
|||||||
@Schema(description = "登录请求")
|
@Schema(description = "登录请求")
|
||||||
public class LoginRequest {
|
public class LoginRequest {
|
||||||
|
|
||||||
@Schema(description = "用户名", required = true, example = "admin")
|
@Schema(description = "用户名(支持 userName / username / loginAccount)", required = true, example = "admin")
|
||||||
|
@JsonAlias({"username", "loginAccount"})
|
||||||
@NotBlank(message = "用户名不能为空")
|
@NotBlank(message = "用户名不能为空")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
server:
|
||||||
|
port: 8091
|
||||||
# 应用时区配置
|
# 应用时区配置
|
||||||
app:
|
app:
|
||||||
timezone: Asia/Shanghai
|
timezone: Asia/Shanghai
|
||||||
@@ -238,8 +239,7 @@ swagger:
|
|||||||
api:
|
api:
|
||||||
base-url: http://localhost:8091
|
base-url: http://localhost:8091
|
||||||
# http://localhost:9060/swagger-ui/index.html?urls.primaryName=public-api
|
# http://localhost:9060/swagger-ui/index.html?urls.primaryName=public-api
|
||||||
server:
|
|
||||||
port: 8091
|
|
||||||
|
|
||||||
# Dify API 配置
|
# Dify API 配置
|
||||||
dify:
|
dify:
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
<result column="intention_level" property="intentionLevel"/>
|
<result column="intention_level" property="intentionLevel"/>
|
||||||
<result column="dealership_id" property="dealershipId"/>
|
<result column="dealership_id" property="dealershipId"/>
|
||||||
<result column="dealership_name" property="dealershipName"/>
|
<result column="dealership_name" property="dealershipName"/>
|
||||||
|
<result column="scenario" property="scenario"/>
|
||||||
<result column="upload_status" property="uploadStatus"/>
|
<result column="upload_status" property="uploadStatus"/>
|
||||||
<result column="sync_status" property="syncStatus"/>
|
<result column="sync_status" property="syncStatus"/>
|
||||||
<result column="is_merged" property="isMerged"/>
|
<result column="is_merged" property="isMerged"/>
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
intention_level,
|
intention_level,
|
||||||
dealership_id,
|
dealership_id,
|
||||||
dealership_name,
|
dealership_name,
|
||||||
|
scenario,
|
||||||
upload_status,
|
upload_status,
|
||||||
sync_status,
|
sync_status,
|
||||||
is_merged,
|
is_merged,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<result column="bind_user_name" property="bindUserName" />
|
<result column="bind_user_name" property="bindUserName" />
|
||||||
<result column="project_id" property="projectId" />
|
<result column="project_id" property="projectId" />
|
||||||
<result column="project_name" property="projectName" />
|
<result column="project_name" property="projectName" />
|
||||||
|
<result column="scenario" property="scenario" />
|
||||||
<result column="sales_name" property="salesName" />
|
<result column="sales_name" property="salesName" />
|
||||||
<result column="sales_phone" property="salesPhone" />
|
<result column="sales_phone" property="salesPhone" />
|
||||||
<result column="bind_status" property="bindStatus" />
|
<result column="bind_status" property="bindStatus" />
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, tenant_id, tenant_code, device_code, dealership_id, dealership_name, last_online_time, last_power_on_time, last_power_off_time, wifi_name, unuploaded_count, storage_size, storage_used, remaining_battery, charging_status, bind_user_id, bind_user_name, project_id, project_name, sales_name, sales_phone, bind_status, create_time, update_time
|
id, tenant_id, tenant_code, device_code, dealership_id, dealership_name, last_online_time, last_power_on_time, last_power_off_time, wifi_name, unuploaded_count, storage_size, storage_used, remaining_battery, charging_status, bind_user_id, bind_user_name, project_id, project_name, scenario, sales_name, sales_phone, bind_status, create_time, update_time
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user