@Dict使用 12.9

zhc4dev
zhc077 2 years ago
parent 6ce851a898
commit ca3ad50116
  1. 10
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/team/entity/Station.java

@ -55,16 +55,16 @@ public class Station {
*/
@Excel(name = "车间ID", width = 15)
@ApiModelProperty(value = "FK,部门表,最下级的生产部门,即车间")
private String departId;
// @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
/**
* FK部门表最下级的生产部门即车间
* @Dict dicText:返回对应的字段值
* 返回字段该属性名+CommonConstant.DICT_TEXT_SUFFIX
*/
private String departId;
@TableField(exist = false)
@Excel(name = "车间名称", width = 15)
@ApiModelProperty(value = "车间")
// @Dict(dictTable = "depart_status")
// @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
private String departName;
/**
* 工位名称

Loading…
Cancel
Save