|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.admin.request.LaborConfigDTO; | 
|---|
|  |  |  | import com.doumee.dao.admin.request.VisitConfigDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.QuerySystemDictDataDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.model.SystemDictData; | 
|---|
|  |  |  | import com.doumee.dao.system.vo.SystemDictDataListVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse<SystemDictData> getSystemDictData(@RequestParam String dictCode, @RequestParam String label) { | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataBiz.queryByCode(dictCode,label)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 访客来访配置 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "访客来访配置" ) | 
|---|
|  |  |  | @GetMapping("/getVisitConfigDTO") | 
|---|
|  |  |  | public ApiResponse<VisitConfigDTO> getVisitConfigDTO(){ | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.getVisitConfigDTO()); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改访客来访配置 | 
|---|
|  |  |  | * @param visitConfigDTO | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "修改访客来访配置" ) | 
|---|
|  |  |  | @PostMapping("/updateVisitConfig") | 
|---|
|  |  |  | public ApiResponse updateVisitConfig(@RequestBody VisitConfigDTO visitConfigDTO){ | 
|---|
|  |  |  | systemDictDataService.updateVisitConfig(visitConfigDTO); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 劳务来访配置 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "劳务来访配置" ) | 
|---|
|  |  |  | @GetMapping("/getLaborConfigDTO") | 
|---|
|  |  |  | public ApiResponse<LaborConfigDTO> getLaborConfigDTO(){ | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.getLaborConfigDTO()); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改劳务来访配置 | 
|---|
|  |  |  | * @param miniProgrammeDTO | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "修改劳务来访配置" ) | 
|---|
|  |  |  | @PostMapping("/updateLaborConfigDTO") | 
|---|
|  |  |  | public ApiResponse updateLaborConfigDTO(@RequestBody LaborConfigDTO miniProgrammeDTO){ | 
|---|
|  |  |  | systemDictDataService.updateLaborConfigDTO(miniProgrammeDTO); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|