1、字典表增加department字段

This commit is contained in:
PushM
2024-06-25 16:14:53 +08:00
parent d73a63855e
commit 949e761fb4
2 changed files with 8 additions and 1 deletions

View File

@@ -23,4 +23,10 @@ public class SysDictData {
@JsonProperty("dict_remark")
@Schema(description = "字典备注")
private String dictRemark;
@JsonProperty("department")
@Schema(description = "字典数据对应可查看部门")
private String department;
}

View File

@@ -9,10 +9,11 @@
<result column="dict_value" property="dictValue"/>
<result column="dict_label" property="dictLabel"/>
<result column="remark" property="dictRemark"/>
<result column="department" property="department"/>
</resultMap>
<select id="selectDictDataByType" resultMap="DictMap">
select dict_type, dict_value, dict_label, remark
select dict_type, dict_value, dict_label, remark, department
from t_dict_data
where dict_type = #{dictType} and status = 0
</select>