Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
414f84bc
Commit
414f84bc
authored
Nov 19, 2021
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加巡检消息推送类别
parent
39c48d75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
UserController.java
...ejoin/amos/patrol/business/controller/UserController.java
+0
-0
MsgRo.java
...main/java/com/yeejoin/amos/patrol/business/dto/MsgRo.java
+4
-1
RulePlanService.java
...in/amos/patrol/business/service/impl/RulePlanService.java
+2
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/UserController.java
View file @
414f84bc
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dto/MsgRo.java
View file @
414f84bc
...
...
@@ -15,7 +15,7 @@ import java.util.Map;
@RuleFact
(
value
=
"消防巡查"
,
project
=
"消息规则"
)
public
class
MsgRo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4210693601552557441
L
;
private
static
final
long
serialVersionUID
=
-
2766051871044757100
L
;
@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
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/RulePlanService.java
View file @
414f84bc
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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment