EquipmentCheckAddDTO.java 2.0 KB
package com.skua.modules.equipment.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.modules.equipment.entity.EquipmentCheck;
import com.skua.modules.equipment.entity.EquipmentCheckChild;
import com.skua.tool.annotation.BeanAnno;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @author sonin
 * @date 2021/10/11 11:11
 */
@Data
@ApiModel
public class EquipmentCheckAddDTO {

    @ApiModelProperty(value = "盘点id")
    private String checkId;

    @ApiModelProperty(value = "所属机构")
    private String departId;

    @Excel(name = "盘点单号", width = 15)
    @ApiModelProperty(value = "盘点单号")
    private String checkOrder;
    /**
     * 仓库id
     */
    @NotBlank
    @ApiModelProperty(value = "仓库id")
    private String suppliesWarehouseId;
    /**
     * 经办人
     */
    @ApiModelProperty(value = "经办人")
    private String transactBy;

    /**
     * 盘点时间
     */
    @Excel(name = "盘点时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "盘点时间")
    private Date checkTime;

    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态:0=未修正库存数量;1=已修正库存数量")
    @NotBlank
    private String state;

    @Excel(name = "盘点类型", width = 15)
    @ApiModelProperty(value = "盘点类型 字典[supplies_check_type]")
    private String type;

    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;


    @NotNull
    @Size()
    List<EquipmentCheckChild> equipmentCheckChildList;

}