提交 e44c5119 authored 作者: huyufan's avatar huyufan

增加字典查询

上级 52de87f0
...@@ -26,13 +26,13 @@ public class Dictionary implements HasKey<Integer> { ...@@ -26,13 +26,13 @@ public class Dictionary implements HasKey<Integer> {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Integer id; private Integer id;
@TableField("ksd") @TableField("dictionary_name")
@ApiModelProperty("") @ApiModelProperty("")
private String ksd; private String dictionaryName;
@TableField("ve") @TableField("dictionary_value")
@ApiModelProperty("") @ApiModelProperty("")
private String ve; private String dictionaryValue;
@Override @Override
@KeyColumn("id") @KeyColumn("id")
......
...@@ -19,7 +19,7 @@ public class DictionaryServiceImpl implements DictionaryService { ...@@ -19,7 +19,7 @@ public class DictionaryServiceImpl implements DictionaryService {
@Override @Override
public String getOneByKey(String key) { public String getOneByKey(String key) {
Dictionary dictionary = dictionaryDao.getOneByField(Dictionary::getKsd, key).get(); Dictionary dictionary = dictionaryDao.getOneByField(Dictionary::getDictionaryName, key).get();
return dictionary.getVe(); return dictionary.getDictionaryValue();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论