package com.xinyilu.system.domain.applogkindergarteninfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinyilu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 幼儿体测小程序登录幼儿园信息记录对象 app_log_kindergarten_info
 *
 * @author xinyilu
 * @date 2023-04-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "幼儿体测小程序登录幼儿园信息记录对象", description = "app_log_kindergarten_info")
public class AppLogKindergartenInfo implements Serializable {
    private static final long serialVersionUID = 583002812133693892L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 幼儿体测小程序登录记录表id
     */
    @ApiModelProperty(value = "幼儿体测小程序登录记录表id")
    @Excel(name = "幼儿体测小程序登录记录表id")
    private Long appletLogInfoId;

    /**
     * 区域id
     */
    @ApiModelProperty(value = "区域id")
    @Excel(name = "区域id")
    private Long areaId;

    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    @Excel(name = "区域编码")
    private String areaCode;

    /**
     * 组织表id
     */
    @ApiModelProperty(value = "组织表id")
    @Excel(name = "组织表id")
    private Long organizeId;

    /**
     * 幼儿园信息表id
     */
    @ApiModelProperty(value = "幼儿园信息表id")
    @Excel(name = "幼儿园信息表id")
    private Long kindergartenId;

    /**
     * 班级信息表id
     */
    @ApiModelProperty(value = "班级信息表id")
    @Excel(name = "班级信息表id")
    private Long classId;

    /**
     * 学生信息表id
     */
    @ApiModelProperty(value = "学生信息表id")
    @Excel(name = "学生信息表id")
    private Long studentId;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间，格式：yyyy-MM-dd HH:mm:ss
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 修改时间，格式：yyyy-MM-dd HH:mm:ss
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 登录时间，格式：yyyy-MM-dd HH:mm:ss
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime logTime;

    /**
     * 登录日期，格式：yyyy-MM-dd，统计使用
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate logDate;

    /**
     * 登录日志查看类型，运动处方：EXERCISE_PRESCRIPTION，运动处方视频：EXERCISE_PRESCRIPTION_VIDEO，登录：LOGIN
     */
    private String logType;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("appletLogInfoId", getAppletLogInfoId())
                .append("areaId", getAreaId())
                .append("areaCode", getAreaCode())
                .append("organizeId", getOrganizeId())
                .append("kindergartenId", getKindergartenId())
                .append("classId", getClassId())
                .append("studentId", getStudentId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
