|
|
@@ -31,7 +31,7 @@ public class YanShiKeAlarmPushServiceImpl implements IAlarmPushService{
|
|
|
public void pushAlarmMsg(BusDeviceAlarmEntity entity) {
|
|
|
String msg=errorMsg(entity);
|
|
|
List<String> staffCodeList = getStaffCodeList();
|
|
|
- if(CollectionUtil.isNotEmpty(staffCodeList)){
|
|
|
+ if(CollectionUtil.isEmpty(staffCodeList)){
|
|
|
//没有设置值班人员工号
|
|
|
return;
|
|
|
}
|
|
|
@@ -91,7 +91,7 @@ public class YanShiKeAlarmPushServiceImpl implements IAlarmPushService{
|
|
|
}
|
|
|
|
|
|
private String errorMsg(BusDeviceAlarmEntity entity){
|
|
|
- String alarmPattern="设备号:%s,住院号:%s,报警信息:%";
|
|
|
+ String alarmPattern="设备号:%s,住院号:%s,报警信息:%s";
|
|
|
return String.format(alarmPattern,entity.getDeviceId(),entity.getPatientCode(),entity.getAlarmState().getText());
|
|
|
}
|
|
|
|