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.math.BigDecimal;
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 MaterialInventoryCheckItemPageReqVO extends PageParam {

    @Schema(description = "父id", example = "20320")
    private Long parentId;

    @Schema(description = "盘点物料大类ID", example = "15446")
    private Long productId;

    @Schema(description = "应有量")
    private BigDecimal expected;

    @Schema(description = "实有量")
    private BigDecimal actual;

    @Schema(description = "差异")
    private String difference;

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

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

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

}