|  |  |  | 
|---|
|  |  |  | import com.doumee.config.annotation.CloudRequiredPermission; | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | import com.doumee.core.constants.OperaType; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageData; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.PlatformConfigDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.QuerySystemDictDataDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.VisitConfigDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.model.SystemDictData; | 
|---|
|  |  |  | 
|---|
|  |  |  | systemDictData.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | systemDictData.setUpdateUser(systemDictData.getLoginUserInfo().getId()); | 
|---|
|  |  |  | systemDictDataBiz.updateById(systemDictData); | 
|---|
|  |  |  | systemDictDataBiz.refreshCache(); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping("/getVisitConfigDTO") | 
|---|
|  |  |  | public ApiResponse<VisitConfigDTO> getVisitConfigDTO(){ | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.getVisitConfigDTO()); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改访客来访配置 | 
|---|
|  |  |  | 
|---|
|  |  |  | systemDictDataService.updateVisitConfig(visitConfigDTO); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 访客来访配置 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "访客来访配置" ) | 
|---|
|  |  |  | @GetMapping("/getPlatformConfigDTO") | 
|---|
|  |  |  | public ApiResponse<PlatformConfigDTO> getPlatformConfigDTO(){ | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.getPlatformConfigDTO()); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改访客来访配置 | 
|---|
|  |  |  | * @param visitConfigDTO | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "修改访客来访配置" ) | 
|---|
|  |  |  | @PostMapping("/updatePlatformConfig") | 
|---|
|  |  |  | public ApiResponse updatePlatformConfig(@RequestBody PlatformConfigDTO visitConfigDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | visitConfigDTO.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | systemDictDataService.updatePlatformConfig(visitConfigDTO); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|