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
8a031077
Commit
8a031077
authored
Nov 03, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息组件优化
parent
6869ab04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
SignServiceImpl.java
...mos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
View file @
8a031077
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper;
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper;
import
com.yeejoin.amos.boot.module.jcs.api.service.ISignService
;
import
com.yeejoin.amos.boot.module.jcs.api.service.ISignService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SignDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SignDto
;
import
com.yeejoin.amos.component.rule.config.RuleConfig
;
import
com.yeejoin.amos.component.rule.config.RuleConfig
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
...
@@ -32,6 +33,7 @@ import java.util.List;
...
@@ -32,6 +33,7 @@ import java.util.List;
* @author system_generator
* @author system_generator
* @date 2022-08-15
* @date 2022-08-15
*/
*/
@Slf4j
@Service
@Service
public
class
SignServiceImpl
extends
BaseService
<
SignDto
,
Sign
,
SignMapper
>
implements
ISignService
{
public
class
SignServiceImpl
extends
BaseService
<
SignDto
,
Sign
,
SignMapper
>
implements
ISignService
{
...
@@ -142,7 +144,7 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
...
@@ -142,7 +144,7 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
jsonObject
.
put
(
"data"
,
json
);
jsonObject
.
put
(
"data"
,
json
);
emqKeeper
.
getMqttClient
().
publish
(
"emq.sign.created"
,
jsonObject
.
toString
().
getBytes
(),
1
,
false
);
emqKeeper
.
getMqttClient
().
publish
(
"emq.sign.created"
,
jsonObject
.
toString
().
getBytes
(),
1
,
false
);
}
catch
(
MqttException
e
)
{
}
catch
(
MqttException
e
)
{
e
.
printStackTrace
(
);
log
.
info
(
String
.
format
(
"发送eqm打卡消息失败:%s"
,
e
.
getMessage
())
);
}
}
}
}
return
save
;
return
save
;
...
...
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