package com.ruoyi.web.v3.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.ruoyi.web.v3.model.BasePageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="HbDisinfectPageReq", description="v3.0 消毒记录")
public class HbDisinfectPageReq extends BasePageRequest implements Serializable {

    @ApiModelProperty(value = "数据唯一性标识id")
    private String id;

    @ApiModelProperty(value = "消毒日期")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordDate;

    @ApiModelProperty(value = "车辆车牌号")
    private String vehiclePlatNo;

    @ApiModelProperty(value = "消毒方法")
    private String disinfectMethod;

    @ApiModelProperty(value = "消毒药品")
    private String disinfectDrug;

    @ApiModelProperty(value = "溶液浓度")
    private String doseConcentration;

    @ApiModelProperty(value = "消毒工(签字)")
    private String disinfectUser;

    @ApiModelProperty(value = "备注")
    private String remarks;

}
