优化代码
This commit is contained in:
parent
ab8c373d8d
commit
0e152e2ac7
|
@ -27,9 +27,9 @@ public class SysDictDataEntity extends BaseEntity {
|
|||
*/
|
||||
private String dictValue;
|
||||
/**
|
||||
* 字典tag类型
|
||||
* 标签样式
|
||||
*/
|
||||
private String tagType;
|
||||
private String labelClass;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
|
|
@ -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(), data.getTagType()));
|
||||
dict.getDataList().add(new SysDictVO.DictData(data.getDictLabel(), data.getDictValue(), data.getLabelClass()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@ public class SysDictDataVO implements Serializable {
|
|||
@NotBlank(message = "字典标签不能为空")
|
||||
private String dictLabel;
|
||||
|
||||
@Schema(description = "字典tag类型")
|
||||
private String tagType;
|
||||
@Schema(description = "标签样式")
|
||||
private String labelClass;
|
||||
|
||||
@Schema(description = "字典值")
|
||||
private String dictValue;
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SysDictVO {
|
|||
@Schema(description = "字典值")
|
||||
private String dictValue;
|
||||
|
||||
@Schema(description = "字典tag类型")
|
||||
private String tagType;
|
||||
@Schema(description = "标签样式")
|
||||
private String labelClass;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user