package com.thhy.mobile.modules.biz.steelcheck.entity;
|
|
import com.thhy.general.annotations.Idkey;
|
import com.thhy.mobile.modules.biz.steelproduce.entity.SteelProduce;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
public class SteelStockRecord implements Serializable {
|
|
@Idkey
|
private String recordId;
|
|
private String steelRecordId;
|
|
private String modCheckId;
|
|
/**
|
* 块ID
|
*/
|
|
|
private String blockId;
|
|
|
|
private Date createTime;
|
|
/**
|
* 项目ID
|
*/
|
|
|
private String proId;
|
|
/**
|
* 配筋ID
|
*/
|
|
|
private String reinforcementId;
|
|
/**
|
* 尺寸
|
*/
|
|
|
private String sizeId;
|
|
/**
|
* 库存
|
*/
|
|
|
private double stock;
|
|
private int type;
|
|
|
public SteelStockRecord() {
|
}
|
|
public SteelStockRecord(SteelProduce steelProduce) {
|
this.proId = steelProduce.getProId();
|
this.sizeId = steelProduce.getSizeId();
|
this.reinforcementId = steelProduce.getReinforcementId();
|
this.blockId = steelProduce.getBlockNum();
|
this.type = 1;
|
this.stock = 1;
|
}
|
|
public SteelStockRecord(SteelProduce steelProduce,boolean plus) {
|
this.proId = steelProduce.getProId();
|
this.sizeId = steelProduce.getSizeId();
|
this.reinforcementId = steelProduce.getReinforcementId();
|
this.blockId = steelProduce.getBlockNum();
|
this.type = 2;
|
this.stock = 1;
|
}
|
}
|