package com.gkhy.safePlatform.equipment.model.dto.req;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
public class SafeMaterialModReq {
|
@NotNull(message = "主键不可为空!")
|
private Long id;
|
/**
|
* 物资类型id
|
*/
|
@NotNull(message = "物资类型不可为空!")
|
private Long materialClassifyId;
|
/**
|
* 部门id
|
*/
|
@NotNull(message = "所属部门不可为空!")
|
private Long depId;
|
/**
|
* 物资名称
|
*/
|
@NotBlank(message = "安全物资名称不可为空!")
|
private String materialName;
|
/**
|
* 是否是耗材(0是, 1否)
|
*/
|
@NotNull(message = "是否是耗材不可为空!")
|
private Byte consumable;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getMaterialClassifyId() {
|
return materialClassifyId;
|
}
|
|
public void setMaterialClassifyId(Long materialClassifyId) {
|
this.materialClassifyId = materialClassifyId;
|
}
|
|
public Long getDepId() {
|
return depId;
|
}
|
|
public void setDepId(Long depId) {
|
this.depId = depId;
|
}
|
|
public String getMaterialName() {
|
return materialName;
|
}
|
|
public void setMaterialName(String materialName) {
|
this.materialName = materialName;
|
}
|
|
public Byte getConsumable() {
|
return consumable;
|
}
|
|
public void setConsumable(Byte consumable) {
|
this.consumable = consumable;
|
}
|
}
|