nidapeng
2024-03-18 f2d095dd7f3df56b09564ba46dcaa36d912ae4a8
server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java
@@ -74,7 +74,7 @@
            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;
        }
@@ -127,31 +127,30 @@
    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