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
05fee0e5
Commit
05fee0e5
authored
Dec 31, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
现场问题处理
parent
21f89c65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+5
-5
PatrolMqttListener.java
...java/com/yeejoin/amos/patrol/mqtt/PatrolMqttListener.java
+12
-12
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanTaskController.java
View file @
05fee0e5
...
...
@@ -66,7 +66,7 @@ public class PlanTaskController extends AbstractBaseController {
@Autowired
private
IRouteService
routeService
;
@Value
(
"${
params.isPush
:false}"
)
@Value
(
"${
is.zxj
:false}"
)
private
Boolean
isZxj
;
...
...
@@ -350,11 +350,11 @@ public class PlanTaskController extends AbstractBaseController {
*
* @return
*/
@Scheduled
(
cron
=
"${jobs.cron}"
)
//
@Scheduled(cron = "${jobs.cron}")
@ApiOperation
(
value
=
"定时执行任务表生成(<font color='blue'>release</font>)"
,
notes
=
"定时执行任务表生成"
)
@RequestMapping
(
value
=
"/queryOmission"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
pushCarData
()
{
if
(
Boolean
.
TRUE
.
equals
(!
isZxj
))
{
//
if (Boolean.TRUE.equals(!isZxj)) {
try
{
RequestAttributes
reqs
=
RequestContextHolder
.
getRequestAttributes
();
RequestContextHolder
.
setRequestAttributes
(
reqs
,
true
);
...
...
@@ -365,8 +365,8 @@ public class PlanTaskController extends AbstractBaseController {
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
();
}
}
return
CommonResponseUtil
.
success
();
//
}
//
return CommonResponseUtil.success();
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/mqtt/PatrolMqttListener.java
View file @
05fee0e5
...
...
@@ -25,18 +25,18 @@ public class PatrolMqttListener extends EmqxListener {
@Override
public
void
processMessage
(
String
topic
,
MqttMessage
message
)
{
if
(
log
.
isInfoEnabled
()){
log
.
info
(
"收到消息主题:{},消息内容:{}"
,
topic
,
message
.
toString
());
}
try
{
Map
<
String
,
Object
>
msg
=
JSON
.
parseObject
(
message
.
toString
());
if
(
pointClassifyTopic
.
equals
(
topic
))
{
iPointService
.
syncPointClassify
(
msg
);
}
log
.
info
(
"巡检对象同步完成"
);
}
catch
(
Exception
e
)
{
log
.
info
(
"巡检对象同步失败:{}"
,
e
.
getMessage
());
}
//
if(log.isInfoEnabled()){
//
log.info("收到消息主题:{},消息内容:{}",topic, message.toString());
//
}
//
try {
//
Map<String, Object> msg = JSON.parseObject(message.toString());
//
if (pointClassifyTopic.equals(topic)) {
//
iPointService.syncPointClassify(msg);
//
}
//
log.info("巡检对象同步完成");
//
} catch (Exception e) {
//
log.info("巡检对象同步失败:{}", e.getMessage());
//
}
}
}
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