Commit 78c193ec by 涂亚平

补贴培训第一次上课熬夜改数据

1 parent 148a074f
Showing with 5 additions and 16 deletions
...@@ -42,7 +42,7 @@ public class WarningJob { ...@@ -42,7 +42,7 @@ public class WarningJob {
/** /**
* POST-2:班级基本信息信息采集接口 * POST-2:班级基本信息信息采集接口
*/ */
@Scheduled(cron = "0 0 1 * * ?") @Scheduled(cron = "0 0 21 * * ?")
public void classBaseInfo() throws IOException { public void classBaseInfo() throws IOException {
if ("prod".equals(env)) { if ("prod".equals(env)) {
...@@ -73,23 +73,12 @@ public class WarningJob { ...@@ -73,23 +73,12 @@ public class WarningJob {
// smsUtils.sendVerifySMS("SMS_460945631", x, result.toString()); // smsUtils.sendVerifySMS("SMS_460945631", x, result.toString());
// }); // });
smsUtils.sendVerifySMS("SMS_460945631", "15201936167", result.toString()); if (result.size()>0){
List<String> telephones = Arrays.asList(new String[]{"15201936167", "18201963812", "18217669021"});
for (String telephone : telephones){
StringBuffer stringBuffer = new StringBuffer(); smsUtils.sendWarning("SMS_460945631", telephone, result.toString());
for (int i = 0; i < result.size(); i++) {
stringBuffer.append(result);
if (i == result.size()-1){
stringBuffer.append("n");
} }
} }
// 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());
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!