package com.zt.plat.module.qms.business.bus.controller.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.List;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 样品调拨明细分页 Request VO")
@Data
public class BusinessSampleDispatchDetailPageReqVO extends PageParam {

    @Schema(description = "父ID", example = "828")
    private Long parentId;

    @Schema(description = "子样数据ID", example = "828")
    private Long businessSubSampleId;

    @Schema(description = "领用人")
    private String borrowUser;

    @Schema(description = "领用人id", example = "22151")
    private Long borrowUserId;

    @Schema(description = "领用时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] borrowTime;

    @Schema(description = "领用状态,0-未领用；1-已领用", example = "1")
    private String borrowStatus;

    @Schema(description = "归还人")
    private String givebackUser;

    @Schema(description = "归还人id", example = "23976")
    private Long givebackUserId;

    @Schema(description = "归还时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] givebackTime;

    @Schema(description = "归还状态,0-未归还；1-已归还", example = "2")
    private String givebackStatus;

    @Schema(description = "使用状态", example = "2")
    private String useStatus;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    //================================扩展字段=============================================

    @Schema(description = "样品归库码")
    private String sampleReturnCode;

    @Schema(description = "idsList")
    private List<Long> idList;

    @Schema(description = "调拨状态")
    private String dispatchStatus;

    @Schema(description = "归库状态")
    private String returnStatus;
}