提交 1c693467 authored 作者: huyufan's avatar huyufan

Merge remote-tracking branch 'origin/v11.0_add_tare_gross_weight_20240124' into test

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