Commit c6c8fd63 authored by chenzhao's avatar chenzhao

修改bug

parent 72f2c460
...@@ -174,21 +174,24 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ ...@@ -174,21 +174,24 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
list = equipmentSpecificAlarmLogService.getIsConfirmByAlarmId(equipmentSpecificAlarmId, "0"); list = equipmentSpecificAlarmLogService.getIsConfirmByAlarmId(equipmentSpecificAlarmId, "0");
} }
} }
switch ( ent.getConfirmType()){
case "火警": if (ent.getType() != null){
ent.setType("FIREALARM"); switch ( ent.getType()){
break; case "火警":
case "故障": ent.setType("FIREALARM");
ent.setType("BREAKDOWN"); break;
break; case "故障":
case "屏蔽": ent.setType("BREAKDOWN");
ent.setType("SHIELD"); break;
break; case "屏蔽":
case "预警": ent.setType("SHIELD");
ent.setType("NOTICE"); break;
break; case "预警":
default: ent.setType("NOTICE");
ent.setType(""); break;
default:
ent.setType("");
}
} }
ent.setUpdateDate(new Date()); ent.setUpdateDate(new Date());
......
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 to comment