Commit 9ae7178e authored by fangxinjiang's avatar fangxinjiang

用户ID 转String

parent 6d508f71
......@@ -32,7 +32,7 @@ public class YifuUser extends User {
* 用户ID
*/
@Getter
private final Long id;
private final String id;
/**
* 部门ID
......@@ -46,7 +46,7 @@ public class YifuUser extends User {
@Getter
private final String phone;
public YifuUser(Long id, Long deptId, String username, String password, String phone, boolean enabled,
public YifuUser(String id, Long deptId, String username, String password, String phone, boolean enabled,
boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,
Collection<? extends GrantedAuthority> authorities) {
super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
......
......@@ -46,7 +46,7 @@ public class SysUser extends BaseEntity {
*/
@TableId(value = "user_id", type = IdType.ASSIGN_ID)
@Schema(description = "主键id")
private Long userId;
private String userId;
/**
* 用户名 登录名称
......
......@@ -38,7 +38,7 @@ public class SysUserPost extends Model<SysUserPost> {
* 用户ID
*/
@Schema(description = "用户id")
private Long userId;
private String userId;
/**
* 岗位ID
......
......@@ -39,7 +39,7 @@ public class SysUserRole extends Model<SysUserRole> {
* 用户ID
*/
@Schema(description = "用户id")
private Long userId;
private String userId;
/**
* 角色ID
......
......@@ -36,7 +36,7 @@ public class UserVO implements Serializable {
/**
* 主键ID
*/
private Long userId;
private String userId;
/**
* 用户名
......
......@@ -37,6 +37,6 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* @param userId 用户id
* @return 岗位信息
*/
List<SysPost> listPostsByUserId(Long userId);
List<SysPost> listPostsByUserId(String userId);
}
......@@ -38,6 +38,6 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* @param userId
* @return
*/
List<SysRole> listRolesByUserId(Long userId);
List<SysRole> listRolesByUserId(String userId);
}
......@@ -39,6 +39,6 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* @author 寻欢·李
* @date 2017年12月7日 16:31:38
*/
Boolean deleteByUserId(@Param("userId") Long userId);
Boolean deleteByUserId(@Param("userId") String userId);
}
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