增加字典tag类型
This commit is contained in:
parent
7eb5d18d87
commit
51bd733444
|
@ -27,6 +27,10 @@ public class SysDictDataEntity extends BaseEntity {
|
|||
*/
|
||||
private String dictValue;
|
||||
/**
|
||||
* 字典tag类型
|
||||
*/
|
||||
private String tagType;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
|
|
@ -106,7 +106,7 @@ public class SysDictTypeServiceImpl extends BaseServiceImpl<SysDictTypeDao, SysD
|
|||
|
||||
for (SysDictDataEntity data : dataList) {
|
||||
if (type.getId().equals(data.getDictTypeId())) {
|
||||
dict.getDataList().add(new SysDictVO.DictData(data.getDictLabel(), data.getDictValue()));
|
||||
dict.getDataList().add(new SysDictVO.DictData(data.getDictLabel(), data.getDictValue(), data.getTagType()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,9 @@ public class SysDictDataVO implements Serializable {
|
|||
@NotBlank(message = "字典标签不能为空")
|
||||
private String dictLabel;
|
||||
|
||||
@Schema(description = "字典tag类型")
|
||||
private String tagType;
|
||||
|
||||
@Schema(description = "字典值")
|
||||
private String dictValue;
|
||||
|
||||
|
|
|
@ -30,5 +30,8 @@ public class SysDictVO {
|
|||
|
||||
@Schema(description = "字典值")
|
||||
private String dictValue;
|
||||
|
||||
@Schema(description = "字典tag类型")
|
||||
private String tagType;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user