|
@@ -219,10 +219,8 @@ public class DingDingController {
|
|
} else {
|
|
} else {
|
|
System.out.println("===未授权启用===");
|
|
System.out.println("===未授权启用===");
|
|
}
|
|
}
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
System.out.println("==Push 推送授权类型 ==="+syncAction);
|
|
System.out.println("==Push 推送授权类型 ==="+syncAction);
|
|
-
|
|
|
|
}
|
|
}
|
|
} else if (bizType == 7) {
|
|
} else if (bizType == 7) {
|
|
JSONObject biz_data = JSONObject.parseObject(bizItem.getString("biz_data"));
|
|
JSONObject biz_data = JSONObject.parseObject(bizItem.getString("biz_data"));
|
|
@@ -366,7 +364,7 @@ public class DingDingController {
|
|
// }
|
|
// }
|
|
|
|
|
|
@RequestMapping("/syncUserWorkData")
|
|
@RequestMapping("/syncUserWorkData")
|
|
- public HttpRespMsg syncUserWorkData(Integer companyId, String startDate, String endDate) {
|
|
|
|
|
|
+ public HttpRespMsg syncUserWorkData(Integer companyId, String userId, String startDate, String endDate) {
|
|
CompanyDingding dingding = companyDingdingMapper.selectOne(new QueryWrapper<CompanyDingding>().eq("company_id", companyId).isNotNull("inner_appkey"));
|
|
CompanyDingding dingding = companyDingdingMapper.selectOne(new QueryWrapper<CompanyDingding>().eq("company_id", companyId).isNotNull("inner_appkey"));
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
if (startDate.compareTo(endDate) > 0) {
|
|
if (startDate.compareTo(endDate) > 0) {
|
|
@@ -380,7 +378,7 @@ public class DingDingController {
|
|
return msg;
|
|
return msg;
|
|
} else {
|
|
} else {
|
|
long t1 = System.currentTimeMillis();
|
|
long t1 = System.currentTimeMillis();
|
|
- dingDingService.syncUserWorkData(dingding, startDate, endDate, true);
|
|
|
|
|
|
+ dingDingService.syncUserWorkData(dingding, userId, startDate, endDate, true);
|
|
long t2 = System.currentTimeMillis();
|
|
long t2 = System.currentTimeMillis();
|
|
System.out.println("总共耗时:"+(t2-t1)+"ms");
|
|
System.out.println("总共耗时:"+(t2-t1)+"ms");
|
|
}
|
|
}
|
|
@@ -397,7 +395,7 @@ public class DingDingController {
|
|
} else {
|
|
} else {
|
|
long t1 = System.currentTimeMillis();
|
|
long t1 = System.currentTimeMillis();
|
|
for (int i=0;i<dingdingList.size(); i++) {
|
|
for (int i=0;i<dingdingList.size(); i++) {
|
|
- dingDingService.syncUserWorkData(dingdingList.get(i), startDate, endDate, true);
|
|
|
|
|
|
+ dingDingService.syncUserWorkData(dingdingList.get(i), userId, startDate, endDate, true);
|
|
}
|
|
}
|
|
long t2 = System.currentTimeMillis();
|
|
long t2 = System.currentTimeMillis();
|
|
System.out.println("总共耗时:"+(t2-t1)+"ms");
|
|
System.out.println("总共耗时:"+(t2-t1)+"ms");
|