Browse Source

【越加红CRM】【定时任务时间更新】

wub 2 weeks ago
parent
commit
1a54cd0d5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/uas/eis/task/ProductTask.java

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

@@ -92,7 +92,7 @@ public class ProductTask {
         }
     }
 
-    @Scheduled(cron = "0 0 23 * * ?")
+    @Scheduled(cron = "0 0 19 * * ?")
     public void syncUpdateProducts() {
         SqlRowList rs = baseDao.queryForRowSet("select * from (select distinct pis_prodcode from productInfoSync where trunc(pis_date)=trunc(sysdate) and pis_updatedate is null and PIS_ERROR is null) left join product on pis_prodcode=pr_code where nvl(pr_statuscode,' ')='AUDITED' and nvl(pr_sfjszy_user,' ')<>'是' and upper(nvl(pr_brand,' ')) <> 'EASYDETEK' order by pr_id");
         while (rs.next()){
@@ -116,7 +116,7 @@ public class ProductTask {
 
     @Scheduled(cron = "0 0 1-6 * * ?")
     public void syncUpdateProductsAgain() {
-        SqlRowList rs = baseDao.queryForRowSet("select * from (select distinct pis_prodcode from productInfoSync where trunc(pis_date)=trunc(sysdate)-1 and pis_updatedate is null and PIS_ERROR is null) left join product on pis_prodcode=pr_code where nvl(pr_statuscode,' ')='AUDITED' and nvl(pr_sfjszy_user,' ')<>'是' and upper(nvl(pr_brand,' ')) <> 'EASYDETEK' order by pr_id");
+        SqlRowList rs = baseDao.queryForRowSet("select * from (select distinct pis_prodcode from productInfoSync where 1=2 and trunc(pis_date)=trunc(sysdate)-1 and pis_updatedate is null and PIS_ERROR is null) left join product on pis_prodcode=pr_code where nvl(pr_statuscode,' ')='AUDITED' and nvl(pr_sfjszy_user,' ')<>'是' and upper(nvl(pr_brand,' ')) <> 'EASYDETEK' order by pr_id");
         while (rs.next()){
             Product product = setProduct(rs);
             try {