Commit 91ad7d2b by 朱淼

更新代码

parent ac22fc92
......@@ -77,7 +77,6 @@ public class PlatAlarmRecord extends BaseBusEntity {
//异常说明
private String remark;
@TableField(exist = false)
private String elderName;
//异常值
......@@ -89,6 +88,7 @@ public class PlatAlarmRecord extends BaseBusEntity {
private Long valueTime;
}
......@@ -63,6 +63,7 @@ public class DemoDeviceTask {
if(dto.getAttribute()!=null && "personState".equals(dto.getAttribute().getAttributeCode())){
if("1".equals(dto.getValue())){
PlatAlarmRecord alarmRecord = new PlatAlarmRecord();
alarmRecord.setElderName(name);
alarmRecord.setAlarmType(PlatAlarmConfigEnum.AlarmTypeEnum.FALL.getValue());
alarmRecord.setContent(name+"在房间内跌倒,请及时处理");
alarmRecord.setStatus(PlatAlarmRecordEnum.AlarmRecordStatusEnum.UNHANDLED.getValue());
......@@ -83,6 +84,7 @@ public class DemoDeviceTask {
if(dto.getAttribute()!=null && "personState".equals(dto.getAttribute().getAttributeCode())){
if("1".equals(dto.getValue()) && !record.getValueTime().equals(dto.getValueTime())){
PlatAlarmRecord alarmRecord = new PlatAlarmRecord();
alarmRecord.setElderName(name);
alarmRecord.setAlarmType(PlatAlarmConfigEnum.AlarmTypeEnum.FALL.getValue());
alarmRecord.setContent(name+"在房间内跌倒,请及时处理");
alarmRecord.setStatus(PlatAlarmRecordEnum.AlarmRecordStatusEnum.UNHANDLED.getValue());
......
......@@ -47,6 +47,9 @@ public class PlatAlarmRecordVO extends BaseTenantDTO {
@ApiModelProperty(value = "处理人")
private String dealUser;
@ApiModelProperty(value = "老人姓名")
private String elderName;
@ApiModelProperty(value = "处理时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime dealDate;
......
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