Commit 78c193ec by 涂亚平

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

1 parent 148a074f
Showing with 5 additions and 16 deletions
......@@ -42,7 +42,7 @@ public class WarningJob {
/**
* POST-2:班级基本信息信息采集接口
*/
@Scheduled(cron = "0 0 1 * * ?")
@Scheduled(cron = "0 0 21 * * ?")
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());
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!