提交 52de87f0 authored 作者: huyufan's avatar huyufan

增加字典查询

上级 ead420a4
...@@ -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("key") @TableField("ksd")
@ApiModelProperty("") @ApiModelProperty("")
private String key; private String ksd;
@TableField("value") @TableField("ve")
@ApiModelProperty("") @ApiModelProperty("")
private String value; private String ve;
@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::getKey, key).get(); Dictionary dictionary = dictionaryDao.getOneByField(Dictionary::getKsd, key).get();
return dictionary.getValue(); return dictionary.getVe();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论