diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/WeComTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/WeComTask.java index 6079a16..f5e5e30 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/WeComTask.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/WeComTask.java @@ -68,14 +68,29 @@ public class WeComTask { }); } + + //昨天的 流量v2数据 public void createCurDateCustomerReportV2() throws IOException { - System.out.println("计算所有流量看板数据V2"); - Date from = Date.from(LocalDate.now().atStartOfDay() + Date from = Date.from(LocalDate.now().minusDays(1L).atStartOfDay() .atZone(ZoneId.systemDefault()).toInstant()); - System.out.println("计算" + JSON.toJSONString(from) + "流量看板数据"); + System.out.println("计算V2" + JSON.toJSONString(from) + "流量看板数据"); List corpInfos = corpInfoMapper.selectCorpInfoList(new CorpInfo()); corpInfos.forEach(item->{ handleAllDataV2.createReportDataV2(item.getCorpId(), from); }); } + + //昨天的销售看板数据 + public void createYestodayDepartmentReportData() throws IOException { + Date from = Date.from(LocalDate.now().minusDays(1L).atStartOfDay() + .atZone(ZoneId.systemDefault()).toInstant()); + System.out.println("计算" + JSON.toJSONString(from) + "销售看板数据"); + List corpInfos = corpInfoMapper.selectCorpInfoList(new CorpInfo()); + corpInfos.forEach(item->{ + handleAllData.createDepartmentReportData(item.getCorpId(),Date.from(LocalDate.now().minusDays(1L).atStartOfDay() + .atZone(ZoneId.systemDefault()).toInstant())); + }); + } + + }