feat(REQ-2300):恢复是否可见字段的字段及逻辑

This commit is contained in:
李昆鹏 2024-07-23 18:57:01 +08:00
parent 87714c8798
commit 5b1b4c1b13

View File

@ -103,9 +103,9 @@ public class DataPermissionResponseExecutor {
ExamineDpColumnsResp.AttributePermissionBasicDTO basic = entry.getValue();
if (dataNode.has(basic.getAttrCode())) {
ObjectNode objectNode = (ObjectNode) dataNode;
// if (!ATTRIBUTE_ISUNMASKABLE.equals(basic.getIsUnmaskable())) {
// objectNode.remove(basic.getAttrCode());
// }
if (!ATTRIBUTE_ISUNMASKABLE.equals(basic.getIsUnmaskable())) {
objectNode.remove(basic.getAttrCode());
}
if (Objects.nonNull(basic.getIsEditable())) {
objectNode.put(ATTRIBUTE_ADD_ALLOW_EDIT_PREFIX + basic.getAttrCode(), ATTRIBUTE_ISEDITABLE.equals(basic.getIsEditable()));
}