SparepartSettlementVO.java 2.0 KB
package com.skua.modules.erp.vo;

import com.skua.modules.erp.entity.ErpSettlementItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="物料结算对象", description="物料结算对象")
public class SparepartSettlementVO {

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "部门名称")
    private String departName;


    @ApiModelProperty(value = "合同名称")
    private String contractName;
    /**合同编号*/
    @ApiModelProperty(value = "合同编号")
    private String contractCode;


    @ApiModelProperty(value = "药剂名称")
    private String sparepartName;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "产地")
    private String goodOrigin;
    @ApiModelProperty(value = "品牌")
    private String goodBrand;

    @ApiModelProperty(value = "集团名称")
    private String  jtDepartName;

    @ApiModelProperty(value = "结算清单")
    private List<ErpSettlementItemVO> itemList ;


    public SparepartSettlementVO(){

    }

    public SparepartSettlementVO(String projectName,String departName, String contractCode, String sparepartName, String specification, String goodOrigin, String goodBrand) {
        this.projectName = projectName;
        this.contractCode = contractCode;
        this.sparepartName = sparepartName;
        this.specification = specification;
        this.goodOrigin = goodOrigin;
        this.goodBrand = goodBrand;
    }

    public void addErpSettlementItem(ErpSettlementItemVO settlementItem){
        if(itemList  == null ) itemList = new ArrayList<>();
        itemList.add( settlementItem ) ;
    }


}