| | |
| | | package com.ycl.controller.dict; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.dict.DataDictionary; |
| | |
| | | DataDictionary dataDictionary = iDatabaseDictionaryService.queryByCode(code); |
| | | return CommonResult.success(dataDictionary); |
| | | } |
| | | |
| | | @GetMapping("/query_user_type") |
| | | @ApiOperation("查询用户类型") |
| | | private CommonResult queryUserType() { |
| | | String level = "1"; |
| | | String typeCode = "07"; |
| | | return CommonResult.success(iDatabaseDictionaryService |
| | | .list(new LambdaQueryWrapper<DataDictionary>() |
| | | .eq(DataDictionary::getLevel, level) |
| | | .eq(DataDictionary::getTypeCode, typeCode) |
| | | )); |
| | | } |
| | | |
| | | @GetMapping("/query_role_type") |
| | | @ApiOperation("查询角色类型") |
| | | private CommonResult queryRoleType() { |
| | | String level = "1"; |
| | | String typeCode = "09"; |
| | | return CommonResult.success(iDatabaseDictionaryService |
| | | .list(new LambdaQueryWrapper<DataDictionary>() |
| | | .eq(DataDictionary::getLevel, level) |
| | | .eq(DataDictionary::getTypeCode, typeCode) |
| | | )); |
| | | } |
| | | |
| | | @GetMapping("/query_depart_type") |
| | | @ApiOperation("查询部门类型") |
| | | private CommonResult queryDepartType() { |
| | | String level = "1"; |
| | | String typeCode = "08"; |
| | | return CommonResult.success(iDatabaseDictionaryService |
| | | .list(new LambdaQueryWrapper<DataDictionary>() |
| | | .eq(DataDictionary::getLevel, level) |
| | | .eq(DataDictionary::getTypeCode, typeCode) |
| | | )); |
| | | } |
| | | } |