员工详情返回角账密
This commit is contained in:
@@ -89,5 +89,10 @@ public class ShopStaff implements Serializable {
|
|||||||
|
|
||||||
@Column(ignore = true)
|
@Column(ignore = true)
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
@Column(ignore = true)
|
||||||
|
private String accountName;
|
||||||
|
@Column(ignore = true)
|
||||||
|
private String accountPwd;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,6 +137,9 @@ public class ShopStaffServiceImpl extends ServiceImpl<ShopStaffMapper, ShopStaff
|
|||||||
|
|
||||||
SysUsersRoles sysUsersRoles = sysUsersRolesService.getOne(new QueryWrapper().eq(SysUsersRoles::getUserId, shopStaff.getId()));
|
SysUsersRoles sysUsersRoles = sysUsersRolesService.getOne(new QueryWrapper().eq(SysUsersRoles::getUserId, shopStaff.getId()));
|
||||||
shopStaff.setRoleId(sysUsersRoles.getRoleId());
|
shopStaff.setRoleId(sysUsersRoles.getRoleId());
|
||||||
|
SysUser sysUser = sysUserService.getById(shopStaff.getId());
|
||||||
|
shopStaff.setAccountName(StrUtil.subAfter(sysUser.getAccount(), "@", true));
|
||||||
|
shopStaff.setAccountPwd("*******");
|
||||||
return shopStaff;
|
return shopStaff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user