|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiImplicitParam; | 
|---|
|  |  |  | import io.swagger.annotations.ApiImplicitParams; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | @CloudRequiredPermission("business:visits:query") | 
|---|
|  |  |  | public ApiResponse<PageData<Visits>> findPage (@RequestBody PageWrap<Visits> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | pageWrap.getModel().setMemberId(getLoginUser(token).getMemberId()); | 
|---|
|  |  |  | //        pageWrap.getModel().setReceptMemberId(getLoginUser(token).getMemberId()); | 
|---|
|  |  |  | return ApiResponse.success(visitsService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(visitsService.retentionPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "PC端访客记录提交", notes = "访客提交") | 
|---|
|  |  |  | @PostMapping("/createFk") | 
|---|
|  |  |  | public ApiResponse createFk(@RequestBody Visits visits) { | 
|---|
|  |  |  | visits.setSourceType(Constants.ZERO); | 
|---|
|  |  |  | return ApiResponse.success("查询成功", visitsService.createFk(visits,false,Constants.ONE)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "访客报备", notes = "访客报备") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success("重置成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("重新下发失败的预约") | 
|---|
|  |  |  | @GetMapping("/visitResend") | 
|---|
|  |  |  | @CloudRequiredPermission("business:visits:update") | 
|---|
|  |  |  | public ApiResponse   visitResend(@RequestParam Integer visitId) { | 
|---|
|  |  |  | visitsService.visitResend(visitId); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|