Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3826152
authored
Sep 27, 2023
by
lzy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
跟心
parent
df2b25d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
server-service/src/main/java/com/makeit/task/DemoDeviceTask.java
server-web/platform-web.iml
server-service/src/main/java/com/makeit/task/DemoDeviceTask.java
View file @
f3826152
...
...
@@ -22,6 +22,7 @@ import com.makeit.service.platform.alarm.PlatAlarmRecordService;
import
com.makeit.service.platform.device.PlatDeviceService
;
import
com.makeit.service.saas.PlatTenantService
;
import
com.makeit.utils.DeviceCacheUtil
;
import
com.makeit.utils.redis.ScheduleLockUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -49,7 +50,7 @@ public class DemoDeviceTask {
@Scheduled
(
cron
=
"0/1 * * * * ?"
)
public
void
syncDemoAlarm
()
{
System
.
err
.
println
(
"开始执行
"
);
System
.
out
.
println
(
"开始执行1
"
);
List
<
PlatAlarmRecord
>
records
=
platAlarmRecordService
.
list
(
new
QueryWrapper
<
PlatAlarmRecord
>().
lambda
().
orderByDesc
(
PlatAlarmRecord:
:
getAlarmDate
)
);
...
...
@@ -99,8 +100,7 @@ public class DemoDeviceTask {
}
System
.
out
.
println
(
"结束执行"
);
}
}
server-web/platform-web.iml
View file @
f3826152
...
...
@@ -25,6 +25,7 @@
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"module"
module-name=
"server-module"
/>
<orderEntry
type=
"library"
name=
"Maven: org.projectlombok:lombok:1.18.22"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"server-common"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-data-redis:2.5.6"
level=
"project"
/>
...
...
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