Commit cb04b628 by 杨林龙

开发警情中心消费业务

1 parent be7f4816
......@@ -40,12 +40,16 @@ public class DataInitializer implements CommandLineRunner {
public void initAlarmType() {
List<AlarmWarnAlarmTypeDTO> alarmTypeList = eshieldAlarmService.getAllAlarmType();
if (CollectionUtil.isNotEmpty(alarmTypeList)) {
log.info("alarmTypeList===" + JSONUtil.toJsonStr(alarmTypeList));
for (AlarmWarnAlarmTypeDTO eat : alarmTypeList) {
cacheAlarmType.put(eat.getTypeDesc(), eat.getAlarmType());
}
if (CollectionUtil.isEmpty(alarmTypeList)) {
log.info("alarmTypeList is null");
return;
}
log.info("alarmTypeList===" + JSONUtil.toJsonStr(alarmTypeList));
for (AlarmWarnAlarmTypeDTO eat : alarmTypeList) {
cacheAlarmType.put(eat.getTypeDesc(), eat.getAlarmType());
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!