From 1d320caa43b26d4c38a97948316dd57839be09b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 25 Jul 2025 20:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iflytop/colortitration/common/model/entity/Crafts.java | 12 +++++++++++- src/main/resources/sql/init.sql | 14 +++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java b/src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java index 4570826..16e0ede 100644 --- a/src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java +++ b/src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java @@ -19,9 +19,19 @@ public class Crafts extends BaseEntity { @Schema(description = "工艺名称") private String name; + @Schema(description = "液体体积") + private Double sampleVolume; + + @Schema(description = "空白体积") + private Double blankVolume; + + @Schema(description = "溶液浓度") + private Double solutionConcentration; + @NotNull @NotBlank @Schema(description = "工艺步骤") private String steps; -} + +} \ No newline at end of file diff --git a/src/main/resources/sql/init.sql b/src/main/resources/sql/init.sql index ec4ef7e..8882673 100644 --- a/src/main/resources/sql/init.sql +++ b/src/main/resources/sql/init.sql @@ -94,9 +94,13 @@ CREATE TABLE IF NOT EXISTS color -- crafts 工艺 表 CREATE TABLE IF NOT EXISTS crafts ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - name VARCHAR NOT NULL, - steps TEXT, - create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR NOT NULL, + steps TEXT, + sample_volume FLOAT, -- 液体体积 + blank_volume FLOAT, -- 空白体积 + solution_concentration FLOAT, -- 溶液浓度 + create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); +