Browse Source

fix:修复缺少字段问题

tags/freeze
白凤吉 3 months ago
parent
commit
e0a97ee100
  1. 2
      src/main/java/com/iflytop/gd/app/model/entity/Container.java
  2. 4
      src/main/resources/sql/init.sql

2
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

4
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)

Loading…
Cancel
Save