From 8abe275e36823f1065300af45e1f7a9a68f549a7 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期三, 06 九月 2023 16:14:40 +0800 Subject: [PATCH] 修改bug --- standard-server/src/main/java/com/yuanchu/limslaboratory/pojo/Product.java | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/standard-server/src/main/java/com/yuanchu/limslaboratory/pojo/Product.java b/standard-server/src/main/java/com/yuanchu/limslaboratory/pojo/Product.java index 14a985e..720a24d 100644 --- a/standard-server/src/main/java/com/yuanchu/limslaboratory/pojo/Product.java +++ b/standard-server/src/main/java/com/yuanchu/limslaboratory/pojo/Product.java @@ -60,11 +60,36 @@ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date updateTime; - @ApiModelProperty(value = "涔愯閿�", hidden = true) + @ApiModelProperty(value = "鐗堟湰", hidden = true) private Integer version; @ApiModelProperty(value = "鍏宠仈 鍨嬪彿id", example = "1", hidden = true) private Integer specifications_id; + public Product() { + } + public Product(Integer id, String name, String father, String unit, String required, String internal, Integer state, Date createTime, Date updateTime, Integer version, Integer specifications_id) { + this.id = id; + this.name = name; + this.father = father; + this.unit = unit; + this.required = required; + this.internal = internal; + this.state = state; + this.createTime = createTime; + this.updateTime = updateTime; + this.version = version; + this.specifications_id = specifications_id; + } + + public Product(String name, String father, String unit, Date createTime, Date updateTime, Integer version, Integer specifications_id) { + this.name = name; + this.father = father; + this.unit = unit; + this.createTime = createTime; + this.updateTime = updateTime; + this.version = version; + this.specifications_id = specifications_id; + } } -- Gitblit v1.9.3