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
3d547be1
Commit
3d547be1
authored
May 21, 2024
by
xzt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上课提醒
parent
efe89a45
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
0 deletions
+36
-0
pom.xml
+5
-0
server/pom.xml
+4
-0
server/src/main/java/com/jiejing/bff/crontab/server/CrontabBffApplication.java
+1
-0
server/src/main/java/com/jiejing/bff/crontab/server/studio/SyncStudioSmsBalanceJob.java
+26
-0
No files found.
pom.xml
View file @
3d547be1
...
...
@@ -62,6 +62,11 @@
<artifactId>
finance-api
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.jiejing.app
</groupId>
<artifactId>
studio-api
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
<!-- ======================= jiejing api end ======================= -->
...
...
server/pom.xml
View file @
3d547be1
...
...
@@ -39,6 +39,10 @@
<artifactId>
member-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.jiejing.app
</groupId>
<artifactId>
studio-api
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
...
...
server/src/main/java/com/jiejing/bff/crontab/server/CrontabBffApplication.java
View file @
3d547be1
...
...
@@ -19,6 +19,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
"com.jiejing.member.api"
,
"com.jiejing.paycenter.api"
,
"com.jiejing.fitness.finance.api"
,
"com.jiejing.studio.api"
})
@SpringBootApplication
(
scanBasePackages
=
"com.jiejing"
)
public
class
CrontabBffApplication
{
...
...
server/src/main/java/com/jiejing/bff/crontab/server/studio/SyncStudioSmsBalanceJob.java
0 → 100644
View file @
3d547be1
package
com
.
jiejing
.
bff
.
crontab
.
server
.
studio
;
import
com.jiejing.studio.api.message.MessageApi
;
import
com.jiejing.studio.api.studio.StudioApi
;
import
javax.annotation.Resource
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author xiezhongtao
* @date 2024/5/21 16:39
*/
@Component
public
class
SyncStudioSmsBalanceJob
{
@Resource
private
MessageApi
messageApi
;
@Scheduled
(
cron
=
"0 0 23 * * ?"
)
public
void
SyncStudioSmsBalance
()
{
messageApi
.
batchSyncStudioSmsBalanceTask
();
}
}
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