补充pa/pis系统设备状态
This commit is contained in:
parent
c9a504621b
commit
3b9de34033
|
@ -2,7 +2,7 @@
|
|||
create table audio_resources
|
||||
(
|
||||
id bigint auto_increment,
|
||||
name varchar(32) null comment '名称',
|
||||
name varchar(128) null comment '名称',
|
||||
`desc` varchar(256) null comment '描述',
|
||||
url varchar(256) not null comment '资源地址',
|
||||
create_time datetime not null comment '创建时间',
|
||||
|
|
|
@ -108,13 +108,30 @@ public class IscsInteractiveService {
|
|||
}
|
||||
|
||||
private String getState(Audio audio, IscsAudioResourceVO resourcesVO, SimulationMember member) {
|
||||
boolean dispatcher = member.isDispatcher();
|
||||
IscsSystem system = audio.getSystem();
|
||||
switch (system) {
|
||||
case PA:
|
||||
if (IscsSystemResourcesVO.Type.BGM.equals(resourcesVO.getType())) {
|
||||
return Audio.State.BGM;
|
||||
}
|
||||
if (dispatcher) {
|
||||
if (IscsSystemResourcesVO.Type.RECORDING.equals(resourcesVO.getType())) {
|
||||
return Audio.State.CENTER_NORMAL;
|
||||
} else if (IscsSystemResourcesVO.Type.EMERGENCY_RECORDING.equals(resourcesVO.getType())) {
|
||||
return Audio.State.CENTER_EMERGENCY;
|
||||
}
|
||||
} else {
|
||||
if (IscsSystemResourcesVO.Type.RECORDING.equals(resourcesVO.getType())) {
|
||||
return Audio.State.STATION_NORMAL;
|
||||
} else if (IscsSystemResourcesVO.Type.EMERGENCY_RECORDING.equals(resourcesVO.getType())) {
|
||||
return Audio.State.STATION_EMERGENCY;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PIS:
|
||||
return Audio.State.NORMAL;
|
||||
}
|
||||
return Audio.State.DISPATCHER_NORMAL;
|
||||
throw BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.exception("消息类型异常");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,12 +73,14 @@ public class Audio extends MapElement{
|
|||
//pa系统状态
|
||||
String NOT_USED = "0";
|
||||
String STATION_FIRE_FIGHTING = "1";
|
||||
String CENTER_EMERGENCY = "4";
|
||||
String CENTER_EMERGENCY = "4"; //中心紧急预录
|
||||
String STATION_SAY = "5"; //中心口播
|
||||
String STATION_EMERGENCY = "6"; //车站紧急预录
|
||||
String CHIEF_DISPATCHER_SAY = "7";
|
||||
String DISPATCHER_SAY = "8";
|
||||
String DISPATCHER_NORMAL = "9"; //中心普通预录
|
||||
String CENTER_NORMAL = "9"; //中心普通预录
|
||||
String STATION_NORMAL = "10"; //车站普通预录
|
||||
String BGM = "♬";
|
||||
|
||||
//pis系统状态
|
||||
String NORMAL = "normal";
|
||||
|
|
Loading…
Reference in New Issue