| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | private VisitsService visitsService; |
| | | |
| | | @ApiOperation("开启定时下发访客预约申请") |
| | | @GetMapping("/syncVisitData") |
| | | @PostMapping("/syncVisitData") |
| | | public ApiResponse syncVisitData() { |
| | | hkSyncVisitService.syncVisitData(); |
| | | return ApiResponse.success("开启定时下发访客预约申请成功"); |
| | | } |
| | | @ApiOperation("开启定时查询访客预约状态") |
| | | @GetMapping("/getOutTimeVisitRecord") |
| | | @PostMapping("/getOutTimeVisitRecord") |
| | | public ApiResponse getOutTimeVisitRecord() { |
| | | hkSyncVisitService.getOutTimeVisitRecordIccm(); |
| | | return ApiResponse.success("开启定时查询访客预约状态成功"); |
| | | } |
| | | @ApiOperation("开启定时今日的访客预约数据") |
| | | @GetMapping("/syncVistAppointData") |
| | | @PostMapping("/syncVistAppointData") |
| | | public ApiResponse syncVistAppointData() { |
| | | if(!Constants.DEALING_FROM_HK_VISIT){ |
| | | try { |
| | |
| | | } |
| | | |
| | | @ApiOperation("访客即将超时预警") |
| | | @GetMapping("/visitTimeOut") |
| | | @PostMapping("/visitTimeOut") |
| | | public ApiResponse visitTimeOut() { |
| | | visitsService.syncTimeOutData(); |
| | | return ApiResponse.success("访客即将超时预警"); |
| | | } |
| | | @ApiOperation("待审批记录超时自动取消预约") |
| | | @GetMapping("/visitNoCheckCancel") |
| | | @PostMapping("/visitNoCheckCancel") |
| | | public ApiResponse visitNoCheckCancel() { |
| | | visitsService.visitNoCheckCancel(); |
| | | return ApiResponse.success("待审批记录超时自动取消预约"); |