|  |  |  | 
|---|
|  |  |  | package com.doumee.api; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl; | 
|---|
|  |  |  | import com.doumee.service.business.VisitsService; | 
|---|
|  |  |  | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; | 
|---|
|  |  |  | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 
|---|
|  |  |  | private HkSyncVisitServiceImpl hkSyncVisitService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private VisitsService visitsService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("开启定时下发访客预约申请") | 
|---|
|  |  |  | @GetMapping("/syncVisitData") | 
|---|
|  |  |  | public ApiResponse syncVisitData() { | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation("开启定时查询访客预约状态") | 
|---|
|  |  |  | @GetMapping("/getOutTimeVisitRecord") | 
|---|
|  |  |  | public ApiResponse getOutTimeVisitRecord() { | 
|---|
|  |  |  | hkSyncVisitService.getOutTimeVisitRecord(); | 
|---|
|  |  |  | hkSyncVisitService.getOutTimeVisitRecordIccm(); | 
|---|
|  |  |  | return ApiResponse.success("开启定时查询访客预约状态成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("开启定时今日的访客预约数据") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success("开启定时今日的访客预约数据成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("访客即将超时预警") | 
|---|
|  |  |  | @GetMapping("/visitTimeOut") | 
|---|
|  |  |  | public ApiResponse visitTimeOut() { | 
|---|
|  |  |  | visitsService.syncTimeOutData(); | 
|---|
|  |  |  | return ApiResponse.success("访客即将超时预警"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("待审批记录超时自动取消预约") | 
|---|
|  |  |  | @GetMapping("/visitNoCheckCancel") | 
|---|
|  |  |  | public ApiResponse visitNoCheckCancel() { | 
|---|
|  |  |  | visitsService.visitNoCheckCancel(); | 
|---|
|  |  |  | return ApiResponse.success("待审批记录超时自动取消预约"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|