Browse Source

fix:调整数据库表结构、实体结构

master
白凤吉 4 days ago
parent
commit
b00cdfe5ac
  1. 3
      src/main/java/com/iflytop/handacid/common/model/entity/Channel.java
  2. 1
      src/main/resources/sql/init.sql

3
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;

1
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,

Loading…
Cancel
Save