PurchasePlanItem.java 3.6 KB
package com.skua.modules.erp.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.skua.core.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * 采购计划物料清单
 */
@Data
@TableName("erp_purchase_plan_item")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="erp_purchase_plan_item对象", description="采购计划物料清单")
public class PurchasePlanItem implements  Serializable{

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
	private String id;
	/**采购计划编号*/
	@Excel(name = "采购计划编号", width = 15)
    @ApiModelProperty(value = "采购计划编号")
	private String planId;
	/**物料类别编号*/
	@Excel(name = "物料类别编号", width = 15)
    @ApiModelProperty(value = "物料类别编号")
	@Dict(dictTable = "equipment_sparepart_type", dicCode="id", dicText = "item_text")
	private String sparepartType;

	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
	@ApiModelProperty(value = "物料名称")
	private String sparepartName;

    @ApiModelProperty(value = "物料编号")
	@Dict(dictTable = "equipment_sparepart_supplies", dicCode="id", dicText = "sparepart_name")
	private String sparepartId;
	/**规格型号*/
	@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
	private String specification;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
	private String measuringUnit;

	@Excel(name = "物料属性", width = 15)
	@ApiModelProperty(value = "物料属性")
	@Dict(dicCode = "sparepart_attribute")
	private String sparepartAttribute;

	/**计划采购数量*/
	@Excel(name = "计划采购数量", width = 15)
    @ApiModelProperty(value = "计划采购数量")
	private String purchaseNum;


	/**单价*/
	@Excel(name = "单价", width = 15)
	@ApiModelProperty(value = "单价")
	private String unitPrice;

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

	@Excel(name = "物料用途", width = 15)
	@ApiModelProperty(value = "物料用途")
	private String purpose;


	@Excel(name = "去年出库数量", width = 15)
	@ApiModelProperty(value = "去年出库数量")
	private Integer outNum;

	@Excel(name = "总价", width = 15)
	@ApiModelProperty(value = "总价")
	private String totalPrice;

	@TableField(exist=false)
	@ApiModelProperty(value = "物料类别名称")
	private String sparepartCode;

	@TableField(exist=false)
	@ApiModelProperty(value = "物料类别名称")
	private String sparepartTypeName;



	@TableField(exist=false)
	@ApiModelProperty(value = "所属厂站名称")
	private String departName;

	@TableField(exist=false)
	@ApiModelProperty(value = "计划年")
	private String 	applyYear;


	@TableField(exist=false)
	@Excel(name = "已采购数量", width = 15)
	@ApiModelProperty(value = "已采购数量")
	private String usePurchaseNum;

	public String getUsePurchaseNum() {
		if(usePurchaseNum == null ) usePurchaseNum = "0";
		return usePurchaseNum;
	}
}