package com.zt.plat.module.qms.thirdpartyapi.controller.vo;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自动配料任务响应
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AutoIngredientsTaskRespVO {

	@Schema(description = "任务id（样品组别）")
	private Long id;
	
	@Schema(description = "任务编号")
	private String taskNo;

    @JsonSerialize(using = LocalDateTimeSerializer.class) // 序列化（响应）
    @JsonDeserialize(using = LocalDateTimeDeserializer.class) // 反序列化（请求）
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "任务时间(yyyy-MM-dd HH:mm:ss)")
	private LocalDateTime taskTime;
    
    @Schema(description = "分析登录名")
    private String assayOperator;
    
    @Schema(description = "分析人姓名")
    private String assayOperatorName;
}
