package com.bonus.canteen.core.kitchen.domain;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 厨房员工晨检记录对象 kitchen_staff_morning_check
 * 
 * @author xsheng
 * @date 2025-06-16
 */


@Data
@ToString
public class KitchenStaffMorningCheck extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 晨检id */
    private Long checkId;

    /** 员工id */
    @Excel(name = "员工id")
    @ApiModelProperty(value = "员工id")
    private Long staffId;

    /** 晨检设备id */
    @Excel(name = "晨检设备id")
    @ApiModelProperty(value = "晨检设备id")
    private Long deviceId;

    /** 体温 */
    @Excel(name = "体温")
    @ApiModelProperty(value = "体温")
    private Long temperatureValue;

    /** 体温状态（0-未知 1-正常  2-异常） */
    @Excel(name = "体温状态", readConverterExp = "0=-未知,1=-正常,2=-异常")
    private String temperatureStatus;

    /** 晨检状态（1-正常上岗 2-离岗休息） */
    @Excel(name = "晨检状态", readConverterExp = "1=-正常上岗,2=-离岗休息")
    private Integer checkStatus;

    /** 记录时间 */
    @ApiModelProperty(value = "记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 晨检视频地址 */
    @Excel(name = "晨检视频地址")
    @ApiModelProperty(value = "晨检视频地址")
    private String checkVideoUrl;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDateTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDateTime;

    @ApiModelProperty("岗位")
    private Long[] postIds;

    @ApiModelProperty("岗位名称")
    private String postName;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("食堂名称")
    private String canteenName;

    @ApiModelProperty("手机号码")
    private String phonenumber;

    @ApiModelProperty("员工编号")
    private Long staffNo;

    @JsonIgnore
    private String encryptedSearchValue;
}
