EquipmentAdjustAddDTO.java 2.3 KB
package com.skua.modules.supplies.dto;

import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 物料调拨 add
 * @author 邓学龙
 * @date 2022/12/8 23:18
 */
@Data
@ApiModel("EquipmentAdjustAddDTO")
public class EquipmentAdjustAddDTO {

    //***/
    @ApiModelProperty(value = "库存调整id")
    private java.lang.String id;

    @NotBlank
    @ApiModelProperty(value = "所属组织")
    private java.lang.String departId;


    @ApiModelProperty(value = "调整单号")
    private java.lang.String adjustOrder;

    @NotBlank
    @ApiModelProperty(value = "仓库id")
    private java.lang.String suppliesWarehouseId;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "调整时间")
    private java.util.Date adjustTime;

    @ApiModelProperty(value = "经办人")
    private java.lang.String transactBy;

    @ApiModelProperty(value = "备注")
    private java.lang.String remark;

    @NotBlank
    @ApiModelProperty(value = "状态:0=未调整库存数量;1=已调整库存数量")
    private java.lang.String state;

    @Valid
    @NotNull
    @Size(min = 1)
    @ApiModelProperty(value = "调整详情")
    private List<EquipmentAdjustChildAddDTO> adjustChildList = new ArrayList<EquipmentAdjustChildAddDTO>();

    @Data
    public static class EquipmentAdjustChildAddDTO{
        @NotBlank
        @ApiModelProperty(value = "物料id")
        private java.lang.String suppliesId;

        @ApiModelProperty(value = "调整前数量")
        private java.math.BigDecimal beforeNum;

        @ApiModelProperty(value = "调整后数量")
        private java.math.BigDecimal afterNum;

        @ApiModelProperty(value = "调整方式 字典[supplies_num_adjust_type]")
        private java.lang.String adjustWay;

        @ApiModelProperty(value = "调整数量")
        private java.math.BigDecimal adjustNum;
    }

}