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

This commit is contained in:
李昆鹏 2024-07-22 10:21:55 +08:00
parent 346c951c48
commit 87714c8798

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()));
}