From 1b7cf9411e6dbf70d64dc2028fba1ee739f6966a Mon Sep 17 00:00:00 2001 From: LSH Date: 星期五, 03 十一月 2023 13:07:06 +0800 Subject: [PATCH] # --- src/main/java/com/zy/crm/manager/controller/CstmrController.java | 29 +++++++++++++++++++++++++++-- 1 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/controller/CstmrController.java b/src/main/java/com/zy/crm/manager/controller/CstmrController.java index 0468066..4e9fb14 100644 --- a/src/main/java/com/zy/crm/manager/controller/CstmrController.java +++ b/src/main/java/com/zy/crm/manager/controller/CstmrController.java @@ -118,10 +118,23 @@ } } + + Long director = null; + if (deptId==null && userId == null){ + if (getRole().getId()==3){ + userId = getUserId(); + }else if (getRole().getId()==2){ + deptId = getDeptId(); + userId = null; + } + director = getUserId(); + } + return R.ok(cstmrService.getPage3(new Page<>(curr, limit) , getHostId() , deptId == null ? null : String.valueOf(deptId) - , userId == null ? getUserId() : userId + , userId + , director , Cools.isEmpty(followerName) ? null : ids , conditionName , condition) @@ -162,10 +175,22 @@ } } + Long director = null; + if (deptId==null && userId == null){ + if (getRole().getId()==3){ + userId = getUserId(); + }else if (getRole().getId()==2){ + deptId = getDeptId(); + userId = null; + } + director = getUserId(); + } + return R.ok(cstmrService.getPage33(new Page<>(curr, limit) , getHostId() , deptId == null ? null : String.valueOf(deptId) - , userId == null ? getUserId() : userId + , userId + , director , Cools.isEmpty(followerName) ? null : ids , conditionName , condition) -- Gitblit v1.9.1