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 | 43 ++++++++++++++++++++++++++++++++++--------- 1 files changed, 34 insertions(+), 9 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 0acfd49..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 @@ -27,26 +27,26 @@ private static final long serialVersionUID = 1L; - @ApiModelProperty(value = "娴嬭瘯鏍囧噯id", hidden = true) + @ApiModelProperty(value = "椤圭洰id", hidden = true) @TableId(value = "id", type = IdType.AUTO) private Integer id; - @ApiModelProperty(value = "娴嬭瘯鏍囧噯鍚嶇О", example = "鍗曚綅闀垮害璐ㄩ噺", required = true) + @ApiModelProperty(value = "椤圭洰鍚嶇О", example = "閾濆寘閽㈣姱閾濈粸绾�", required = true) private String name; - @ApiModelProperty(value = "娴嬭瘯鏍囧噯鐖剁被", example = "閾濆寘閽㈣姱閾濈粸绾�") + @ApiModelProperty(value = "椤圭洰鐖剁被", example = "鍗曚綅闀垮害璐ㄩ噺") private String father; - @ApiModelProperty(value = "鍗曚綅", example = "km", required = true) + @ApiModelProperty(value = "鍗曚綅", example = "km") private String unit; - @ApiModelProperty(value = "鏍囧噯鍊�", example = "<=0.3458", required = true) + @ApiModelProperty(value = "鏍囧噯鍊�", example = "<=0.3458") private String required; - @ApiModelProperty(value = "鍐呮帶鍊�", example = "<=0.3458", required = true) + @ApiModelProperty(value = "鍐呮帶鍊�", example = "<=0.3458") private String internal; - @TableLogic(value = "1", delval = "0") + @ApiModelProperty(value = "閫昏緫鍒犻櫎 姝e父>=1,鍒犻櫎<=0", hidden = true) private Integer state; @@ -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) + @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