中扬CRM客户关系管理系统
Junjie
2023-03-15 383bb43fa5317e4bf9ffcf0a844b1ea2329eb83a
src/main/java/com/zy/crm/manager/service/impl/CstmrServiceImpl.java
@@ -40,10 +40,14 @@
    }
    @Override
    public Page<Cstmr> getPage(Page page, Long hostId, String deptId, String condition) {
        return page.setRecords(baseMapper.listByPage(page, hostId, deptId, condition));
    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 +63,8 @@
        }
    }
    @Override
    public Cstmr selectByName(Long hostId, String name) {
        return this.baseMapper.selectByName(hostId, name);
    }
}