From 57fa4c1311a062586e5e5d38d8bcc5901a94f9f8 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 24 七月 2023 14:06:08 +0800 Subject: [PATCH] #保存回退权限3级硬编码 --- src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java b/src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java index 389166c..16f92b1 100644 --- a/src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java +++ b/src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java @@ -40,10 +40,24 @@ } @Override - public Page<Cstmr> getPage(Page<Cstmr> page, Long hostId, String deptId, Long userId, String condition) { + public Page<Cstmr> getPage2(Page<Cstmr> page, Long hostId, Long deptId, Long userId,Long roleId, String conditionName, String condition) { + return page.setRecords(baseMapper.listByPage2(page, hostId, deptId, userId,roleId,conditionName, condition)); + } + + @Override + public Page<Cstmr> getPage1(Page<Cstmr> page, Long hostId, String deptId, Long userId,String conditionName, String condition) { + return page.setRecords(baseMapper.listByPage1(page, hostId, deptId, userId,conditionName, condition)); + } + + @Override + public Page<Cstmr> getPage(Page<Cstmr> page, Long hostId, String deptId, Long userId, String condition) { return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId, condition)); } + @Override + public int updateDeptIdByUserId(Long userId, Long deptId) { + return this.baseMapper.updateDeptIdByUserId(userId, deptId); + } public static String zerofill(String msg, Integer count){ if (msg.length() == count){ @@ -59,4 +73,8 @@ } } + @Override + public Cstmr selectByName(Long hostId, String name) { + return this.baseMapper.selectByName(hostId, name); + } } -- Gitblit v1.9.1