Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRole implements Serializable {
private static final long serialVersionUID=1L;
private Integer id;
private String nameUu;
private String passwordKk;
private String permsGg;
private Date createdTime;
private String roleId;
private Date updatedTime;
private Integer isDel;
}
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRoleBo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 用户名称
*/
@Excel(name = "用户名称" ,orderNum = "1", width = 15,height = 20)
private String nameUu;
/**
* 用户密码
*/
@Excel(name = "用户密码" ,orderNum = "2", width = 15,height = 20)
private String passwordKk;
/**
* 用户手机号
*/
@Excel(name = "手机号" ,orderNum = "3", width = 15,height = 20)
private String permsGg;
/**
* 用户角色
*/
@Excel(name = "用户角色" ,orderNum = "4", width = 15,height = 20)
private String roleId;
}
@Test
void demo36(){
UserRole userRole = new UserRole(1,"用户名","用户密码","用户手机号", DateUtil.date(),"用户角色",DateUtil.date(),1);
UserRoleBo userRoleBo = new UserRoleBo();
BeanUtils.copyProperties(userRole, userRoleBo);
System.out.println(userRoleBo);
}