EquipmentPurchaseBatchAddDTO.java 2.7 KB
package com.skua.modules.equipment.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
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;

/**
 * @author sonin
 * @date 2021/10/11 11:11
 */
@Data
@ApiModel
public class EquipmentPurchaseBatchAddDTO {
    /**id*/
    @ApiModelProperty(value = "价格批次id")
    private java.lang.String id;

    /**物料id*/
    @Excel(name = "物料id", width = 15)
    @ApiModelProperty(value = "物料id")
    @NotNull
    private java.lang.String suppliesId;
    /**批次号*/
    @Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    @NotNull
    private java.lang.String batchOrder;
    /**供货商 字典[supplies_purchase_supplier]*/
    @Excel(name = "供货商 字典[supplies_purchase_supplier]", width = 15)
    @ApiModelProperty(value = "供货商 字典[supplies_purchase_supplier]")
    private java.lang.String supplier;
    /**采购id*/
//    @Excel(name = "采购id", width = 15)
//    @ApiModelProperty(value = "采购id")
//    private java.lang.String purchaseId;
    /**采购单号(可能是第三方采购单号)*/
    @Excel(name = "采购单号(可能是第三方采购单号)", width = 15)
    @ApiModelProperty(value = "采购单号")
    @NotNull
    private java.lang.String purchaseOrder;
    /**采购日期*/
    @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 = "采购日期")
    @NotNull
    private java.util.Date purchaseTime;
    /**单价*/
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    @NotNull
    private java.math.BigDecimal unitPrice;
    /**采购数量*/
    @Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    @NotNull
    private java.math.BigDecimal purchaseNum;
    /**总价*/
    @Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    @NotNull
    private java.math.BigDecimal totalPrice;
    /**经办人*/
    @Excel(name = "经办人", width = 15)
    @ApiModelProperty(value = "经办人")
    private java.lang.String transactBy;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;







}