hby100j功能语音管理

This commit is contained in:
2026-02-03 16:29:46 +08:00
parent ee445dc0d2
commit 696bbb4aa4
11 changed files with 506 additions and 6 deletions

View File

@ -51,4 +51,9 @@ public class AppBusinessFile extends TenantEntity {
* 文件时长
*/
private Integer duration;
/**
* 重命名
*/
private String reName;
}

View File

@ -51,4 +51,9 @@ public class AppBusinessFileBo extends BaseEntity {
private List<Long> ids;
private Integer duration;
/**
* 是否使用语音播报0-否1-是)
*/
private Integer useStatus;
}

View File

@ -0,0 +1,101 @@
package com.fuyuanshen.app.domain.vo;
import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class AppDeviceHBY100JDetailVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@ExcelProperty(value = "设备ID")
private Long deviceId;
/**
* 设备名称
*/
private String deviceName;
/**
* 设备IMEI
*/
private String deviceImei;
/**
* 设备MAC
*/
private String deviceMac;
/**
* 通讯方式 0:4G;1:蓝牙,2 4G&蓝牙
*/
private Integer communicationMode;
/**
* 设备图片
*/
private String devicePic;
/**
* 设备类型
*/
private String typeName;
/**
* 蓝牙名称
*/
private String bluetoothName;
//电量百分比
private String batteryPercentage;
//充电状态0没有充电1正在充电2为已充满
private String chargeState;
/**
* 在线状态(0离线1在线)
*/
private Integer onlineStatus;
// 经度
private String longitude;
// 纬度
private String latitude;
// 逆解析地址
private String address;
/**
* 告警状态(0解除告警1告警)
*/
private String alarmStatus;
// 亮度
private String lightBrightness;
// "voice_resource": 音频资源链接
private String voiceResource;
// 报警模式 0公安,1 消防,2应急,3交警4 市政5 铁路6 医疗7 部队8 水利
private String alarmMode;
// 强制报警开关: 0 关闭, 1开启
private String voiceStrobeAlarm;
// 警示灯LED亮度调节 红色
private String red;
// 警示灯LED亮度调节 蓝色
private String blue;
// 警示灯LED亮度调节 黄色
private String yellow;
}

View File

@ -29,4 +29,9 @@ public class AppFileVo {
private String fileUrl;
private Integer duration;
/**
* 扩展文件名称
*/
private String fileNameExt;
}

View File

@ -5,7 +5,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.fuyuanshen.app.mapper.AppBusinessFileMapper">
<select id="queryAppFileList" resultType="com.fuyuanshen.app.domain.vo.AppFileVo">
select a.id,a.business_id,a.file_id,a.file_type,b.file_name,b.url fileUrl,a.duration from app_business_file a left join sys_oss b on a.file_id = b.oss_id
select a.id,a.business_id,a.file_id,a.file_type,b.file_name,b.url fileUrl,a.duration,
CASE
WHEN a.re_name IS NULL THEN
SUBSTRING_INDEX(COALESCE(a.re_name, b.original_name), '.', 1)
ELSE
a.re_name
END AS fileNameExt
from app_business_file a left join sys_oss b on a.file_id = b.oss_id
where 1=1
<if test="businessId != null">
and a.business_id = #{businessId}