package com.dy.pmsGlobal.pojoPlt;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import java.io.Serializable;
|
|
import jakarta.validation.constraints.NotEmpty;
|
import lombok.Data;
|
|
/**
|
* 物料表
|
* @TableName plt_material
|
*/
|
@TableName(value ="plt_material")
|
@Data
|
public class PltMaterial implements Serializable {
|
/**
|
* 编号
|
*/
|
@TableId(type = IdType.AUTO)
|
public Integer id;
|
|
/**
|
* 产品实体编号
|
*/
|
@NotEmpty(message = "产品实体编号不能为空")
|
public Long proId;
|
|
/**
|
* 名称
|
*/
|
@NotEmpty(message = "名称不能为空")
|
public String name;
|
|
/**
|
* 型号
|
*/
|
@NotEmpty(message = "型号不能为空")
|
public String type;
|
|
/**
|
* 长度
|
*/
|
public String length;
|
|
/**
|
* 厂家
|
*/
|
public String factory;
|
|
/**
|
* 是否删除,1是,0否
|
*/
|
@JSONField(serialize = false)
|
public Boolean deleted;
|
|
/**
|
* 备注
|
*/
|
public String remark;
|
}
|