Commit 3a5074c0 authored by 郭武斌's avatar 郭武斌

*)修改规则对象属性

parent 8f43aa12
...@@ -19,19 +19,24 @@ import lombok.Data; ...@@ -19,19 +19,24 @@ import lombok.Data;
@RuleFact(value = "警情信息",project = "西咸机场119接处警规则") @RuleFact(value = "警情信息",project = "西咸机场119接处警规则")
public class AlertCalledRo implements Serializable{ public class AlertCalledRo implements Serializable{
/**
/**
* <pre> * <pre>
* *
* </pre> * </pre>
*/ */
private static final long serialVersionUID = -9034974124471572825L; private static final long serialVersionUID = 7091835997817930383L;
/** /**
* 通用属性 * 通用属性
*/ */
@Label("警情id") @Label("警情id")
private String sequenceNbr; private String sequenceNbr;
@Label(value = "警情时间")
private String callTimeStr;
@Label(value = "警情类型") @Label(value = "警情类型")
private String alertType; private String alertType;
...@@ -39,8 +44,8 @@ public class AlertCalledRo implements Serializable{ ...@@ -39,8 +44,8 @@ public class AlertCalledRo implements Serializable{
@Label(value = "警情类型code") @Label(value = "警情类型code")
private String alertTypeCode; private String alertTypeCode;
@Label(value = "事发单位") @Label(value = "发送单位")
private String unitInvolved; private String companyName;
@Label(value = "被困人数") @Label(value = "被困人数")
private String trappedNum; private String trappedNum;
......
...@@ -2,23 +2,16 @@ package com.yeejoin.amos.boot.module.jcs.biz.rule.action; ...@@ -2,23 +2,16 @@ package com.yeejoin.amos.boot.module.jcs.biz.rule.action;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.foundation.utils.StringUtil;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil; import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import com.alibaba.fastjson.JSON;
import com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo; import com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo;
import com.yeejoin.amos.boot.module.jcs.api.entity.OrgUsr; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.OrgUsrServiceImpl;
import com.yeejoin.amos.component.rule.RuleActionBean; import com.yeejoin.amos.component.rule.RuleActionBean;
import com.yeejoin.amos.component.rule.RuleMethod; import com.yeejoin.amos.component.rule.RuleMethod;
import com.yeejoin.amos.feign.systemctl.Systemctl; import com.yeejoin.amos.feign.systemctl.Systemctl;
...@@ -38,9 +31,6 @@ public class AlertCalledAction { ...@@ -38,9 +31,6 @@ public class AlertCalledAction {
public static final Logger log = LoggerFactory.getLogger(AlertCalledAction.class); public static final Logger log = LoggerFactory.getLogger(AlertCalledAction.class);
@Autowired @Autowired
private OrgUsrServiceImpl orgUsrService;
@Autowired
private AlertSubmittedServiceImpl alertSubmittedService; private AlertSubmittedServiceImpl alertSubmittedService;
public void sendSysMessage(String msgType, AlertCalledRo contingency) { public void sendSysMessage(String msgType, AlertCalledRo contingency) {
......
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