package com.whyc.pojo;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.apache.ibatis.type.Alias;
|
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* 物料
|
*/
|
@TableName(value = "tb_material")
|
@Alias("Material")
|
public class Material {
|
|
private Integer id;
|
@ApiModelProperty("母料编号")
|
private String type;
|
@ApiModelProperty("子件编码")
|
private String subCode;
|
@ApiModelProperty("子件名称")
|
private String subName;
|
@ApiModelProperty("子件型号")
|
private String subModel;
|
@ApiModelProperty("单位")
|
private String unit;
|
|
@TableField(exist = false)
|
@ApiModelProperty("备注")
|
private String notes;
|
private String pictureUrl;
|
private String fileUrl;
|
@ApiModelProperty("上传人")
|
private Long upUserId;
|
private Date createDate;
|
private Date updateDate;
|
@ApiModelProperty(value = "是否可以表示",notes ="1可用,0不可用")
|
@TableLogic(value = "1",delval = "0")
|
private int status;
|
|
@ApiModelProperty("工程图纸url")
|
private String dwgUrl;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "物料与产品的关联关系")
|
private List<MaterialProductHistory> mproductHistorys;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "包含物料编码的产品")
|
private List<Product> products;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "附件锁定信息")
|
private List<AttachLock> attachLocks;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "是否存在附件:1存在,0无")
|
private int hasAttachFlag;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "附件目录下的文件列表")
|
private List attachFileList;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getSubCode() {
|
return subCode;
|
}
|
|
public void setSubCode(String subCode) {
|
this.subCode = subCode;
|
}
|
|
public String getSubName() {
|
return subName;
|
}
|
|
public void setSubName(String subName) {
|
this.subName = subName;
|
}
|
|
public String getSubModel() {
|
return subModel;
|
}
|
|
public void setSubModel(String subModel) {
|
this.subModel = subModel;
|
}
|
|
public String getUnit() {
|
return unit;
|
}
|
|
public void setUnit(String unit) {
|
this.unit = unit;
|
}
|
|
public String getNotes() {
|
return notes;
|
}
|
|
public void setNotes(String notes) {
|
this.notes = notes;
|
}
|
|
public String getPictureUrl() {
|
return pictureUrl;
|
}
|
|
public void setPictureUrl(String pictureUrl) {
|
this.pictureUrl = pictureUrl;
|
}
|
|
public String getFileUrl() {
|
return fileUrl;
|
}
|
|
public void setFileUrl(String fileUrl) {
|
this.fileUrl = fileUrl;
|
}
|
|
public Long getUpUserId() {
|
return upUserId;
|
}
|
|
public void setUpUserId(Long upUserId) {
|
this.upUserId = upUserId;
|
}
|
|
public Date getCreateDate() {
|
return createDate;
|
}
|
|
public void setCreateDate(Date createDate) {
|
this.createDate = createDate;
|
}
|
|
public Date getUpdateDate() {
|
return updateDate;
|
}
|
|
public void setUpdateDate(Date updateDate) {
|
this.updateDate = updateDate;
|
}
|
|
public String getDwgUrl() {
|
return dwgUrl;
|
}
|
|
public void setDwgUrl(String dwgUrl) {
|
this.dwgUrl = dwgUrl;
|
}
|
|
public int getStatus() {
|
return status;
|
}
|
|
public void setStatus(int status) {
|
this.status = status;
|
}
|
|
public List<MaterialProductHistory> getMproductHistorys() {
|
return mproductHistorys;
|
}
|
|
public void setMproductHistorys(List<MaterialProductHistory> mproductHistorys) {
|
this.mproductHistorys = mproductHistorys;
|
}
|
|
public List<Product> getProducts() {
|
return products;
|
}
|
|
public void setProducts(List<Product> products) {
|
this.products = products;
|
}
|
|
public List<AttachLock> getAttachLocks() {
|
return attachLocks;
|
}
|
|
public void setAttachLocks(List<AttachLock> attachLocks) {
|
this.attachLocks = attachLocks;
|
}
|
|
public int getHasAttachFlag() {
|
return hasAttachFlag;
|
}
|
|
public void setHasAttachFlag(int hasAttachFlag) {
|
this.hasAttachFlag = hasAttachFlag;
|
}
|
|
public List getAttachFileList() {
|
return attachFileList;
|
}
|
|
public void setAttachFileList(List attachFileList) {
|
this.attachFileList = attachFileList;
|
}
|
}
|