| | |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.dto.ResetPasswordDTO; |
| | | import com.doumee.dao.business.model.Visits; |
| | | import com.doumee.service.business.VisitsService; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private VisitsService visitsService; |
| | | @Autowired |
| | | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; |
| | | @Autowired |
| | | private SystemUserService systemUserService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | pageWrap.getModel().setLevelStatus(Constants.ZERO); |
| | | return ApiResponse.success(visitsService.retentionPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "访客报备", notes = "访客报备") |
| | | @PostMapping("/createVisit") |
| | | public ApiResponse createVisit(@RequestBody Visits visits,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | visits.setMemberId(getLoginUser(token).getMemberId()); |
| | | return ApiResponse.success("查询成功", visitsService.visitReporting(visits)); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("重置密码") |
| | | @PostMapping("/resetPassword") |
| | | public ApiResponse resetPassword(@RequestBody ResetPasswordDTO resetPasswordDTO){ |
| | | visitsService.resetPassword(resetPasswordDTO); |
| | | return ApiResponse.success("重置成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |