package com.zt.plat.module.erp.controller.admin.erp.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 = "管理后台 - ERP资产卡片分页 Request VO")
@Data
public class ErpAssetPageReqVO extends PageParam {

    @Schema(description = "公司编号")
    private String companyNumber;

    @Schema(description = "资产主编码")
    private String mainAssetNumber;

    @Schema(description = "记录创建日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] recordCreateDate;

    @Schema(description = "更改用户名", example = "芋艿")
    private String updateUserName;

    @Schema(description = "资产类编号")
    private String assetTypeNumber;

    @Schema(description = "资产类描述", example = "李四")
    private String assetTypeName;

    @Schema(description = "资产资本化日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] assetDate;

    @Schema(description = "基本计量单位")
    private String uom;

    @Schema(description = "数量")
    private BigDecimal quantity;

    @Schema(description = "资产描述")
    private String assetDescription;

    @Schema(description = "附加资产描述")
    private String assetDescriptionAttach;

    @Schema(description = "折旧计算开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] depreciationStartDate;

    @Schema(description = "计划年使用期")
    private String planYearDate;

    @Schema(description = "成本中心编码")
    private String costcenterNumber;

    @Schema(description = "责任成本中心")
    private String dutyCostcenterNumber;

}