Browse Source

fix:修改工艺表结构

master
白凤吉 2 weeks ago
parent
commit
1d320caa43
  1. 12
      src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java
  2. 14
      src/main/resources/sql/init.sql

12
src/main/java/com/iflytop/colortitration/common/model/entity/Crafts.java

@ -19,9 +19,19 @@ public class Crafts extends BaseEntity {
@Schema(description = "工艺名称") @Schema(description = "工艺名称")
private String name; private String name;
@Schema(description = "液体体积")
private Double sampleVolume;
@Schema(description = "空白体积")
private Double blankVolume;
@Schema(description = "溶液浓度")
private Double solutionConcentration;
@NotNull @NotNull
@NotBlank @NotBlank
@Schema(description = "工艺步骤") @Schema(description = "工艺步骤")
private String steps; private String steps;
}
}

14
src/main/resources/sql/init.sql

@ -94,9 +94,13 @@ CREATE TABLE IF NOT EXISTS color
-- crafts 工艺 表 -- crafts 工艺 表
CREATE TABLE IF NOT EXISTS 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
); );
Loading…
Cancel
Save