Commit 8475feb0 authored by wujipeng's avatar wujipeng
Browse files

优化

parent 06969c16
...@@ -39,7 +39,9 @@ public class SmsTask { ...@@ -39,7 +39,9 @@ public class SmsTask {
map.put("service_name", smsInformEntity.getServiceName()); map.put("service_name", smsInformEntity.getServiceName());
map.put("date", DateUtils.formatDate(smsInformEntity.getDate())); map.put("date", DateUtils.formatDate(smsInformEntity.getDate()));
map.put("num", String.valueOf(smsInformEntity.getNum())); map.put("num", String.valueOf(smsInformEntity.getNum()));
SmsUtil.sendMsg(smsInformEntity.getPhone(), "SMS_472285139", map); if(smsInformEntity.getNum() > 0){
SmsUtil.sendMsg(smsInformEntity.getPhone(), "SMS_472285139", map);
}
smsInformService.removeById(smsInformEntity.getId()); smsInformService.removeById(smsInformEntity.getId());
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment