|
|
@@ -58,11 +58,11 @@ public class SaleMonthDataTask {
|
|
|
map.put("field_22s1K__c",valueField_year);//年份
|
|
|
|
|
|
map.put("field_C71qd__c",rs.getGeneralDouble("sm_saleoutsum"));//出货金额
|
|
|
- map.put("field_J4Xk7__c",rs.getGeneralDouble("sm_saleoutsum_ed"));//出货金额
|
|
|
- map.put("field_4qTv6__c",rs.getGeneralDouble("sm_saleoutsum_slw"));//出货金额
|
|
|
- map.put("field_tha4J__c",rs.getGeneralDouble("sm_saleoutsum_xrw"));//出货金额
|
|
|
- map.put("field_twUsO__c",rs.getGeneralDouble("sm_saleoutsum_jd"));//出货金额
|
|
|
- map.put("field_ic597__c",rs.getGeneralDouble("sm_saleoutsum_va"));//出货金额
|
|
|
+ map.put("field_o42d1__c",rs.getGeneralDouble("sm_saleoutsum_ed"));//Easydetek出货金额
|
|
|
+ map.put("field_18eJ1__c",rs.getGeneralDouble("sm_saleoutsum_slw"));//士兰微出货金额
|
|
|
+ map.put("field_z1n1S__c",rs.getGeneralDouble("sm_saleoutsum_xrw"));//祥瑞微出货金额
|
|
|
+ map.put("field_r9g6b__c",rs.getGeneralDouble("sm_saleoutsum_jd"));//晶导出货金额
|
|
|
+ map.put("field_q8P6t__c",rs.getGeneralDouble("sm_saleoutsum_va"));//维安出货金额
|
|
|
map.put("field_1s1t2__c",valueField_month);//月份
|
|
|
map.put("field_m2ypV__c",rs.getGeneralDouble("sm_paysum"));//应收货款
|
|
|
map.put("dataObjectApiName","object_8r53c__c");
|
|
|
@@ -91,7 +91,7 @@ public class SaleMonthDataTask {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 30 1 * * ?")
|
|
|
+ @Scheduled(cron = "0 0 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");
|
|
|
@@ -101,11 +101,11 @@ public class SaleMonthDataTask {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("field_6secE__c", rs.getGeneralDouble("sm_salesum"));//接单金额
|
|
|
map.put("field_C71qd__c", rs.getGeneralDouble("sm_saleoutsum"));//出货金额
|
|
|
- map.put("field_J4Xk7__c",rs.getGeneralDouble("sm_saleoutsum_ed"));//出货金额
|
|
|
- map.put("field_4qTv6__c",rs.getGeneralDouble("sm_saleoutsum_slw"));//出货金额
|
|
|
- map.put("field_tha4J__c",rs.getGeneralDouble("sm_saleoutsum_xrw"));//出货金额
|
|
|
- map.put("field_twUsO__c",rs.getGeneralDouble("sm_saleoutsum_jd"));//出货金额
|
|
|
- map.put("field_ic597__c",rs.getGeneralDouble("sm_saleoutsum_va"));//出货金额
|
|
|
+ map.put("field_o42d1__c",rs.getGeneralDouble("sm_saleoutsum_ed"));//Easydetek出货金额
|
|
|
+ map.put("field_18eJ1__c",rs.getGeneralDouble("sm_saleoutsum_slw"));//士兰微出货金额
|
|
|
+ map.put("field_z1n1S__c",rs.getGeneralDouble("sm_saleoutsum_xrw"));//祥瑞微出货金额
|
|
|
+ map.put("field_r9g6b__c",rs.getGeneralDouble("sm_saleoutsum_jd"));//晶导出货金额
|
|
|
+ map.put("field_q8P6t__c",rs.getGeneralDouble("sm_saleoutsum_va"));//维安出货金额
|
|
|
map.put("field_m2ypV__c", rs.getGeneralDouble("sm_paysum"));//应收货款
|
|
|
map.put("_id", rs.getGeneralString("sm_fxxkdataid"));//应收货款
|
|
|
map.put("dataObjectApiName", "object_8r53c__c");
|