文档库--登录加在数据字典(添加英文)
This commit is contained in:
+7
-2
@@ -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
|
||||
|
||||
+1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user