Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
657a87a1
Commit
657a87a1
authored
Feb 28, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时屏蔽
parent
7a705b27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
pom.xml
system/system-admin-service/pom.xml
+0
-6
SrvTaskScheduledController.java
...raim/ltc/system/Scheduled/SrvTaskScheduledController.java
+0
-30
No files found.
system/system-admin-service/pom.xml
View file @
657a87a1
...
@@ -65,12 +65,6 @@
...
@@ -65,12 +65,6 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.hungraim.ltc
</groupId>
<artifactId>
governance
</artifactId>
<version>
0.0.1
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/Scheduled/SrvTaskScheduledController.java
deleted
100644 → 0
View file @
7a705b27
package
com
.
hungraim
.
ltc
.
system
.
Scheduled
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.api.SrvTaskFeignService
;
import
com.hungraim.ltc.util.Result
;
import
lombok.AllArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author zwl
* @ClassName SrvTaskScheduledController
* @description
* @date 2023/2/27 15:23
**/
@Component
@AllArgsConstructor
public
class
SrvTaskScheduledController
{
private
final
SrvTaskFeignService
srvTaskFeignService
;
// 表示每天3点5分执行
@Scheduled
(
cron
=
"30 32 19 * * ?"
)
public
void
timeAllocationSrvTask
()
{
Result
result
=
srvTaskFeignService
.
timeAllocationSrvTask
();
System
.
out
.
println
();
}
}
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