Browse Source

订正:告警配置字段赋值问题

zhongwei
ty 10 months ago
parent
commit
9c55964fa8
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/config/service/impl/AlarmConfigDetailServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/config/service/impl/AlarmConfigDetailServiceImpl.java

@ -235,7 +235,6 @@ public class AlarmConfigDetailServiceImpl extends BaseServiceImpl<AlarmConfigDet
if (ObjectUtils.isNotEmpty(alarmDefaultConfigEntity)){ if (ObjectUtils.isNotEmpty(alarmDefaultConfigEntity)){
BeanUtils.copyProperties(alarmDefaultConfigEntity,detail); BeanUtils.copyProperties(alarmDefaultConfigEntity,detail);
}else { }else {
detail.setAlarmType(source);
detail.setAlarmChiledType(type); detail.setAlarmChiledType(type);
detail.setIsRightTabulation(1); detail.setIsRightTabulation(1);
detail.setIsShowAlert(1); detail.setIsShowAlert(1);
@ -246,6 +245,7 @@ public class AlarmConfigDetailServiceImpl extends BaseServiceImpl<AlarmConfigDet
detail.setIsShortMessage(1); detail.setIsShortMessage(1);
detail.setIsWxMessage(1); detail.setIsWxMessage(1);
} }
detail.setAlarmType(source);
detail.setId(null); detail.setId(null);
detail.setStrategyId(entity.getId()); detail.setStrategyId(entity.getId());
return detail; return detail;

Loading…
Cancel
Save