huwhois лет назад: 4
Родитель
Сommit
1de28af46b

+ 3 - 4
src/main/java/io/renren/modules/admin/controller/MemberController.java

145
        return R.ok();
145
        return R.ok();
146
    }
146
    }
147
147
148
    @GetMapping("/listbyname")
148
    @GetMapping("/listall")
149
    @RequiresPermissions("admin:member:list")
149
    @RequiresPermissions("admin:member:list")
150
    public R repassword(@RequestParam Map<String, Object> params){
151
        String name = params.get("name").toString();
152
        List<Map<String, Object>> list = memberService.getListByName(name);
150
    public R repassword(){
151
        List<Map<String, Object>> list = memberService.getList();
153
152
154
        return R.ok().put("list", list);
153
        return R.ok().put("list", list);
155
    }
154
    }

+ 8 - 0
src/main/java/io/renren/modules/admin/dao/MemberDao.java

30
     */
30
     */
31
    @Select("select id,truename,organization from member where is_del=0 and truename like '%${truename}%';")
31
    @Select("select id,truename,organization from member where is_del=0 and truename like '%${truename}%';")
32
    List<Map<String, Object>> selectListByName(String truename);
32
    List<Map<String, Object>> selectListByName(String truename);
33
34
     /**
35
     * 根据真实姓名模糊查询id
36
     * @param truename
37
     * @return
38
     */
39
    @Select("select id,truename,organization,position,job_title as jiobTitle,phone,email from member where is_del=0;")
40
    List<Map<String, Object>> selectList();
33
}
41
}

+ 2 - 0
src/main/java/io/renren/modules/admin/service/MemberService.java

46
	MemberEntity getByUserName(String username);
46
	MemberEntity getByUserName(String username);
47
47
48
	List<Map<String, Object>> getListByName(String truename);
48
	List<Map<String, Object>> getListByName(String truename);
49
	
50
	List<Map<String, Object>> getList();
49
}
51
}
50
52

+ 5 - 0
src/main/java/io/renren/modules/admin/service/impl/MemberServiceImpl.java

130
    public List<Map<String, Object>> getListByName(String truename) {
130
    public List<Map<String, Object>> getListByName(String truename) {
131
        return baseMapper.selectListByName(truename);
131
        return baseMapper.selectListByName(truename);
132
    }
132
    }
133
134
    @Override
135
    public List<Map<String, Object>> getList() {
136
        return baseMapper.selectList();
137
    }
133
}
138
}