From b00cdfe5acc430347ac61a1ea194989a6a4f4cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Wed, 30 Jul 2025 17:13:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=A1=A8=E7=BB=93=E6=9E=84=E3=80=81=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/handacid/common/model/entity/Channel.java | 3 +++ src/main/resources/sql/init.sql | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/java/com/iflytop/handacid/common/model/entity/Channel.java b/src/main/java/com/iflytop/handacid/common/model/entity/Channel.java index eb2522b..7bd2249 100644 --- a/src/main/java/com/iflytop/handacid/common/model/entity/Channel.java +++ b/src/main/java/com/iflytop/handacid/common/model/entity/Channel.java @@ -25,6 +25,9 @@ public class Channel extends BaseEntity { @Schema(description = "溶液浓度") private Integer concentration; + @Schema(description = "添加溶液量") + private Double targetVolume; + @Schema(description = "当前溶液量") private Double currentVolume; diff --git a/src/main/resources/sql/init.sql b/src/main/resources/sql/init.sql index 15734a6..7abc626 100644 --- a/src/main/resources/sql/init.sql +++ b/src/main/resources/sql/init.sql @@ -31,6 +31,7 @@ CREATE TABLE IF NOT EXISTS channel ( code TEXT,--通道code solution_id INTEGER,--绑定的溶液id concentration INTEGER,--溶液浓度 + target_volume REAL,--添加溶液量 current_volume REAL,--当前溶液量 received_volume REAL,--领取溶液量 create_time TEXT DEFAULT CURRENT_TIMESTAMP,