Browse Source

【华信科eis】【WIP接口定时上传时间修改】

wub 3 years ago
parent
commit
54001c9f34
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/uas/eis/task/SyncProductWIPTask.java

+ 2 - 1
src/main/java/com/uas/eis/task/SyncProductWIPTask.java

@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import javax.annotation.Resource;
@@ -33,7 +34,7 @@ public class SyncProductWIPTask {
 
     //@Scheduled(cron = "0 0 2,8,14,20 * * ?")
     //@Scheduled(cron = "0 0 2,8,14,20 * * ?")
-   // @Scheduled(cron = "0 0/2 * * * ?")
+    @Scheduled(cron = "0 0/2 * * * ?")
     public void SyncProductWIP() {
         SqlRowList rs2 = baseDao.queryForRowSet("select TO_CHAR(SYSDATE,'HH24') v_hour,TO_CHAR(SYSDATE,'MI') v_mi from dual");
         while(rs2.next()){