132 lines
6.3 KiB
Plaintext
132 lines
6.3 KiB
Plaintext
|
v4.0
|
|||
|
1.sys_device_type表 启用other字段,0表示2d,1表示3d,v4.0加入,空表示2d
|
|||
|
2.ten_device表增加两个字段,识别阈值:recognize_score_3d,检测方式:detection_type
|
|||
|
3.ten_person表增加5个字段:depth,face_model,source_file,camera_param
|
|||
|
4.ten_record表增加8个字段:depth,source_file,duration,threshold,distance,score3d,temperature,camera_param
|
|||
|
|
|||
|
|
|||
|
v4.0 数据库修改内容
|
|||
|
alter table ten_device_copy1
|
|||
|
ADD COLUMN recognize_score3d varchar(30) DEFAULT '62,65' COMMENT '3d识别阈值',
|
|||
|
ADD COLUMN detection_type tinyint(1) DEFAULT 0 COMMENT '0:默认2d检测, 1:3d检测';
|
|||
|
|
|||
|
|
|||
|
alter table ten_person_copy1
|
|||
|
ADD COLUMN depth varchar(200) COMMENT '深度图片',
|
|||
|
ADD COLUMN face_model varchar(200) COMMENT '脸模',
|
|||
|
ADD COLUMN source_file varchar(200) COMMENT '源文件',
|
|||
|
ADD COLUMN camera_param varchar(200) COMMENT '相机参数';
|
|||
|
|
|||
|
alter table ten_record_9999999999999
|
|||
|
ADD COLUMN depth varchar(200) COMMENT '深度图片',
|
|||
|
ADD COLUMN source_file varchar(200) COMMENT '源文件',
|
|||
|
ADD COLUMN camera_param varchar(200) COMMENT '相机参数',
|
|||
|
ADD COLUMN duration int(11) COMMENT '耗时',
|
|||
|
ADD COLUMN threshold varchar(50) COMMENT '阈值',
|
|||
|
ADD COLUMN distance float COMMENT '距离',
|
|||
|
ADD COLUMN score3d varchar(50) COMMENT '分数',
|
|||
|
ADD COLUMN temperature float COMMENT '体温';
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
------------------------v8.0 http协议版本,数据库更新说明:先执行以下sql语句,在跑批处理程序-----------------
|
|||
|
1.ten_device表增加字段:app_language,lat,lon
|
|||
|
2.ten_person表增加字段:thd_feature,dept_id
|
|||
|
3.ten_person表person_type字段默认5000
|
|||
|
4.sys_menu表增加4条参数2001,2002,2003,2004
|
|||
|
5.ten_company表增加type_id字段关联
|
|||
|
6.ten_label表type字段类型修改为int
|
|||
|
7.增加表 ten_cell_dept
|
|||
|
8.增加表 ten_device_operate_log
|
|||
|
9.增加表 ten_company_type
|
|||
|
10.页面修改角色
|
|||
|
|
|||
|
|
|||
|
|
|||
|
alter table ten_device ADD COLUMN app_language tinyint(1) DEFAULT 0 COMMENT 'app版本';
|
|||
|
alter table ten_device ADD COLUMN lat varchar(50) DEFAULT '' COMMENT '纬度';
|
|||
|
alter table ten_device ADD COLUMN lon varchar(50) DEFAULT '' COMMENT '经度';
|
|||
|
|
|||
|
alter table ten_person ADD COLUMN thd_feature varchar(10240) COMMENT '3d特征';
|
|||
|
alter table ten_person ADD COLUMN dept_id bigint(20) COMMENT '部门id';
|
|||
|
alter table ten_person ALTER COLUMN person_type SET DEFAULT 5000;
|
|||
|
|
|||
|
INSERT INTO `sys_menu` VALUES (2001, 3, '设备Log', 'sys/deviceLog', 'sys:devicelog', 1, 'shebei', 6, 'system_devicelog');
|
|||
|
INSERT INTO `sys_menu` VALUES (2002, 1210, '操作记录', 'ten/deviceoperatelog', 'ten:deviceoperatelog', 1, 'shebei', 6, 'tenant_deviceoperatelog');
|
|||
|
INSERT INTO `sys_menu` VALUES (2003, 1234, '组织管理', 'ten/celldept', 'ten:celldept', 1, 'shebei', 6, 'tenant_celldept');
|
|||
|
INSERT INTO `sys_menu` VALUES (2004, 1220, '单位类别', 'ten/companytype', 'ten:companytype', 1, 'shebei', 6, 'tenant_companytype');
|
|||
|
|
|||
|
alter table ten_company ADD COLUMN type_id bigint(20) COMMENT '类别id';
|
|||
|
|
|||
|
ALTER TABLE ten_label MODIFY COLUMN type INT(11);
|
|||
|
|
|||
|
CREATE TABLE `ten_cell_dept` (
|
|||
|
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门/楼栋',
|
|||
|
`parent_id` bigint(20) DEFAULT NULL COMMENT '父级目录',
|
|||
|
`cell_id` bigint(20) NOT NULL COMMENT '小区ID',
|
|||
|
`name` varchar(200) DEFAULT NULL COMMENT '名称',
|
|||
|
`lable` varchar(100) DEFAULT NULL COMMENT '标签',
|
|||
|
`lat` varchar(50) DEFAULT '' COMMENT '纬度',
|
|||
|
`lon` varchar(50) DEFAULT '' COMMENT '经度',
|
|||
|
`other` varchar(200) DEFAULT '' COMMENT '其他',
|
|||
|
`remark` varchar(100) DEFAULT '' COMMENT '备注',
|
|||
|
`picture` varchar(1024) DEFAULT '' COMMENT '照片',
|
|||
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
`create_by` varchar(100) DEFAULT '' COMMENT '创建人',
|
|||
|
`last_update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
|
|||
|
`last_update_by` varchar(100) DEFAULT '' COMMENT '更新人',
|
|||
|
`delete_flag` tinyint(1) DEFAULT '0' COMMENT '0未删除1删除',
|
|||
|
`tenant_id` bigint(20) unsigned zerofill DEFAULT '00000000000000000000' COMMENT '运营商ID',
|
|||
|
`xa_sync` tinyint(1) DEFAULT '0' COMMENT '第三方是否同步1是0否默认0',
|
|||
|
`p_id` int(18) DEFAULT NULL COMMENT '地址序号',
|
|||
|
`dzbm` varchar(100) DEFAULT NULL COMMENT '地址编码',
|
|||
|
`is_room` tinyint(1) DEFAULT '0' COMMENT '是否是户室0否1是',
|
|||
|
`room_type` tinyint(1) DEFAULT '0' COMMENT '类型:自住,出租',
|
|||
|
PRIMARY KEY (`dept_id`)
|
|||
|
) ENGINE=InnoDB AUTO_INCREMENT=37291 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|||
|
CREATE TABLE `ten_company_type` (
|
|||
|
`type_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|||
|
`name` varchar(100) DEFAULT '' COMMENT '标签名称',
|
|||
|
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
`create_by` varchar(100) DEFAULT '' COMMENT '创建人',
|
|||
|
`last_update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
|||
|
`last_update_by` varchar(100) DEFAULT '' COMMENT '更新人',
|
|||
|
`delete_flag` tinyint(1) DEFAULT '0' COMMENT '0未删除1删除',
|
|||
|
`tenant_id` bigint(20) NOT NULL COMMENT '运营商ID',
|
|||
|
PRIMARY KEY (`type_id`) USING BTREE
|
|||
|
) ENGINE=InnoDB AUTO_INCREMENT=10033 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='标签';
|
|||
|
|
|||
|
CREATE TABLE `ten_device_operate_log` (
|
|||
|
`log_id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|||
|
`sn` varchar(100) DEFAULT NULL,
|
|||
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
|||
|
`operation` varchar(200) DEFAULT NULL COMMENT '用户操作',
|
|||
|
`tenant_id` bigint(20) DEFAULT NULL COMMENT '运营商Id',
|
|||
|
PRIMARY KEY (`log_id`)
|
|||
|
) ENGINE=InnoDB AUTO_INCREMENT=667 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|||
|
CREATE TABLE `sys_device_log` (
|
|||
|
`log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|||
|
`sn` varchar(50) DEFAULT NULL,
|
|||
|
`create_time` datetime DEFAULT NULL,
|
|||
|
`log` varchar(16000) DEFAULT NULL,
|
|||
|
PRIMARY KEY (`log_id`) USING BTREE
|
|||
|
) ENGINE=InnoDB AUTO_INCREMENT=418 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
------------------------v9.0 考勤版本-----------------
|
|||
|
1.增加表ten_rule
|
|||
|
2.增加表ten_schedule
|
|||
|
3.增加表ten_check
|
|||
|
4.增加表ten_check_schedule
|
|||
|
5.menu表增加2010,2011,2012,2013,2014五条记录
|
|||
|
|
|||
|
------------------------掌静脉支持,人员表增加三个字段-----------------
|
|||
|
alter table ten_person ADD COLUMN pv_left text COMMENT '左手';
|
|||
|
alter table ten_person ADD COLUMN pv_right text COMMENT '右手';
|
|||
|
alter table ten_person ADD COLUMN feature_type tinyint(2) COMMENT '特征类型1:2d,2:3d,3掌静脉';
|