【DictType】系统配置字典新增

pull/3/head
chenjinlong 2021-01-25 15:50:26 +08:00
parent fe243e0709
commit be021cacea
3 changed files with 29 additions and 0 deletions

View File

@ -92,6 +92,19 @@ public class DictTypeController {
return new SuccessResponseData(detail);
}
/**
*
*
* @author fengshuonan
* @date 2021/1/13 11:25
*/
@GetResource(name = "获取字典类型详情", path = "/dictType/getConfigDictTypeDetail", requiredPermission = false)
public ResponseData getConfigDictTypeDetail() {
SysDictType detail = this.dictTypeService.getConfigDictTypeDetail();
return new SuccessResponseData(detail);
}
/**
*
*

View File

@ -91,4 +91,11 @@ public interface DictTypeService extends IService<SysDictType> {
*/
SysDictType findDetail(Long dictTypeId);
/**
*
*
* @author huangyao
* @date 2021/1/10 17:27
*/
SysDictType getConfigDictTypeDetail();
}

View File

@ -28,6 +28,8 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
import static cn.stylefeng.roses.kernel.dict.api.constants.DictConstants.CONFIG_GROUP_DICT_TYPE_CODE;
/**
*
*
@ -175,6 +177,13 @@ public class DictTypeServiceImpl extends ServiceImpl<DictTypeMapper, SysDictType
return this.baseMapper.findDetail(dictTypeId);
}
@Override
public SysDictType getConfigDictTypeDetail() {
LambdaQueryWrapper<SysDictType> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysDictType::getDictTypeCode, CONFIG_GROUP_DICT_TYPE_CODE);
return this.getOne(queryWrapper);
}
/**
* dictTypeClass
*