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
a4b17a75
Commit
a4b17a75
authored
Mar 02, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删掉无用的类
parent
5d854ede
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
37 deletions
+8
-37
SrvTaskFeignService.java
...c/main/java/com/hungraim/ltc/api/SrvTaskFeignService.java
+0
-19
SrvTaskScheduledServiceImpl.java
...m/ltc/governance/service/SrvTaskScheduledServiceImpl.java
+8
-10
pom.xml
system/system-admin-service/pom.xml
+0
-5
bootstrap.yml
system/system-admin-service/src/main/resources/bootstrap.yml
+0
-3
No files found.
governance/src/main/java/com/hungraim/ltc/api/SrvTaskFeignService.java
deleted
100644 → 0
View file @
5d854ede
package
com
.
hungraim
.
ltc
.
api
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
/**
* @author zwl
* @ClassName SrvTaskFeignService
* @description
* @date 2023/2/27 15:11
**/
@FeignClient
(
"LTC-GOVERNANCE-SERVICE"
)
public
interface
SrvTaskFeignService
{
@GetMapping
(
"/api.governance/srvTask/timeAllocationSrvTask"
)
Result
timeAllocationSrvTask
();
}
system/system-admin-service/src/main/java/com/hungraim/ltc/system/service/impl
/SrvTaskScheduledServiceImpl.java
→
governance/src/main/java/com/hungraim/ltc/governance/service
/SrvTaskScheduledServiceImpl.java
View file @
a4b17a75
package
com
.
hungraim
.
ltc
.
system
.
service
.
impl
;
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.hungraim.ltc.api.SrvTaskFeignService
;
import
com.hungraim.ltc.util.Result
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
...
...
@@ -11,20 +9,20 @@ import org.springframework.stereotype.Service;
* @author zwl
* @ClassName SrvTaskScheduledServiceImpl
* @description
* @date 2023/3/
1 17:05
* @date 2023/3/
2 14:37
**/
@Service
@Slf4j
@AllArgsConstructor
public
class
SrvTaskScheduledServiceImpl
{
private
final
SrvTaskFeignService
srvTaskFeignService
;
@Autowired
private
SrvTaskService
srvTaskService
;
@Scheduled
(
cron
=
"30
18 20
* * ?"
)
@Scheduled
(
cron
=
"30
30 23
* * ?"
)
public
void
timeAllocationSrvTask
()
{
log
.
info
(
"timeAllocationSrvTask========start"
);
Result
result
=
srvTaskFeign
Service
.
timeAllocationSrvTask
();
log
.
info
(
"timeAllocationSrvTask========end:{}"
,
result
);
srvTask
Service
.
timeAllocationSrvTask
();
log
.
info
(
"timeAllocationSrvTask========end:{}"
);
}
}
system/system-admin-service/pom.xml
View file @
a4b17a75
...
...
@@ -65,11 +65,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
com.hungraim.ltc
</groupId>
<artifactId>
governance
</artifactId>
<version>
0.0.1
</version>
</dependency>
</dependencies>
<build>
...
...
system/system-admin-service/src/main/resources/bootstrap.yml
View file @
a4b17a75
spring
:
main
:
#允许存在多个Feign调用相同Service的接口
allow-bean-definition-overriding
:
true
devtools
:
restart
:
enabled
:
true
...
...
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