|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
|
|
import com.jiayue.ipfcst.common.core.exception.BusinessException;
|
|
import com.jiayue.ipfcst.common.core.exception.BusinessException;
|
|
import com.jiayue.ipfcst.common.core.util.DateMomentUtil;
|
|
import com.jiayue.ipfcst.common.core.util.DateMomentUtil;
|
|
import com.jiayue.ipfcst.common.data.abst.equipmentinfo.AbstractEquipmentInfo;
|
|
import com.jiayue.ipfcst.common.data.abst.equipmentinfo.AbstractEquipmentInfo;
|
|
|
|
+import com.jiayue.ipfcst.common.data.constant.enums.AlarmTypeEnum;
|
|
import com.jiayue.ipfcst.common.data.constant.enums.FileTypeEnum;
|
|
import com.jiayue.ipfcst.common.data.constant.enums.FileTypeEnum;
|
|
import com.jiayue.ipfcst.common.data.entity.*;
|
|
import com.jiayue.ipfcst.common.data.entity.*;
|
|
import com.jiayue.ipfcst.common.data.repository.*;
|
|
import com.jiayue.ipfcst.common.data.repository.*;
|
|
@@ -166,6 +167,12 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(stationCode + "生成短期异常", e);
|
|
log.error(stationCode + "生成短期异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成短期异常";
|
|
|
|
+ String name = "生成短期异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -239,6 +246,12 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(stationCode + "生成可用短期异常", e);
|
|
log.error(stationCode + "生成可用短期异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成可用短期异常";
|
|
|
|
+ String name = "生成可用短期异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -319,6 +332,12 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(stationCode + "生成超短期异常", e);
|
|
log.error(stationCode + "生成超短期异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成超短期异常";
|
|
|
|
+ String name = "生成超短期异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -401,6 +420,12 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(stationCode + "生成可用超短期异常", e);
|
|
log.error(stationCode + "生成可用超短期异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成可用超短期异常";
|
|
|
|
+ String name = "生成可用超短期异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -445,7 +470,13 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error(stationCode + "生成文件异常", e);
|
|
|
|
|
|
+ log.error(stationCode + "生成气象站或者测风塔文件异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成气象站或者测风塔文件异常";
|
|
|
|
+ String name = "生成气象站或者测风塔文件异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -889,7 +920,13 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error(stationCode + "生成文件异常", e);
|
|
|
|
|
|
+ log.error(stationCode + "生成逆变器或风机文件异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成逆变器或风机文件异常";
|
|
|
|
+ String name = "生成逆变器或风机文件异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1317,6 +1354,12 @@ public class E63UploadFileService extends BaseUploadFileService {
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(stationCode + "生成文件异常", e);
|
|
log.error(stationCode + "生成文件异常", e);
|
|
|
|
+ // 进行告警
|
|
|
|
+ String errorInfo = "生成理论功率文件异常";
|
|
|
|
+ String name = "生成理论功率文件异常";
|
|
|
|
+ String describe = "";
|
|
|
|
+ String solution = "";
|
|
|
|
+ super.saveSysAlarm(AlarmTypeEnum.E1, name, describe, errorInfo, solution,electricFieldInfo.getStationCode());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|