package com.ruoyi.production.bean.dto; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.production.pojo.ProductionPlan; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDate; import java.util.List; @EqualsAndHashCode(callSuper = true) @Data public class ProductionPlanDto extends ProductionPlan { @Schema(description = "产品名称") @Excel(name = "产品名称") private String productName; @Schema(description = "产品规格") @Excel(name = "产品规格") private String model; @Schema(description = "产品单位") @Excel(name = "产品单位") private String unit; @Schema(description = "生产计划id集合") private List ids; @Schema(description = "下发数量") private BigDecimal totalAssignedQuantity; @Schema(description = "计划完成时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate planCompleteTime; @Schema(description = "产品ID") private Long productId; }