文档库--登录加在数据字典(添加英文)

This commit is contained in:
zhn
2022-03-01 20:39:12 +08:00
parent aed3b9583b
commit cafaa48f09
2 changed files with 8 additions and 2 deletions
@@ -17,12 +17,12 @@ public class DictModel implements Serializable{
public DictModel() {
}
public DictModel(String value, String text) {
this.value = value;
this.text = text;
}
/**
* 字典value
*/
@@ -32,6 +32,11 @@ public class DictModel implements Serializable{
*/
private String text;
/**
* 字典文本
*/
private String textEn;
/**
* 特殊用途: JgEditableTable
* @return
@@ -78,6 +78,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
List<DictModel> dictModelList = sysDictItemList.stream().filter(s -> d.getId().equals(s.getDictId())).map(item -> {
DictModel dictModel = new DictModel();
dictModel.setText(item.getItemText());
dictModel.setTextEn(item.getEnName());
dictModel.setValue(item.getItemValue());
return dictModel;
}).collect(Collectors.toList());