package com.dy.pmsGlobal.pojoPlt;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
|
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 jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.*;
|
|
import java.util.Date;
|
import java.util.List;
|
|
@TableName(value="plt_product", autoResultMap = true)
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class PltProduct {
|
/**
|
* 主键
|
*/
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
@TableId(value = "id", type = IdType.INPUT)
|
public Long id;
|
|
/**
|
* 名称
|
*/
|
@NotEmpty(message = "名称不能为空")
|
public String name;
|
|
/**
|
* 型号
|
*/
|
public String type;
|
|
/**
|
* 典型图片
|
*/
|
public Long image;
|
|
@TableField(exist = false)
|
public String imageWebPath;
|
|
@TableField(exist = false)
|
public String imageWebPathZip;
|
|
/**
|
* 技术负责人
|
*/
|
public String director;
|
|
/**
|
* 技术负责人手机号
|
*/
|
public String dMobile;
|
|
@JSONField(serialize = false)
|
public Boolean deleted;
|
|
/**
|
* 创建时间
|
*/
|
public Date dt;
|
|
/**
|
* 备注
|
*/
|
public String remark;
|
|
@NotNull(message = "技术参数不能为空")
|
public List<PltProductParams> params;
|
|
/**
|
* 文件类型:01:工艺文件,02:用户手册,03:物料清单
|
*/
|
@NotNull(message = "工艺文件不能为空")
|
public List<PltProductFile> processDocuments;
|
|
@NotNull(message = "用户手册不能为空")
|
public List<PltProductFile> userManual;
|
|
@NotNull(message = "物料清单不能为空")
|
public List<PltProductFile> materials;
|
|
|
}
|