中扬CRM客户关系管理系统
#
LSH
2023-11-02 108e2fc9543ce11e7069c4b4fc10d2f05006333b
src/main/java/com/zy/crm/manager/controller/CstmrController.java
@@ -118,9 +118,19 @@
            }
        }
        if (deptId==null && userId == null){
            if (getRole().getId()==3){
                userId = getUserId();
            }else if (getRole().getId()==2){
                deptId = getDeptId();
                userId = null;
            }
        }
        return R.ok(cstmrService.getPage3(new Page<>(curr, limit)
                , getHostId()
                , deptId == null ? (userId == null? getDeptId().toString(): null) : String.valueOf(deptId)
                , deptId == null ? null : String.valueOf(deptId)
                , userId
                , Cools.isEmpty(followerName) ? null : ids
                , conditionName
@@ -162,10 +172,19 @@
            }
        }
        if (deptId==null && userId == null){
            if (getRole().getId()==3){
                userId = getUserId();
            }else if (getRole().getId()==2){
                deptId = getDeptId();
                userId = null;
            }
        }
        return R.ok(cstmrService.getPage33(new Page<>(curr, limit)
                , getHostId()
                , deptId == null ? null : String.valueOf(deptId)
                , userId == null ? getUserId() : userId
                , userId
                , Cools.isEmpty(followerName) ? null : ids
                , conditionName
                , condition)