| | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.VisitsService; |
| | | import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; |
| | |
| | | private HkSyncVisitServiceImpl hkSyncVisitService; |
| | | @Autowired |
| | | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; |
| | | @Autowired |
| | | private VisitsService visitsService; |
| | | |
| | | @ApiOperation("开启定时下发访客预约申请") |
| | | @GetMapping("/syncVisitData") |
| | | public ApiResponse syncVisitData() { |
| | |
| | | return ApiResponse.success("开启定时今日的访客预约数据成功"); |
| | | } |
| | | |
| | | @ApiOperation("访客即将超时预警") |
| | | @GetMapping("/visitTimeOut") |
| | | public ApiResponse visitTimeOut() { |
| | | visitsService.syncTimeOutData(); |
| | | return ApiResponse.success("访客即将超时预警"); |
| | | } |
| | | |
| | | } |