|
@ -25,7 +25,7 @@ public class SchedulingService { |
|
|
* <li>每天早上8:00执行该方法</li> |
|
|
* <li>每天早上8:00执行该方法</li> |
|
|
* <li>测评结果,快过期,进行每隔一天的短信提醒</li> |
|
|
* <li>测评结果,快过期,进行每隔一天的短信提醒</li> |
|
|
*/ |
|
|
*/ |
|
|
@Scheduled(cron="0 0 8 * * ? ") |
|
|
// @Scheduled(cron="0 0 8 * * ? ")
|
|
|
public void autoCancelOrder(){ |
|
|
public void autoCancelOrder(){ |
|
|
log.info("The task of checking no payment order is starting ..."); |
|
|
log.info("The task of checking no payment order is starting ..."); |
|
|
try{ |
|
|
try{ |
|
@ -34,7 +34,7 @@ public class SchedulingService { |
|
|
if(newestList != null && newestList.size() > 0){ |
|
|
if(newestList != null && newestList.size() > 0){ |
|
|
for(int i=0; i<newestList.size(); i++){ |
|
|
for(int i=0; i<newestList.size(); i++){ |
|
|
try{ |
|
|
try{ |
|
|
SmsUtil.send(newestList.get(i).getMobile(), RandomUtils.generateStringNUM(4)); |
|
|
// SmsUtil.send(newestList.get(i).getMobile(), RandomUtils.generateStringNUM(4));
|
|
|
}catch(Exception e){ |
|
|
}catch(Exception e){ |
|
|
log.error("The new user["+newestList.get(i).getMobile()+"] have error, check it please.", e); |
|
|
log.error("The new user["+newestList.get(i).getMobile()+"] have error, check it please.", e); |
|
|
continue; |
|
|
continue; |
|
|