fix(权限点): 修复delegatedType赋值

This commit is contained in:
zhansihu 2023-09-13 21:06:37 +08:00
parent f7fdf994a7
commit 37d6de4412
2 changed files with 4 additions and 2 deletions

View File

@ -431,6 +431,7 @@ public class PermissionPointServiceImpl implements PermissionPointService {
node.setTerminal(feature.getTerminal());
node.setFeatureType(feature.getFeatureType());
node.setFeatureTypeDesc(FeatureType.apply(feature.getFeatureType()).getDesc());
node.setDelegatedType(feature.getDelegatedType());
node.setPath(feature.getPath());
node.setSort(feature.getSort());
return node;

View File

@ -44,9 +44,10 @@ public class PermissionPointTest {
public void testListTreeNode() {
PermissionPointTreeQueryReq request = new PermissionPointTreeQueryReq();
//request.setParentId(354L);
request.setKeyword("预警");
//request.setKeyword("预警");
//request.setWorkspaceType(Arrays.asList("ent"));
request.setTerminalList(Arrays.asList("NT_CMS_WEB_ENT_ZB"));
//request.setTerminalList(Arrays.asList("NT_CMS_WEB_ENT_ZB"));
request.setDelegateType(2);
ApiResult<List<PermissionPointTreeNode>> result = controller.listTreeNodes(request);
System.out.println("---------------");
System.out.println(JSON.toJSONString(result, SerializerFeature.DisableCircularReferenceDetect));