EquipmentSparepartSuppliesInspectAddDto.java 3.1 KB
package com.skua.modules.supplies.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 物料抽检 add
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="EquipmentSparepartSuppliesInspectAddDto", description="物料抽检 add")
public class EquipmentSparepartSuppliesInspectAddDto {

	/**抽检单号*/
    @ApiModelProperty(value = "抽检id")
	private String inspectId;

	/**抽检单号*/
    @ApiModelProperty(value = "抽检单号")
	private String inspectOrder;
	/**物料id*/
    @ApiModelProperty(value = "物料id")
	@NotBlank
	private String suppliesId;
	/**仓库id*/
	@NotBlank
    @ApiModelProperty(value = "仓库id")
	private String suppliesWarehouseId;
	/**检验员*/
	@Excel(name = "检验员", width = 15)
    @ApiModelProperty(value = "检验员")
	private String inspector;
	/**抽检数量*/
    @ApiModelProperty(value = "抽检数量")
	private BigDecimal inspectNum;
	/**质量情况*/
    @ApiModelProperty(value = "质量情况(字典[supplies_inspect_quality_result])")
	private String qualityResult;
	/**综合评价*/
    @ApiModelProperty(value = "综合评价")
	private String evaluate;
	/**附件url 以,分割)*/
    @ApiModelProperty(value = "附件url 以,分割)")
	private String accessories;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "抽检时间")
	private Date inspectTime;

	@ApiModelProperty(value = "抽检详情")
    private List<IspectDetailAddDTO> inspectDetailList;

//	@ApiModel(value="EquipmentSparepartSuppliesInspectAddDto#IspectDetail", description="物料抽检详情 add")
	@Data
    public static class IspectDetailAddDTO{
		/**检验内容*/
		@Excel(name = "检验内容", width = 15)
		@ApiModelProperty(value = "检验内容")
		private java.lang.String inspectContent;
		/**检验方法*/
		@Excel(name = "检验方法", width = 15)
		@ApiModelProperty(value = "检验方法")
		private java.lang.String inspectWay;
		/**数据*/
		@Excel(name = "数据", width = 15)
		@ApiModelProperty(value = "数据")
		private java.lang.String data;
		/**检验结果*/
		@Excel(name = "检验结果", width = 15)
		@ApiModelProperty(value = "检验结果")
		private java.lang.String inspectResult;
		/**国家标准/检验依据*/
		@Excel(name = "国家标准/检验依据", width = 15)
		@ApiModelProperty(value = "国家标准/检验依据")
		private java.lang.String inspectStandard;
		/**备注*/
		@Excel(name = "备注", width = 15)
		@ApiModelProperty(value = "备注")
		private java.lang.String remark;
	}
}