package com.zt.plat.module.qms.resource.material.controller.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 物料通用流程明细分页 Request VO")
@Data
public class MaterialLifecycleDetailPageReqVO extends PageParam {

    @Schema(description = "父id", example = "6294")
    private Long lifecycleId;

    @Schema(description = "物料大类id", example = "31283")
    private String productId;

    @Schema(description = "物料批次id", example = "12948")
    private Long batchId;

    @Schema(description = "批次工段id", example = "21334")
    private Long batchGongduanId;

    @Schema(description = "物料实例id", example = "968")
    private Long infomationId;

    @Schema(description = "影响数量", example = "15772")
    private String influenceCount;

    @Schema(description = "明细操作类型,【字典】【jy_material_lifecycle_detail_bsn_type】", example = "1")
    private String businessType;

    @Schema(description = "处理状态,0未处理，1已处理", example = "2")
    private Integer treatmentStatus;

    @Schema(description = "表单数据,表单数据")
    private String formData;

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

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

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

}