|
@@ -79,7 +79,13 @@ public class SynProjectCoreBizTask { |
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
stopWatch.start(); |
|
|
stopWatch.start(); |
|
|
|
|
|
|
|
|
syncCoreBiz(); |
|
|
|
|
|
|
|
|
List<DingOrganization> orgs = organizationService.list(Wrappers.lambdaQuery(DingOrganization.class) |
|
|
|
|
|
.in(DingOrganization::getTypeCode, Lists.newArrayList(DingOrganizationContant.UNIT_TYPE |
|
|
|
|
|
, DingOrganizationContant.GOV_TEMPORARY))); |
|
|
|
|
|
|
|
|
|
|
|
log.info("总共需要同步 orgs size :{}",orgs.size()); |
|
|
|
|
|
|
|
|
|
|
|
syncCoreBiz(orgs); |
|
|
stopWatch.stop(); |
|
|
stopWatch.stop(); |
|
|
log.info("同步项目核心业务结束====={}s",stopWatch.getTotalTimeSeconds()); |
|
|
log.info("同步项目核心业务结束====={}s",stopWatch.getTotalTimeSeconds()); |
|
|
} |
|
|
} |
|
|