增加字典tag类型

This commit is contained in:
王祁 2022-12-08 22:22:49 +08:00
parent 7eb5d18d87
commit 51bd733444
4 changed files with 106 additions and 96 deletions

View File

@ -27,6 +27,10 @@ public class SysDictDataEntity extends BaseEntity {
*/ */
private String dictValue; private String dictValue;
/** /**
* 字典tag类型
*/
private String tagType;
/**
* 备注 * 备注
*/ */
private String remark; private String remark;

View File

@ -106,7 +106,7 @@ public class SysDictTypeServiceImpl extends BaseServiceImpl<SysDictTypeDao, SysD
for (SysDictDataEntity data : dataList) { for (SysDictDataEntity data : dataList) {
if (type.getId().equals(data.getDictTypeId())) { 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()));
} }
} }

View File

@ -32,6 +32,9 @@ public class SysDictDataVO implements Serializable {
@NotBlank(message = "字典标签不能为空") @NotBlank(message = "字典标签不能为空")
private String dictLabel; private String dictLabel;
@Schema(description = "字典tag类型")
private String tagType;
@Schema(description = "字典值") @Schema(description = "字典值")
private String dictValue; private String dictValue;

View File

@ -30,5 +30,8 @@ public class SysDictVO {
@Schema(description = "字典值") @Schema(description = "字典值")
private String dictValue; private String dictValue;
@Schema(description = "字典tag类型")
private String tagType;
} }
} }