package com.newfiber.api.pc.model.vo; import lombok.Data; import java.io.Serializable; import java.util.List; /** * @description: 在线用户列表 * @author: 张鸿志 * @date: 2021/1/14 8:40 * @version: v1.0 */ @Data public class PeopleOnlineVo implements Serializable ,Comparable<PeopleOnlineVo>{ private Integer pId; /** 用户名称 */ private String peopleName; /** 用户编号 */ private String peopleNo; /** 手机号 */ private String phone; /** 区域名称 */ private List<String> areaName; /** 职务集合 */ private List<String> job; /** 是否在线 */ private Integer onlineState; @Override public int compareTo(PeopleOnlineVo o) { if(onlineState.equals(o.getOnlineState())){ return 0; }else if(onlineState < o.getOnlineState() ){ return -1; }else{ return 1; } } }