package com.fizz.business.form;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 状态变更form
 *
 * @author chenhao
 * @date 2023/04/27
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ChangePlanStatusForm implements Serializable {

    @NotNull(message = "状态变更类型不能为空")
    @Schema(description = "ONLINE-钢卷上线，UNLOAD-手动卸卷，ALL_RETURN-整卷回退，PRODUCING-生产中，HALF_RETURN-半卷回退，PRODUCT-生产完成，BLOCK-卸卷并封闭")
    private String operation;
    @NotNull(message = "计划id不能为空")
    @Schema(description = "计划id集合")
    private String id;
    @Schema(description = "计划id集合")
    private String matId;

    @Schema(description = "半卷回退新卷号")
    private String returnMatId;
    @Schema(description = "回退重量")
    private Double returnWeight;
}
