hby100j功能语音管理
This commit is contained in:
@ -51,4 +51,9 @@ public class AppBusinessFile extends TenantEntity {
|
||||
* 文件时长
|
||||
*/
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* 重命名
|
||||
*/
|
||||
private String reName;
|
||||
}
|
||||
|
||||
@ -51,4 +51,9 @@ public class AppBusinessFileBo extends BaseEntity {
|
||||
private List<Long> ids;
|
||||
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* 是否使用语音播报(0-否,1-是)
|
||||
*/
|
||||
private Integer useStatus;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
@ -29,4 +29,9 @@ public class AppFileVo {
|
||||
private String fileUrl;
|
||||
|
||||
private Integer duration;
|
||||
|
||||
/**
|
||||
* 扩展文件名称
|
||||
*/
|
||||
private String fileNameExt;
|
||||
}
|
||||
|
||||
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user