Commit 414f84bc authored by helinlin's avatar helinlin

添加巡检消息推送类别

parent 39c48d75
......@@ -15,7 +15,7 @@ import java.util.Map;
@RuleFact(value = "消防巡查", project = "消息规则")
public class MsgRo implements Serializable {
private static final long serialVersionUID = -4210693601552557441L;
private static final long serialVersionUID = -2766051871044757100L;
@Label("名称")
private String name;
......@@ -47,4 +47,7 @@ public class MsgRo implements Serializable {
@Label(value = "扩展参数")
private Map<String, String> extras;
@Label(value = "类别")
private Integer category;
}
package com.yeejoin.amos.patrol.business.service.impl;
import com.yeejoin.amos.boot.biz.common.constants.RuleConstant;
import com.yeejoin.amos.component.rule.RuleTrigger;
import com.yeejoin.amos.patrol.business.dto.MsgRo;
import com.yeejoin.amos.patrol.business.param.PushMsgParam;
......@@ -38,6 +39,7 @@ public class RulePlanService {
msgRo.setExtras(pushMsgParam.getExtras());
msgRo.setIsSendApp(true);
msgRo.setIsSendWeb(true);
msgRo.setCategory(RuleConstant.NOTIFY);
//触发规则
try {
ruleTrigger.publish(msgRo, packageId, new String[0]);
......
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