4x/irrigation-water-measure-ba.../0script/sql/irrigation_water_measure-20...

571 lines
42 KiB
MySQL
Raw Normal View History

2024-12-26 19:24:07 +08:00
-- irrigation_water_measure.t_sluice_formula definition
CREATE TABLE `t_sluice_formula` (
`id` bigint NOT NULL,
`formula_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '公式名称',
`building_type` tinyint(1) DEFAULT NULL COMMENT '建筑类型 11:明渠矩形直立式单孔 12:明渠矩形直立式单孔有跌坎21:矩形暗涵直立式单孔 31:圆形暗涵单孔32:圆形暗涵单孔斜闸门41:明渠矩形直立式多孔42:明渠矩形直立式多孔有跌坎43:明渠矩形直立式多孔(长闸墩)',
`flow_state` tinyint(1) DEFAULT NULL COMMENT '水流形态:0:闸门全开自由流 1:闸门全开淹没流 2:有闸控制自由流 3:有闸控制淹没流',
`single_hole` tinyint(1) DEFAULT NULL COMMENT '是否单孔:0否 1是',
`operation_type` tinyint(1) DEFAULT NULL COMMENT '0:手动',
`formula_pic` varchar(255) DEFAULT NULL COMMENT '公式图片',
`sluice_pic` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '闸门图片',
`remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '备注',
`tenant_id` bigint DEFAULT NULL COMMENT '租户id',
`application_id` bigint DEFAULT NULL COMMENT '应用id',
`create_at` datetime DEFAULT NULL COMMENT '创建时间',
`update_at` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='闸门公式表';
-- irrigation_water_measure.t_sluice_measure definition
CREATE TABLE `t_sluice_measure` (
`id` bigint NOT NULL,
`device_id` bigint NOT NULL COMMENT '闸门设备id',
`building_type` tinyint(1) DEFAULT NULL COMMENT '建筑类型 11:明渠矩形直立式单孔 12:明渠矩形直立式单孔有跌坎21:矩形暗涵直立式单孔 31:圆形暗涵单孔32:圆形暗涵单孔斜闸门41:明渠矩形直立式多孔42:明渠矩形直立式多孔有跌坎43:明渠矩形直立式多孔(长闸墩)',
`status` tinyint(1) DEFAULT NULL COMMENT '状态:0禁用 1启用',
`tenant_id` bigint DEFAULT NULL COMMENT '租户id',
`application_id` bigint DEFAULT NULL COMMENT '应用id',
`create_at` datetime DEFAULT NULL COMMENT '创建时间',
`update_at` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `t_sluice_measure_unique` (`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='闸门量水表';
-- irrigation_water_measure.t_sluice_measure_param definition
CREATE TABLE `t_sluice_measure_param` (
`id` bigint NOT NULL,
`ref_id` bigint DEFAULT NULL COMMENT '关联的闸门量水表id',
`flow_state` tinyint(1) DEFAULT NULL COMMENT '水流形态 0:闸门全开自由流 1:闸门全开淹没流 2:有闸控制自由流 3:有闸控制淹没流',
`wing_wall_type` tinyint(1) DEFAULT NULL COMMENT '翼墙类型 0:扭面翼墙1:平翼墙2:八字翼墙3:平行侧翼墙',
`coefficient` decimal(20,4) DEFAULT NULL COMMENT '流量系数',
`sluice_width` decimal(20,4) DEFAULT NULL COMMENT '闸、涵孔宽',
`tenant_id` bigint DEFAULT NULL COMMENT '租户id',
`application_id` bigint DEFAULT NULL COMMENT '应用id',
`create_at` datetime DEFAULT NULL COMMENT '创建时间',
`update_at` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='闸门量水参数表';
-- 闸门公式数据
INSERT INTO t_sluice_formula (id,formula_name,building_type,flow_state,single_hole,operation_type,formula_pic,sluice_pic,remark,tenant_id,application_id,create_at,update_at) VALUES
(1848898074814971901,'明渠矩形直立单孔',11,0,1,0,'/irrigation-water-measure-resource/images/formula/1-11-1.png','/irrigation-water-measure-resource/images/sluice/11.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971902,'明渠矩形直立单孔',11,1,1,0,'/irrigation-water-measure-resource/images/formula/1-11-2.png','/irrigation-water-measure-resource/images/sluice/11.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971903,'明渠矩形直立单孔',11,2,1,0,'/irrigation-water-measure-resource/images/formula/1-11-3.png','/irrigation-water-measure-resource/images/sluice/11.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971904,'明渠矩形直立单孔',11,3,1,0,'/irrigation-water-measure-resource/images/formula/1-11-4.png','/irrigation-water-measure-resource/images/sluice/11.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971905,'明渠矩形直立单孔(有跌坎)',12,0,1,0,'/irrigation-water-measure-resource/images/formula/1-12-1.png','/irrigation-water-measure-resource/images/sluice/12.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971906,'明渠矩形直立单孔(有跌坎)',12,1,1,0,'/irrigation-water-measure-resource/images/formula/1-12-2.png','/irrigation-water-measure-resource/images/sluice/12.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971907,'明渠矩形直立单孔(有跌坎)',12,2,1,0,'/irrigation-water-measure-resource/images/formula/1-12-3.png','/irrigation-water-measure-resource/images/sluice/12.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971908,'明渠矩形直立单孔(有跌坎)',12,3,1,0,'/irrigation-water-measure-resource/images/formula/1-12-4.png','/irrigation-water-measure-resource/images/sluice/12.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971909,'矩形涵洞直立式单孔',21,0,1,0,'/irrigation-water-measure-resource/images/formula/2-21-1.png','/irrigation-water-measure-resource/images/sluice/21.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971910,'矩形涵洞直立式单孔',21,1,1,0,'/irrigation-water-measure-resource/images/formula/2-21-2.png','/irrigation-water-measure-resource/images/sluice/21.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL);
INSERT INTO t_sluice_formula (id,formula_name,building_type,flow_state,single_hole,operation_type,formula_pic,sluice_pic,remark,tenant_id,application_id,create_at,update_at) VALUES
(1848898074814971911,'矩形涵洞直立式单孔',21,2,1,0,'/irrigation-water-measure-resource/images/formula/2-21-3.png','/irrigation-water-measure-resource/images/sluice/21.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971912,'矩形涵洞直立式单孔',21,3,1,0,'/irrigation-water-measure-resource/images/formula/2-21-4.png','/irrigation-water-measure-resource/images/sluice/21.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971913,'圆形涵洞孔',31,0,1,0,'/irrigation-water-measure-resource/images/formula/3-31-1.png','/irrigation-water-measure-resource/images/sluice/31.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971914,'圆形涵洞孔',31,1,1,0,'/irrigation-water-measure-resource/images/formula/3-31-2.png','/irrigation-water-measure-resource/images/sluice/31.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971915,'圆形涵洞孔',31,2,1,0,'/irrigation-water-measure-resource/images/formula/3-31-3.png','/irrigation-water-measure-resource/images/sluice/31.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971916,'圆形涵洞孔',31,3,1,0,'/irrigation-water-measure-resource/images/formula/3-31-4.png','/irrigation-water-measure-resource/images/sluice/31.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971917,'圆形涵洞孔(斜闸门)',32,0,1,0,'/irrigation-water-measure-resource/images/formula/3-32-1.png','/irrigation-water-measure-resource/images/sluice/32.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971918,'圆形涵洞孔(斜闸门)',32,1,1,0,'/irrigation-water-measure-resource/images/formula/3-32-2.png','/irrigation-water-measure-resource/images/sluice/32.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971919,'圆形涵洞孔(斜闸门)',32,2,1,0,'/irrigation-water-measure-resource/images/formula/3-32-3.png','/irrigation-water-measure-resource/images/sluice/32.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971920,'圆形涵洞孔(斜闸门)',32,3,1,0,'/irrigation-water-measure-resource/images/formula/3-32-4.png','/irrigation-water-measure-resource/images/sluice/32.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL);
INSERT INTO t_sluice_formula (id,formula_name,building_type,flow_state,single_hole,operation_type,formula_pic,sluice_pic,remark,tenant_id,application_id,create_at,update_at) VALUES
(1848898074814971921,'明渠矩形直立式多孔',41,0,0,0,'/irrigation-water-measure-resource/images/formula/4-41-1.png','/irrigation-water-measure-resource/images/sluice/41.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971922,'明渠矩形直立式多孔',41,1,0,0,'/irrigation-water-measure-resource/images/formula/4-41-2.png','/irrigation-water-measure-resource/images/sluice/41.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971923,'明渠矩形直立式多孔',41,2,0,0,'/irrigation-water-measure-resource/images/formula/4-41-3.png','/irrigation-water-measure-resource/images/sluice/41.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971924,'明渠矩形直立式多孔',41,3,0,0,'/irrigation-water-measure-resource/images/formula/4-41-4.png','/irrigation-water-measure-resource/images/sluice/41.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971925,'明渠矩形直立式多孔(有跌坎)',42,0,0,0,'/irrigation-water-measure-resource/images/formula/4-42-1.png','/irrigation-water-measure-resource/images/sluice/42.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971926,'明渠矩形直立式多孔(有跌坎)',42,1,0,0,'/irrigation-water-measure-resource/images/formula/4-42-2.png','/irrigation-water-measure-resource/images/sluice/42.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971927,'明渠矩形直立式多孔(有跌坎)',42,2,0,0,'/irrigation-water-measure-resource/images/formula/4-42-3.png','/irrigation-water-measure-resource/images/sluice/42.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971928,'明渠矩形直立式多孔(有跌坎)',42,3,0,0,'/irrigation-water-measure-resource/images/formula/4-42-4.png','/irrigation-water-measure-resource/images/sluice/42.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971929,'明渠矩形直立式多孔(长闸墩)',43,0,0,0,'/irrigation-water-measure-resource/images/formula/4-43-1.png','/irrigation-water-measure-resource/images/sluice/43.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971930,'明渠矩形直立式多孔(长闸墩)',43,1,0,0,'/irrigation-water-measure-resource/images/formula/4-43-2.png','/irrigation-water-measure-resource/images/sluice/43.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL);
INSERT INTO t_sluice_formula (id,formula_name,building_type,flow_state,single_hole,operation_type,formula_pic,sluice_pic,remark,tenant_id,application_id,create_at,update_at) VALUES
(1848898074814971931,'明渠矩形直立式多孔(长闸墩)',43,2,0,0,'/irrigation-water-measure-resource/images/formula/4-43-3.png','/irrigation-water-measure-resource/images/sluice/43.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL),
(1848898074814971932,'明渠矩形直立式多孔(长闸墩)',43,3,0,0,'/irrigation-water-measure-resource/images/formula/4-43-4.png','/irrigation-water-measure-resource/images/sluice/43.gif','系数说明:
m,φ,μ, μ ,b, g
H, hHh1hg
Z1ZH
m,φ,μ,μ0< m <10<φ<10< μ <10<μ <12*.**
b系数2**.**
g系数: 9.81m/s2
H()
hg
h1()
hHh1()
Z1Z1=H-h1
ZHZH=H- hH',NULL,NULL,NULL,NULL);