Commit c6c8fd63 authored by chenzhao's avatar chenzhao

修改bug

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