Commit 6ba86919 by 罗志长

fix: 平台端小程序告警详情返回设备类型

parent 239dc580
......@@ -256,6 +256,12 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
if(StringUtils.isNotBlank(vo.getAlarmId())) {
JoinUtil.join(Arrays.asList(vo), platAlarmConfigService, PlatAlarmRecordVO::getAlarmId, BaseEntity::getId, (t, m) -> t.setNotifyRelation(m.getNotifyRelation()));
}
if(StringUtils.isNotBlank(vo.getDeviceId())) {
PlatDevice platDevice = platDeviceService.getById(vo.getDeviceId());
if (platDevice != null) {
vo.setDeviceCategory(platDevice.getCategory());
}
}
return vo;
}
......
......@@ -76,4 +76,6 @@ public class PlatAlarmRecordVO extends BaseTenantDTO {
private Boolean isUnWechatRead;
@ApiModelProperty(value = "是否存在未处理")
private Boolean statusFlag;
@ApiModelProperty(value = "设备类型 0-呼吸心率雷达 1-空间人体雷达 2-跌倒检测雷达")
private String deviceCategory;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment