1、字典表增加department字段
This commit is contained in:
@@ -23,4 +23,10 @@ public class SysDictData {
|
||||
@JsonProperty("dict_remark")
|
||||
@Schema(description = "字典备注")
|
||||
private String dictRemark;
|
||||
|
||||
@JsonProperty("department")
|
||||
@Schema(description = "字典数据对应可查看部门")
|
||||
private String department;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user