| | |
| | | hkSyncVisitFromHKService.syncVistAppointData(new Date()); |
| | | Constants.DEALING_FROM_HK_VISIT =false; |
| | | }catch (Exception e){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对不起,海康同步数据失败~"); |
| | | // throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对不起,海康同步数据失败~"); |
| | | }finally { |
| | | Constants.DEALING_FROM_HK_VISIT =false; |
| | | } |
| | |
| | | public void syncVisitData() { |
| | | hkSyncVisitService.syncVisitData(); |
| | | } |
| | | /** |
| | | /* *//** |
| | | * 定时同步内部人员授权到海康系统 |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(fixedDelay= 60*1000) |
| | | *//* |
| | | @Scheduled(fixedDelay= 3*1000) |
| | | public void syncEmpowerData() { |
| | | |
| | | hkSyncEmpowerService.syncEmpowerData(); |
| | | } |
| | | /** |
| | | *//** |
| | | * 定时查询人员下发海康结果(任务是否已下载结束) |
| | | * @throws Exception |
| | | */ |
| | | *//* |
| | | @Scheduled(fixedDelay= 60*1000) |
| | | public void syncEmpowerResultData() { |
| | | hkSyncEmpowerService.syncEmpowerResultData(); |
| | | } |
| | | /** |
| | | *//** |
| | | * 定时查询人员实际下发权限结果,是否已经下载成功 |
| | | * @throws Exception |
| | | */ |
| | | *//* |
| | | @Scheduled(fixedDelay= 60*1000) |
| | | public void syncEmpowerDetailData() { |
| | | hkSyncEmpowerService.syncEmpowerDetailData(); |
| | | } |
| | | }*/ |
| | | /** |
| | | * 定时同步车辆包期到海康系统 |
| | | * @throws Exception |