Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
291a0775
Commit
291a0775
authored
Dec 26, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
2df9aea5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
3 deletions
+49
-3
PushTask.java
dsk-admin/src/main/java/com/dsk/web/schedule/PushTask.java
+33
-0
application-test.yml
dsk-admin/src/main/resources/application-test.yml
+3
-3
PushConstants.java
.../src/main/java/com/dsk/common/constant/PushConstants.java
+13
-0
No files found.
dsk-admin/src/main/java/com/dsk/web/schedule/PushTask.java
0 → 100644
View file @
291a0775
package
com
.
dsk
.
web
.
schedule
;
import
com.dsk.system.service.ISysPushService
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* 推送相关定时任务
*
* @Author lcl
* @Data 2023/12/21 17:05
*/
@Component
@RequiredArgsConstructor
@Slf4j
public
class
PushTask
{
@Autowired
private
ISysPushService
pushService
;
/**
* 供应商不良推送(每分钟)
*/
@Scheduled
(
cron
=
"0 * * * * ? "
)
public
void
customerBadness
(){
//1.是否推送时间段(日期、时间)
//2.推送数据(当前时段是否存在数据)
//3.推送人员
}
}
dsk-admin/src/main/resources/application-test.yml
View file @
291a0775
...
...
@@ -167,11 +167,11 @@ sms:
#请求地址 默认为 dysmsapi.aliyuncs.com 如无特殊改变可以不用设置
requestUrl
:
dysmsapi.aliyuncs.com
#阿里云的accessKey
accessKeyId
:
LTAI
C4Pb2jJZbUmD
accessKeyId
:
LTAI
FKlRP50kOB5b
#阿里云的accessKeySecret
accessKeySecret
:
L7VANFwqaTludkczLsg9jhvidk0e28
accessKeySecret
:
I2HvinEcSgiJPFOhRbKKP1jl1wH5E3
#短信签名
signature
:
大司空信息科技
signature
:
中建一局集团第二建筑有限公司
tencent
:
#请求地址默认为 sms.tencentcloudapi.com 如无特殊改变可不用设置
requestUrl
:
sms.tencentcloudapi.com
...
...
dsk-common/src/main/java/com/dsk/common/constant/PushConstants.java
0 → 100644
View file @
291a0775
package
com
.
dsk
.
common
.
constant
;
/**
* 推送相关
*/
public
interface
PushConstants
{
/**
* 供应商不良推送短信模板
*/
String
CUSTOMEER_BADNESS_SMS
=
"SMS_464311026"
;
}
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