Commit 2435dd7d authored by chenyuxi's avatar chenyuxi

feat: 出差缩小对比范围

parent 902b13f3
...@@ -172,14 +172,14 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -172,14 +172,14 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
List<EkpQiwiChuchai> cpAllList = new ArrayList<>(); List<EkpQiwiChuchai> cpAllList = new ArrayList<>();
List<EkpQiwiChuchai> returnCpList = new ArrayList<>(); List<EkpQiwiChuchai> returnCpList = new ArrayList<>();
// todo 1.9.6计划改造:只查找:已被拉取的90天内的数据Map // 1.9.6计划改造:只查找:已被拉取的90天内的数据Map
String queryStartDay = DateUtil.addDay(-90); String queryStartDay = DateUtil.addDay(-90);
String queryStartTimes = queryStartDay + " 00:00:00"; String queryStartTimes = queryStartDay + " 00:00:00";
// type 1:企业微信;2:HCM的E人事 // type 1:企业微信;2:HCM的E人事
if (type == 1) { if (type == 1) {
// 已被拉取的Map // 已被拉取的Map
// todo 1.9.6计划改造:只查找:已被拉取的90天内的数据Map(定时任务最多拉取30天内的,手动执行是当天的。所以比对90天内的查重足够了。查全部数据对IO是浪费的) // 1.9.6计划改造:只查找:已被拉取的90天内的数据Map(定时任务最多拉取30天内的,手动执行是当天的。所以比对90天内的查重足够了。查全部数据对IO是浪费的)
cpMap = this.getAllMap(queryStartTimes,endTimes); cpMap = this.getAllMap(queryStartTimes,endTimes);
// 企微姓名Map // 企微姓名Map
userMap = this.getUserMap(); userMap = this.getUserMap();
...@@ -203,7 +203,7 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -203,7 +203,7 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
} else { } else {
// type 2:HCM的E人事 // type 2:HCM的E人事
// 已被拉取的Map // 已被拉取的Map
// todo 1.9.6计划改造:只查找:已被拉取的90天内的数据Map(定时任务最多拉取30天内的,手动执行是当天的。所以比对90天内的查重足够了。查全部数据对IO是浪费的) // 1.9.6计划改造:只查找:已被拉取的90天内的数据Map(定时任务最多拉取30天内的,手动执行是当天的。所以比对90天内的查重足够了。查全部数据对IO是浪费的)
cpMap = this.getAllMap(queryStartTimes,endTimes); cpMap = this.getAllMap(queryStartTimes,endTimes);
this.getChuChaiListByHcm(startTimes, endTimes, cpAllList); this.getChuChaiListByHcm(startTimes, endTimes, cpAllList);
log.debug("2拉取HCM的E人事出差数据cpAllList.size()=" + cpAllList.size()); log.debug("2拉取HCM的E人事出差数据cpAllList.size()=" + cpAllList.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment