Browse Source

【越加红】【CRM和UAS库存数据对不上问题处理】

wub 1 year ago
parent
commit
93e7ea304f
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,9 +92,9 @@ public class ProductTask {
         }
     }
 
-    @Scheduled(cron = "0 50 18 * * ?")
+    @Scheduled(cron = "0 0 23 * * ?")
     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) left join product on pis_prodcode=pr_code where nvl(pr_statuscode,' ')='AUDITED' and nvl(pr_sfjszy_user,' ')<>'是' order by pr_id");
+        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,' ')<>'是' order by pr_id");
         while (rs.next()){
             Product product = setProduct(rs);
             try {