Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 78c193ec
authored
Jun 02, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补贴培训第一次上课熬夜改数据
1 parent
148a074f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
src/main/java/com/subsidy/jobs/WarningJob.java
src/main/java/com/subsidy/jobs/WarningJob.java
View file @
78c193e
...
...
@@ -42,7 +42,7 @@ public class WarningJob {
/**
* POST-2:班级基本信息信息采集接口
*/
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
@Scheduled
(
cron
=
"0 0
2
1 * * ?"
)
public
void
classBaseInfo
()
throws
IOException
{
if
(
"prod"
.
equals
(
env
))
{
...
...
@@ -73,23 +73,12 @@ public class WarningJob {
// smsUtils.sendVerifySMS("SMS_460945631", x, result.toString());
// });
smsUtils
.
sendVerifySMS
(
"SMS_460945631"
,
"15201936167"
,
result
.
toString
());
StringBuffer
stringBuffer
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
result
.
size
();
i
++)
{
stringBuffer
.
append
(
result
);
if
(
i
==
result
.
size
()-
1
){
stringBuffer
.
append
(
"n"
);
if
(
result
.
size
()>
0
){
List
<
String
>
telephones
=
Arrays
.
asList
(
new
String
[]{
"15201936167"
,
"18201963812"
,
"18217669021"
});
for
(
String
telephone
:
telephones
){
smsUtils
.
sendWarning
(
"SMS_460945631"
,
telephone
,
result
.
toString
());
}
}
// List<String> strings = Arrays.asList(new String[]{"15201936167", "18201963812", "18217669021"});
// List<String> telephones = Arrays.asList(new String[]{"15201936167", "18201963812", "18217669021"});
// for (String telephone : telephones){
// smsUtils.sendVerifySMS("SMS_460945631", telephone, stringBuffer.toString());
// }
smsUtils
.
sendWarning
(
"SMS_460945631"
,
"15201936167"
,
stringBuffer
.
toString
());
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment