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 io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 留样柜操作记录对象 kitchen_sample_cabinet_record
 * 
 * @author xsheng
 * @date 2025-06-16
 */


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

    /** 主键id */
    private Long recordId;

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

    /** 开柜温度 */
    @Excel(name = "开柜温度")
    @ApiModelProperty(value = "开柜温度")
    private Long openCabinetTemp;

    /** 关柜温度 */
    @Excel(name = "关柜温度")
    @ApiModelProperty(value = "关柜温度")
    private Long closeCabinetTemp;

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

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

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

    /** 操作类型 1开柜 2关柜 */
    @Excel(name = "操作类型 1开柜 2关柜")
    @ApiModelProperty(value = "操作类型 1开柜 2关柜")
    private Long operateType;

    /** 动作类型 1:留样 2:取样 3无操作 */
    @Excel(name = "动作类型 1:留样 2:取样 3无操作")
    @ApiModelProperty(value = "动作类型 1:留样 2:取样 3无操作")
    private Integer actionType;

    /** 抓拍图片 */
    @Excel(name = "抓拍图片")
    @ApiModelProperty(value = "抓拍图片")
    private String operatePhoto;

    /** 操作日期 */
    @ApiModelProperty(value = "操作日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate operateDate;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

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

    @ApiModelProperty(value = "操作人")
    private String nickName;

    @ApiModelProperty(value = "动作类型名称 1:留样 2:取样 3无操作")
    private String actionTypeName;

    @ApiModelProperty(value = "操作员工")
    private String staffName;

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

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

}
