Browse Source

流程权限控制

ljy121 1 year ago
parent
commit
5d0ed8260e

+ 5 - 2
zjugis-workflow/src/main/java/com/zjugis/z_workflow/service/TFlowTemplateService.java

@@ -235,8 +235,11 @@ public class TFlowTemplateService {
 		paramVo.setiFilterRight(iFilterRight);
 		if (iFilterRight) {
             CommonResult<FlowPermissionRespDTO> result = permissionApi.getFlowPermission(Constant.getUserId());
-            if(result.getCheckedData().getFlowIds() != null){
-                rightList =result.getCheckedData().getFlowIds();
+            FlowPermissionRespDTO resp = result.getCheckedData();
+            if(resp.getAll()){
+                paramVo.setiFilterRight(false);
+            } else if(resp.getFlowIds() != null){
+                rightList = resp.getFlowIds();
             }
 
         }