Commit 5bc05069 authored by 黎博's avatar 黎博

优化

parent b1ad9d07
......@@ -60,7 +60,7 @@ public class RoleController {
* @param roleId 角色id
* @return
*/
@PostMapping("/delete")
@PostMapping("/del")
public JsonResult delRole(Integer roleId) {
return JsonResult.buildSuccessResult(roleService.removeById(roleId));
}
......
......@@ -3,7 +3,7 @@
<mapper namespace="cn.qg.holmes.mapper.auth.UserMapper">
<select id="getUserInfoList" resultType="cn.qg.holmes.entity.auth.User">
SELECT u.*, r.`id` as roleId, r.`role_name` as roleName FROM `user` u
SELECT u.`id`, u.`username`, u.`create_time` as createTime, u.`update_time` as updateTime, r.`id` as roleId, r.`role_name` as roleName FROM `user` u
INNER JOIN `role` r
INNER JOIN `user_role` ur
ON u.`id` = ur.`user_id` AND r.`id` = ur.`role_id`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment