Browse Source

fix:修改数据库文件 增加系统配置和点位的sql语句

master
王梦远 2 months ago
parent
commit
3f252785bc
  1. 34
      src/main/resources/sql/init.sql

34
src/main/resources/sql/init.sql

@ -35,6 +35,26 @@ CREATE TABLE IF NOT EXISTS device_position
create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT OR IGNORE INTO device_position (id, name, code, type, position)
VALUES ('1', '预充防滴落距离', 'antiDripDistance', 'DISTANCE', '0'),
('2', '溶液首次预充距离', 'solutionPreFillDistance', 'DISTANCE', '10'),
('3', '稀硝酸预充距离', 'thinPreFillDistance', 'DISTANCE', '10'),
('4', '浓硝酸预充距离', 'thickPreFillDistance', 'DISTANCE', '10'),
('5', '蒸馏水预充距离', 'waterPreFillDistance', 'DISTANCE', '10'),
('6', '托盘试管水平间距', 'trayTubeHorizontalSpacingDistance', 'DISTANCE', '10'),
('7', '转运模块X轴拿取托盘进出卡槽移动距离', 'transferModuleXPickTrayMoveDistance', 'DISTANCE', '3'),
('8', '加液模块电机下降进入试管加液位置', 'solutionModuleMotorDownInTubeAddPositon', 'POSITION', '2'),
('9', '加液模块电机下降进入试管抽取位置', 'solutionModuleMotorDownInTubeExtPositon', 'POSITION', '5'),
('10', '转运模块Z轴拿取托盘时起下降的高度位置', 'transferModuleZPickTrayDownPositon', 'POSITION', '2'),
('11', '开门位置', 'doorOpenPosition', 'POSITION', '10'),
('12', '关门位置', 'doorClosePosition', 'POSITION', '0'),
('13', '上料区托盘夹爪位置点', 'feedAreaTrayPoint', 'POINT_3D', '10,10,10'),
('14', '加液时托盘位置点', 'liquidAreaTrayPoint', 'POINT_3D', '10,10,10'),
('15', '加热区1托盘夹爪位置点', 'heatArea1TrayClawPoint', 'POINT_3D', '10,10,10'),
('16', '加热区2托盘夹爪位置点', 'heatArea2TrayClawPoint', 'POINT_3D', '10,10,10'),
('17', '加热区3托盘夹爪位置点', 'heatArea3TrayClawPoint', 'POINT_3D', '10,10,10'),
('18', '加热区4托盘夹爪位置点', 'heatArea4TrayClawPoint', 'POINT_3D', '10,10,10');
-- 系统配置 表
CREATE TABLE IF NOT EXISTS system_config
@ -46,11 +66,17 @@ CREATE TABLE IF NOT EXISTS system_config
create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT OR IGNORE INTO system_config (id, name, code, value)
VALUES ('1', '稀硝酸容量与泵行程比率', 'scale_thin', '100'),
('2', '浓硝酸容量与泵行程比率', 'scale_thick', '100'),
('3', '蒸馏水容量与泵行程比率', 'scale_water', '100'),
('4', '废液容量与泵行程比率', 'scale_waste', '100');
VALUES ('1', '稀硝酸容量与泵行程比率', 'scale_thin', '1'),
('2', '浓硝酸容量与泵行程比率', 'scale_thick', '1'),
('3', '蒸馏水容量与泵行程比率', 'scale_water', '1'),
('4', '废液容量与泵行程比率', 'scale_waste', '1'),
('5', '蒸馏水容量与泵行程比率', 'scale_vacant', '1'),
('6', '空气转换系数', 'volume_clean', '1'),
('7', '清洁时加水的量 ml', 'number_reduce', '5'),
('8', '抽液时机蠕动泵的转数', 'cycle_clean_max', '8'),
('9', '蠕动泵最大转速限制', 'liquid_max_speed', '150');
-- 系统日志 表

Loading…
Cancel
Save