Browse Source

【越加红】【CRM对接 销售月度汇率增加品牌出货金额】【系统反馈号2024060260】

wub 1 year ago
parent
commit
95b6e729d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/eis/task/SaleMonthDataTask.java

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

@@ -91,7 +91,7 @@ public class SaleMonthDataTask {
         }
     }
 
-    @Scheduled(cron = "0 0 1 * * ?")
+    @Scheduled(cron = "0 30 1 * * ?")
     public void syncUpdateSaleMonthData() {
         SqlRowList rs = baseDao.queryForRowSet("select * from saleMonthData left join customer on SM_CUSTCODE=CU_CODE where nvl(cu_fxxkid,' ')<>' ' and nvl(SM_ISUPDATE,0)=-1 and (SM_YEARMONTH=case when to_char(sysdate,'dd')='01' then to_char(add_months(sysdate,-1),'yyyymm') else to_char(add_months(sysdate,0),'yyyymm') end) order by sm_id");
         //SqlRowList rs = baseDao.queryForRowSet("select * from saleMonthData left join customer on SM_CUSTCODE=CU_CODE where nvl(cu_fxxkid,' ')<>' ' and nvl(SM_ISUPDATE,0)=-1 and (SM_YEARMONTH=case when to_char(to_date('20220501','yyyymmdd'),'dd')='01' then to_char(add_months(to_date('20220501','yyyymmdd'),-1),'yyyymm') else to_char(add_months(to_date('20220501','yyyymmdd'),0),'yyyymm') end) order by sm_id");