|
|
@@ -4,6 +4,7 @@ import com.global.base.tools.FastJsonUtil;
|
|
|
import com.global.base.tools.RandomUtil;
|
|
|
import com.shkpr.service.warncore.bizhandler.CommToolHandler;
|
|
|
import com.shkpr.service.warncore.commtools.CommTool;
|
|
|
+import com.shkpr.service.warncore.constants.OrdWarnObjSrc;
|
|
|
import com.shkpr.service.warncore.dto.OrdWarnEventRule;
|
|
|
import com.shkpr.service.warncore.dto.OrdWarnPlanDetail;
|
|
|
import com.shkpr.service.warncore.dto.OrdWarnPlanRules;
|
|
|
@@ -84,7 +85,10 @@ public class JPOrdWarnEventInfo {
|
|
|
this.updateTime = eventTime;
|
|
|
this.uid = CommTool.genWarnEventId(eventTime, "");
|
|
|
this.title = String.format("%s--%s--%s事件", planDetail.getTitle(), this.uid.substring(5,15), RandomUtil.getDigitalRandomStr(4));
|
|
|
- this.remark = CommToolHandler.genUnionEventRemark(eventPrefix, planDetail.getOwner(), planDetail.getItemName(), this.fromTime);
|
|
|
+ this.remark = CommToolHandler.genUnionEventRemark(eventPrefix
|
|
|
+ , planDetail.getOwner()
|
|
|
+ , (!OrdWarnObjSrc.ZONE.equals(rules.get(0).getObjSrc()))?rules.get(0).getObjName():""
|
|
|
+ , planDetail.getItemName(), this.fromTime);
|
|
|
}
|
|
|
|
|
|
private String formatRule(List<OrdWarnPlanRules> rules){
|