package com.wisewoods.base.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class StudentList extends Results<StudentList.ListBean> {
    public static class ListBean {
        public List<DataBean> rows;
        public long total;
    }

    public static class DataBean implements Serializable {

        public String advantage;
        public String birthDay;
        public String code;
        public int countLeave;
        public String createTime;
        public int downCount;
        public String education;
        public String graduate;
        public String graduateCode;
        public int graduateType;
        public String idCard;
        public int integral;
        public int isBuildLeader;
        public int isEmphasis;
        public int isEnable;
        public int isForeign;
        public int isFullTime;
        public int isGridLeader;
        public int isHaveLeave;
        public int isOnline;
        public int isParty;
        public int isReceiveHonor;
        public int isRegister;
        public int isReport;
        public int isUnitLeader;
        public int isWelfare;
        public long jobId;
        @SerializedName(value = "jobName", alternate = "studentJobNow")
        public String jobName;
        public String teamName;
        public String jobTime;
        public String name;
        public String nation;
        @SerializedName(value = "nationName", alternate = "studentNation")
        public String nationName;
        public Object params;
        public int perType;

        public String phone;
        public String picUrl;
        public String ratingDescribe;
        public String regionGroup;
        public String remark;
        public String sex;
        @SerializedName(value = "resourceStuId", alternate = "id")
        public long resourceStuId;
        public int socialWorkLevel;
        public String socialWorkYear;
        public long specialtyId;
        public int stuRating;
        public String stuUuid;
        public long teamId;
        public long teamJob;
        public int upCount;

        @SerializedName(value = "teamJobName", alternate = "studentTeamJob")
        public String teamJobName;
        public String updateTime;
        public String wechatNum;
        public long groupId;
        public String groupName;
        public float studyProcess;
        public String stuSignMsg;
        public int stuFractionStatus;
        public Integer stuFraction;
        public String teamGroupName;
        public int groupType;

        public String reportTime;

        public String getStuFraction() {
            String text = "无";
            if (stuFractionStatus == 0) {
                if (stuFraction != null) {
                    text = "已参加";
                } else {
                    text = "未参加";
                }
            }
            return text;
        }


        public String getStuP() {
            return (int) (studyProcess * 100) + "%";
        }


    }
}
