From e0a97ee100c9a1e522663db84757fb504fb1d5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Sun, 27 Apr 2025 15:44:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/gd/app/model/entity/Container.java | 2 +- src/main/resources/sql/init.sql | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/iflytop/gd/app/model/entity/Container.java b/src/main/java/com/iflytop/gd/app/model/entity/Container.java index 7e667ac..6524cf9 100644 --- a/src/main/java/com/iflytop/gd/app/model/entity/Container.java +++ b/src/main/java/com/iflytop/gd/app/model/entity/Container.java @@ -19,7 +19,7 @@ public class Container extends BaseEntity { @Schema(description = "溶液id") private Long solutionId; - @Schema(description = "机器id") + @Schema(description = "泵id") private String pumpId; @NotBlank diff --git a/src/main/resources/sql/init.sql b/src/main/resources/sql/init.sql index 6519c02..8aa0818 100644 --- a/src/main/resources/sql/init.sql +++ b/src/main/resources/sql/init.sql @@ -42,7 +42,9 @@ CREATE TABLE IF NOT EXISTS container ( solution_id INTEGER, pump_id TEXT, capacity_total INTEGER, - capacity_used INTEGER + capacity_used INTEGER, + create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); INSERT OR IGNORE INTO container (id, type, solution_id, pump_id, capacity_total, capacity_used)