Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crontab-bff
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
crontab-bff
Commits
0d926e17
Commit
0d926e17
authored
Apr 07, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:task paycenter
parent
f05dc586
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
1 deletions
+51
-1
pom.xml
+5
-0
server/pom.xml
+4
-0
server/src/main/java/com/jiejing/bff/crontab/server/CrontabBffApplication.java
+4
-1
server/src/main/java/com/jiejing/bff/crontab/server/paycenter/PayCenterJob.java
+38
-0
No files found.
pom.xml
View file @
0d926e17
...
...
@@ -47,6 +47,11 @@
<artifactId>
cam-api
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.jiejing.paycenter
</groupId>
<artifactId>
api
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
<!-- ======================= jiejing api end ======================= -->
...
...
server/pom.xml
View file @
0d926e17
...
...
@@ -15,6 +15,10 @@
<artifactId>
cam-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.jiejing.paycenter
</groupId>
<artifactId>
api
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-tx
</artifactId>
</dependency>
...
...
server/src/main/java/com/jiejing/bff/crontab/server/CrontabBffApplication.java
View file @
0d926e17
...
...
@@ -14,7 +14,10 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@Slf4j
@EnableAsync
@EnableScheduling
@EnableFeignClients
(
basePackages
=
{
"com.jiejing.cam.api"
})
@EnableFeignClients
(
basePackages
=
{
"com.jiejing.cam.api"
,
"com.jiejing.paycenter.api"
})
@SpringBootApplication
(
scanBasePackages
=
"com.jiejing"
)
public
class
CrontabBffApplication
{
...
...
server/src/main/java/com/jiejing/bff/crontab/server/paycenter/PayCenterJob.java
0 → 100644
View file @
0d926e17
package
com
.
jiejing
.
bff
.
crontab
.
server
.
paycenter
;
import
com.jiejing.paycenter.api.task.PayCenterTaskApi
;
import
javax.annotation.Resource
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author chengyubing
* @since 2024/4/7 11:03
*/
@Component
public
class
PayCenterJob
{
@Resource
private
PayCenterTaskApi
payCenterTaskApi
;
@Scheduled
(
cron
=
"0 0/5 * * * ?"
)
public
void
autoApplyMerchant
()
{
payCenterTaskApi
.
autoApplyMerchant
();
}
@Scheduled
(
cron
=
"0 0/1 * * * ?"
)
public
void
closePay
()
{
payCenterTaskApi
.
closePay
();
}
@Scheduled
(
cron
=
"0 0/1 * * * ?"
)
public
void
syncPay
()
{
payCenterTaskApi
.
syncPay
();
}
@Scheduled
(
cron
=
"0 0 3 * * ?"
)
public
void
syncSettle
()
{
payCenterTaskApi
.
syncSettle
();
}
}
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