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
d40a9dba
Commit
d40a9dba
authored
Nov 11, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
警情日志创建完以后清理redis 缓存
parent
42dc05fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
VoiceRecordLogServiceImpl.java
...odule/tzs/biz/service/impl/VoiceRecordLogServiceImpl.java
+8
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/VoiceRecordLogServiceImpl.java
View file @
d40a9dba
...
...
@@ -8,11 +8,11 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.VoiceRecordFileDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.VoiceRecordLogDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.VoiceRecordLog
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.VoiceRecordLogMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.ICtiService
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IVoiceRecordLogService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.VoiceRecordLogDto
;
import
com.yeejoin.amos.component.feign.config.TokenOperation
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
...
...
@@ -24,11 +24,10 @@ import org.eclipse.paho.client.mqttv3.MqttException;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
@@ -158,6 +157,12 @@ public class VoiceRecordLogServiceImpl extends BaseService<VoiceRecordLogDto,Voi
json
.
put
(
"alertId"
,
model
.
getAlertId
());
try
{
emqKeeper
.
getMqttClient
().
publish
(
ctiMessage
,
json
.
toJSONString
().
getBytes
(),
2
,
false
);
try
{
redisUtils
.
del
(
RedisKey
.
TZS_ALERTCALLED_ID
+
model
.
getAlertId
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"删除redis失败:"
+
e
.
getMessage
());
}
}
catch
(
MqttException
e
)
{
logger
.
error
(
"推送失败"
);
}
...
...
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