suntianwu hace 3 años
padre
commit
995b68d503

+ 3 - 5
src/main/java/com/care/outcall/schedule/CcKoalaPhoneBillSchuding.java

@@ -11,9 +11,8 @@ import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
 import org.springframework.scheduling.annotation.EnableScheduling;
-import org.springframework.scheduling.annotation.Scheduled;
+
 import org.springframework.util.StringUtils;
 
 import java.util.*;
@@ -22,7 +21,6 @@ import java.util.*;
  * @author 许明
  * @version 2.7.0.0 创建于 2018/7/16
  **/
-@PropertySource("classpath:/CommonConfig.properties") //配置文件中添加
 @Configuration
 @EnableScheduling
 public class CcKoalaPhoneBillSchuding {
@@ -35,7 +33,7 @@ public class CcKoalaPhoneBillSchuding {
     /**
      * 10 秒钟调用一次
      */
-    //@Scheduled(cron = "${koala.out.call.bill.cron}")
+   // @Scheduled(cron = "0/10 * * * * ?")
     public void exePhoneBill() {
         try {
             //构建话单
@@ -46,7 +44,7 @@ public class CcKoalaPhoneBillSchuding {
     }
 
 
-    @Scheduled(cron = "0 0 0 * * ?")
+    //@Scheduled(cron = "0 0 0 * * ?")
     public void updateComputeTrafficToFinish() {
         try {
             //大于两天的话单日志默认已计算

+ 0 - 3
src/main/resources/CommonConfig.properties

@@ -1,3 +0,0 @@
-
-############# 考拉话单同步定时器 #######################
-koala.out.call.bill.cron:0/10 * * * * ?