diff --git a/internal/logic/system/sys_menu.go b/internal/logic/system/sys_menu.go index c05ca44..adbc41e 100644 --- a/internal/logic/system/sys_menu.go +++ b/internal/logic/system/sys_menu.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "github.com/gogf/gf/v2/container/gvar" + "github.com/gogf/gf/v2/database/gdb" "github.com/gogf/gf/v2/errors/gerror" "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gtime" @@ -259,16 +260,55 @@ func (s *sSysMenu) Del(ctx context.Context, menuId int64) (err error) { if menu == nil { return gerror.New("ID错误") } - errorString := checkMenuJoin(ctx, menuId) - if errorString != "" { - return gerror.New(errorString) + //查询是否有子节点 + num, _ := dao.SysMenu.Ctx(ctx).Where(g.Map{ + dao.SysMenu.Columns().ParentId: menuId, + dao.SysMenu.Columns().IsDeleted: 0, + }).Count() + if num > 0 { + return gerror.New("请先删除子节点!") } + + //获取当前登录用户ID loginUserId := service.Context().GetUserId(ctx) - _, err = dao.SysMenu.Ctx(ctx).Data(g.Map{ - dao.SysMenu.Columns().DeletedBy: uint(loginUserId), - dao.SysMenu.Columns().DeletedAt: gtime.Now(), - dao.SysMenu.Columns().IsDeleted: 1, - }).Where(dao.SysMenu.Columns().Id, menuId).Update() + + err = dao.SysMenu.Transaction(ctx, func(ctx context.Context, tx gdb.TX) (err error) { + //删除菜单 + _, err = dao.SysMenu.Ctx(ctx).Data(g.Map{ + dao.SysMenu.Columns().DeletedBy: uint(loginUserId), + dao.SysMenu.Columns().DeletedAt: gtime.Now(), + dao.SysMenu.Columns().IsDeleted: 1, + }).Where(dao.SysMenu.Columns().Id, menuId).Update() + + //删除关联Api + _, err = dao.SysMenuApi.Ctx(ctx).Data(g.Map{ + dao.SysMenuApi.Columns().IsDeleted: 1, + dao.SysMenuApi.Columns().DeletedBy: uint(loginUserId), + dao.SysMenuApi.Columns().DeletedAt: gtime.Now()}).Where(dao.SysMenuApi.Columns().MenuId, menuId).Update() + if err != nil { + return + } + + //删除关联按钮 + _, err = dao.SysMenuButton.Ctx(ctx).Data(g.Map{ + dao.SysMenuButton.Columns().IsDeleted: 1, + dao.SysMenuButton.Columns().DeletedBy: uint(loginUserId), + dao.SysMenuButton.Columns().DeletedAt: gtime.Now()}).Where(dao.SysMenuButton.Columns().MenuId, menuId).Update() + if err != nil { + return + } + + //删除关联列表 + _, err = dao.SysMenuColumn.Ctx(ctx).Data(g.Map{ + dao.SysMenuColumn.Columns().IsDeleted: 1, + dao.SysMenuColumn.Columns().DeletedBy: uint(loginUserId), + dao.SysMenuColumn.Columns().DeletedAt: gtime.Now()}).Where(dao.SysMenuColumn.Columns().MenuId, menuId).Update() + if err != nil { + return + } + + return + }) //获取所有的菜单 _, err = s.GetAll(ctx) if err != nil { @@ -277,44 +317,6 @@ func (s *sSysMenu) Del(ctx context.Context, menuId int64) (err error) { return } -// 查询关联数据是否存在 -func checkMenuJoin(ctx context.Context, menuId int64) string { - num := 0 - //查询是否有子节点 - num, _ = dao.SysMenu.Ctx(ctx).Where(g.Map{ - dao.SysMenu.Columns().ParentId: menuId, - dao.SysMenu.Columns().IsDeleted: 0, - }).Count() - if num > 0 { - return "请先删除子节点!" - } - //查询关联Api - num, _ = dao.SysMenuApi.Ctx(ctx).Where(g.Map{ - dao.SysMenuApi.Columns().MenuId: menuId, - dao.SysMenuApi.Columns().IsDeleted: 0, - }).Count() - if num > 0 { - return "存在菜单API关联!" - } - //查询关联列表 - num, _ = dao.SysMenuButton.Ctx(ctx).Where(g.Map{ - dao.SysMenuButton.Columns().MenuId: menuId, - dao.SysMenuButton.Columns().IsDeleted: 0, - }).Count() - if num > 0 { - return "存在菜单按钮关联!" - } - //查询关联按钮 - num, _ = dao.SysMenuColumn.Ctx(ctx).Where(g.Map{ - dao.SysMenuColumn.Columns().MenuId: menuId, - dao.SysMenuColumn.Columns().IsDeleted: 0, - }).Count() - if num > 0 { - return "存在菜单列表关联!" - } - return "" -} - // GetData 执行获取数据操作 func (s *sSysMenu) GetData(ctx context.Context, title string, status int) (data []*model.SysMenuOut, err error) { m := dao.SysMenu.Ctx(ctx) diff --git a/manifest/docker-compose/iot-open/sagooiot b/manifest/docker-compose/iot-open/sagooiot index f18a64c..b79df9d 100755 Binary files a/manifest/docker-compose/iot-open/sagooiot and b/manifest/docker-compose/iot-open/sagooiot differ diff --git a/manifest/docker-compose/mysql/init/init.sql b/manifest/docker-compose/mysql/init/init.sql index defb3bf..002e0dd 100644 --- a/manifest/docker-compose/mysql/init/init.sql +++ b/manifest/docker-compose/mysql/init/init.sql @@ -1,17 +1,17 @@ /* Navicat Premium Data Transfer - Source Server : iot-local + Source Server : 本地-MYSQL Source Server Type : MySQL - Source Server Version : 80100 (8.1.0) - Source Host : 127.0.0.1:3307 - Source Schema : sagooiot-community + Source Server Version : 80030 (8.0.30) + Source Host : localhost:3306 + Source Schema : sagoo_iot_community Target Server Type : MySQL - Target Server Version : 80100 (8.1.0) + Target Server Version : 80030 (8.0.30) File Encoding : 65001 - Date: 27/02/2024 15:04:24 + Date: 06/03/2024 21:48:01 */ SET NAMES utf8mb4; @@ -64,15 +64,6 @@ CREATE TABLE `alarm_log` ( -- Records of alarm_log -- ---------------------------- BEGIN; -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269666, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":228.57,\"CreateTime\":1708262466},\"vb\":{\"Value\":196.58,\"CreateTime\":1708262466},\"vc\":{\"Value\":219.84,\"CreateTime\":1708262466}}', 'monipower20221103', 't202200510', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269667, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":229.76,\"CreateTime\":1708262466},\"vb\":{\"Value\":214.93,\"CreateTime\":1708262466},\"vc\":{\"Value\":216.63,\"CreateTime\":1708262466}}', 'monipower20221103', 't202200033', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269668, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":220.35,\"CreateTime\":1708262466},\"vb\":{\"Value\":217.5,\"CreateTime\":1708262466},\"vc\":{\"Value\":230.13,\"CreateTime\":1708262466}}', 'monipower20221103', 't202201949', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269669, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":221.83,\"CreateTime\":1708262466},\"vb\":{\"Value\":226.93,\"CreateTime\":1708262466},\"vc\":{\"Value\":190.31,\"CreateTime\":1708262466}}', 'monipower20221103', 't202201742', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269670, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":230.11,\"CreateTime\":1708262466},\"vb\":{\"Value\":195.23,\"CreateTime\":1708262466},\"vc\":{\"Value\":196.2,\"CreateTime\":1708262466}}', 'monipower20221103', 't202200043', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269671, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":230.22,\"CreateTime\":1708262466},\"vb\":{\"Value\":216.74,\"CreateTime\":1708262466},\"vc\":{\"Value\":210.39,\"CreateTime\":1708262466}}', 'monipower20221103', 't202201937', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269672, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":226.51,\"CreateTime\":1708262466},\"vb\":{\"Value\":195.2,\"CreateTime\":1708262466},\"vc\":{\"Value\":219.8,\"CreateTime\":1708262466}}', 'monipower20221103', 't202200044', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269673, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":223.34,\"CreateTime\":1708262466},\"vb\":{\"Value\":224.06,\"CreateTime\":1708262466},\"vc\":{\"Value\":198.68,\"CreateTime\":1708262466}}', 'monipower20221103', 't202201975', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); -INSERT INTO `alarm_log` (`id`, `dept_id`, `type`, `rule_id`, `rule_name`, `level`, `data`, `product_key`, `device_key`, `status`, `created_at`, `updated_by`, `updated_at`, `content`) VALUES (269674, 6, 1, 30, '测试告警信息', 4, '{\"va\":{\"Value\":227.17,\"CreateTime\":1708262466},\"vb\":{\"Value\":203.22,\"CreateTime\":1708262466},\"vc\":{\"Value\":191.44,\"CreateTime\":1708262466}}', 'monipower20221103', 't202200431', 0, '2024-02-18 21:21:07', 0, '2024-02-18 21:21:07', ''); COMMIT; -- ---------------------------- @@ -105,37 +96,6 @@ CREATE TABLE `alarm_rule` ( -- Records of alarm_rule -- ---------------------------- BEGIN; -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 0, '测试', 1, '25', '15', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0},{\"key\":\"sysReportTime\",\"operator\":\"ne\",\"value\":[\"2\"],\"andOr\":1}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[]}]}', 0, 1, 0, 1, '2022-11-13 12:27:24', '2022-11-13 12:27:24', '2022-11-13 05:06:00'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (2, 0, '测试测试测试12', 3, 'monipower20221103', 't20221333', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"vc\",\"operator\":\"gt\",\"value\":[\"160\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0g4d0couk3cgkrqft200fm009z\",\"addressee\":[\"xinjy@qq.com\"]},{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"13700005102\"]}]}', 0, 1, 1, 0, '2022-11-13 13:00:05', '2023-12-08 23:08:44', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (3, 0, 'axtest', 2, '25', '15', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"2022-11-14:10\"],\"andOr\":0},{\"key\":\"\",\"operator\":\"\",\"value\":[],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[]}]}', 0, 6, 0, 0, '2022-11-14 09:26:49', '2023-10-06 10:42:05', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (4, 0, 'test2', 4, '25', '14', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[]}]}', 0, 1, 0, 1, '2022-11-14 11:20:40', '2023-10-05 18:31:58', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (5, 0, 'test3', 3, 'aoxiang_gw', 'aoxiang_d_gw', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"\",\"operator\":\"\",\"value\":[],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"13700005102\"]}]}', 0, 1, 10, 0, '2022-11-14 11:21:44', '2023-11-30 11:45:54', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (6, 0, '北门电表=', 2, 'monipower20221103', 't20221222', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"va\",\"operator\":\"gt\",\"value\":[\"200\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"xhpeng11@163.com\"]}]}', 0, 6, 1, 0, '2022-11-14 14:49:51', '2023-10-06 10:42:03', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (7, 0, '测试名称测试名称测试名称测试名称测试名称', 3, 'ww202211', 'w88991111', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[]}]}', 0, 1, 0, 1, '2022-11-17 14:10:12', '2022-11-17 14:10:12', '2022-11-19 01:40:01'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (8, 0, '测试', 2, 'monipower20221103', 't20221333', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"va\",\"operator\":\"gt\",\"value\":[\"60\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[]}]}', 0, 1, 1, 0, '2022-12-05 17:26:51', '2023-10-07 21:00:09', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 0, '1221', 1, 'monipower20221103', 't20221333', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"va\",\"operator\":\"gt\",\"value\":[\"150\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"\",\"addressee\":[\"11\"]},{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"\",\"addressee\":[\"111\"]}]}', 0, 1, 1, 0, '2022-12-05 17:33:47', '2023-10-06 10:41:58', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (10, 0, '测试', 1, 'monipower20221103', 't20221222', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"va\",\"operator\":\"gt\",\"value\":[\"180\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"15163999200\"]}]}', 0, 1, 1, 1, '2022-12-05 17:36:41', '2022-12-07 07:46:07', '2022-12-08 12:40:10'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (11, 0, '2222', 1, 'ww202211', 'w88991111', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"\",\"addressee\":[\"1111\"]},{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0ari0coq6cnpy9w5z400j0k7dm\",\"noticeTemplate\":\"\",\"addressee\":[\"222\"]}]}', 0, 1, 0, 1, '2022-12-05 17:45:54', '2022-12-05 17:45:54', '2022-12-08 12:40:04'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (12, 0, '123123', 1, 'ww202211', 'w88991111', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"\",\"addressee\":[\"11\"]},{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0ari0coq6cnpy9w5z400j0k7dm\",\"noticeTemplate\":\"\",\"addressee\":[\"111\"]}]}', 0, 1, 0, 0, '2022-12-05 17:47:24', '2023-03-02 12:55:07', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (13, 0, '测试1', 1, 'ww202211', 'w88991111', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"11\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"\",\"addressee\":[\"111\"]}]}', 0, 1, 0, 1, '2022-12-05 17:50:37', '2022-12-05 17:50:37', '2022-12-08 12:39:56'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (14, 0, '冲冲冲', 1, 'ww202211', 'w88991111', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"1vfwi9pb2p0coqh3cc49od4400nvviwj\",\"addressee\":\"111\"},{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0ari0coq6cnpy9w5z400j0k7dm\",\"noticeTemplate\":\"tu0rkg06g30coqhxytbh8ly500ybwlre\",\"addressee\":[\"222\"]}]}', 0, 1, 0, 1, '2022-12-05 17:53:24', '2022-12-05 17:53:24', '2022-12-07 04:45:12'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (15, 0, 'test11', 1, 'ww202211', 'w88991111', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"11\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0ari0coq6cnpy9w5z400j0k7dm\",\"noticeTemplate\":\"tu0rkg06g30coqhxytbh8ly500ybwlre\",\"addressee\":[\"2222\"]},{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0g4d0couk3cgkrqft200fm009z\",\"addressee\":[\"2222\"]}]}', 0, 1, 1, 1, '2022-12-07 12:50:57', '2022-12-07 13:06:20', '2022-12-08 12:39:50'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (16, 0, '测试多号码', 1, 'ww202211', 'w88991111', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"work_weixin\",\"noticeConfig\":\"tu0rkg0en80coq6dc5v5ppy1000ecyo1\",\"noticeTemplate\":\"1vfwi9pb2p0coqh3cc49od4400nvviwj\",\"addressee\":[\"1\",\"2\"]},{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0g4d0couk3cgkrqft200fm009z\",\"addressee\":[\"3\",\"4\",\"7\"]}]}', 0, 1, 1, 1, '2022-12-07 14:22:28', '2022-12-07 14:28:51', '2022-12-08 12:39:45'); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (17, 0, '测试事件上报', 2, 'zkcdgw', 't2023013101', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"CPU_System_Utilization_rate\",\"operator\":\"gt\",\"value\":[\"0.2\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"xinjy@qq.com\"]}]}', 0, 6, 1, 0, '2023-01-18 09:50:44', '2023-04-13 09:29:12', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (18, 0, '告警规则1--', 4, 'aoxiang', 'device1', 2, 4, 'aaa', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"a\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"13612345678\"]}]}', 0, 0, 1, 1, '2023-04-24 15:04:06', '2023-09-25 08:54:51', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (19, 0, 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2ODU2NzA2MzksInVzZXJuYW1lIjoiemhhaXl1amluIn0.xAW8hsN74vWnW6DlL0FWE5rcGBA0tMlyB6VfhaHUY5M', 2, 'aoxiangTest1', 'aoxiangTest11', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"ne\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"123123\",\"12344\"]},{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"123123\",\"12312313\"]}]}', 0, 10, 1, 0, '2023-06-02 09:32:57', '2023-09-20 11:47:43', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (20, 0, '测试1', 2, 'aoxiang_gw', 'aoxiang_d_gw', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"0\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 10, 1, 0, '2023-06-08 19:29:40', '2023-11-21 14:34:15', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (21, 0, 'yukai_ceshi', 2, 'aoxiang_gw', 'aoxiang_d_gw', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"2\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"1111@qq.com\"]},{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"11111\"]}]}', 0, 1, 1, 0, '2023-09-20 11:47:13', '2023-10-06 10:41:56', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (22, 0, '100000', 2, 'aoxiang_gw', 'aoxiang_d_gw', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"101\"],\"andOr\":0},{\"key\":\"sysReportTime\",\"operator\":\"gte\",\"value\":[\"101\"],\"andOr\":1}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"11111@qq.com\"]}]}', 0, 1, 1, 0, '2023-09-20 13:51:51', '2023-09-20 13:51:58', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (23, 0, '0925test111', 1, 'w20230811a', 'w2023080711', 1, 4, 'thing1', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0},{\"key\":\"b10001\",\"operator\":\"lt\",\"value\":[\"2\"],\"andOr\":2}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"11111@qq.com\"]}]}', 0, 1, 1, 0, '2023-09-25 08:56:14', '2023-12-08 23:07:47', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (24, 0, '0925_yukaiceshi', 1, 'w20230811a', 'w2023080711', 1, 4, 'thing1', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"mail\",\"noticeConfig\":\"tu0rkg0g4d0couk34jdudr7100b5f41f\",\"noticeTemplate\":\"tu0rkg0ijj0cozi9ct6u7jr500vs6shu\",\"addressee\":[\"1111@qq.com\"]}]}', 0, 1, 1, 0, '2023-09-25 08:57:07', '2023-10-30 21:52:20', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (25, 0, 'test333', 2, 'test-http', 'httpdevice', 1, 4, 'testevent', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"eq\",\"value\":[\"1\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 1, 0, 0, '2023-09-25 09:38:55', '2024-02-13 23:36:34', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (26, 0, 'test', 4, 'test-http', 'httpdevice', 1, 4, 'testevent', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"\",\"operator\":\"\",\"value\":[],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 1, 1, 0, '2023-10-16 15:17:58', '2023-10-16 15:28:47', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (27, 6, '电表上线测试', 4, 'monipower20221103', 't20221333', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"0\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 1, 1, 0, '2023-10-27 16:08:55', '2023-11-24 12:08:33', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (28, 6, '电表下线测试', 4, 'monipower20221103', 't20221333', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"0\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 1, 1, 0, '2023-10-27 16:10:27', '2023-10-30 21:55:05', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (29, 6, '11111111111111111111333333', 3, 'qmw_ice104', 'all', 1, 2, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"0\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"wework\",\"noticeConfig\":\"dzy2sv05g80cwkq8tkcuk5q1zews1n6e\",\"noticeTemplate\":\"dzy2sv05g80cwkqwyleqf6d2owg7p6ii\",\"addressee\":[\"设备离线\"]}]}', 0, 1, 1, 1, '2023-10-29 15:27:48', '2024-02-13 23:39:56', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (30, 6, '测试告警信息', 5, 'monipower20221103', 'all', 1, 3, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"va\",\"operator\":\"gt\",\"value\":[\"220\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"sms\",\"noticeConfig\":\"tu0rkg0hq90cojuowfh931wi00vbhnck\",\"noticeTemplate\":\"tu0rkg018o0colupp3s7vyv900vk3s6n\",\"addressee\":[\"13700005102\"]}]}', 0, 1, 1, 0, '2023-10-29 15:32:34', '2024-02-18 21:27:37', NULL); -INSERT INTO `alarm_rule` (`id`, `dept_id`, `name`, `level`, `product_key`, `device_key`, `trigger_mode`, `trigger_type`, `event_key`, `trigger_condition`, `action`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (31, 6, 'test11', 2, 'test-http', 'all', 1, 1, '', '{\"triggerCondition\":[{\"filters\":[{\"key\":\"sysReportTime\",\"operator\":\"gt\",\"value\":[\"0\"],\"andOr\":0}],\"andOr\":0}]}', '{\"action\":[{\"sendGateway\":\"\",\"noticeConfig\":\"\",\"noticeTemplate\":\"\",\"addressee\":[\"\"]}]}', 0, 1, 1, 1, '2023-10-29 17:15:20', '2023-12-13 10:20:57', '2024-02-01 21:50:41'); COMMIT; -- ---------------------------- @@ -200,15 +160,6 @@ CREATE TABLE `dev_device` ( -- Records of dev_device -- ---------------------------- BEGIN; -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (7, 0, 'k213213', '设备名称', 18, '备注备注备注', 0, 0, NULL, NULL, NULL, '固件版本号', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 1, 10, '2022-08-15 19:51:01', '2023-06-19 11:34:27', '2023-06-19 11:34:32', 'dianji'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (9, 0, 'device1', '翱翔测试设备', 22, '', 0, 0, NULL, NULL, NULL, '1.1.1', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 6, '2022-09-16 18:39:49', '2022-11-24 15:50:47', '2023-03-23 16:04:47', 'aoxiang'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (10, 0, 'w42134342', '角度传感设备', 23, '', 0, 0, NULL, NULL, NULL, '', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 0, '2022-09-17 15:37:55', '2024-01-17 15:17:54', NULL, 'wt61np'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (11, 0, 'testshebei', '设备测试', 22, '', 0, 0, NULL, NULL, NULL, '', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 6, '2022-09-20 09:24:02', '2022-11-24 15:50:42', '2023-03-23 16:05:00', 'aoxiang'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (12, 0, 't20221103', '测试电表设备', 24, '', 1, 1, NULL, NULL, '2024-01-17 15:15:46', '', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 0, '2022-11-03 16:46:48', '2024-01-17 15:19:44', NULL, 'monipower20221103'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (13, 0, 'w88991111', '办公室环境监测设备', 25, '', 1, 1, NULL, NULL, '2024-01-17 15:30:45', '', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 0, '2022-11-04 09:14:01', '2024-01-17 15:31:38', NULL, 'ww202211'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (14, 0, 't20221222', '北门电表02', 24, '', 1, 1, 30, '2024-01-31 19:45:38', '2024-02-07 07:53:52', '', 0, NULL, NULL, '', 0, '', '', '', 0, NULL, 0, 1, 0, '2022-11-04 15:49:17', '2024-02-07 07:53:52', NULL, 'monipower20221103'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (15, 0, 't20221333', '南门电表03', 24, '', 1, 2, 30, NULL, '2024-01-17 15:30:12', '', 0, NULL, NULL, '', 0, '', '', '', 0, NULL, 0, 1, 0, '2022-11-04 15:49:48', '2024-01-17 15:30:41', NULL, 'monipower20221103'); -INSERT INTO `dev_device` (`id`, `dept_id`, `key`, `name`, `product_id`, `desc`, `metadata_table`, `status`, `online_timeout`, `registry_time`, `last_online_time`, `version`, `tunnel_id`, `lng`, `lat`, `address`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `extension_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `product_key`) VALUES (16, 0, 'tgn22021201', '室内测温插座001', 25, '', 0, 0, NULL, NULL, NULL, '', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, 1, 1, 1, '2022-12-12 15:39:55', '2024-01-17 15:17:30', '2024-01-31 08:30:05', 'ww202211'); COMMIT; -- ---------------------------- @@ -232,17 +183,6 @@ CREATE TABLE `dev_device_gateway` ( -- Records of dev_device_gateway -- ---------------------------- BEGIN; -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'aoxiang_d_gw', 'aoxiang_d_sub', 0, 0, 1, '2023-03-27 17:19:51', '2023-03-27 17:19:51', '2023-05-22 11:57:09'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (2, 'aoxiang_d_gw', 'aoxiang_d_sub', 0, 0, 1, '2023-03-27 17:40:06', '2023-03-27 17:40:06', '2023-05-22 11:57:09'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (3, 'aoxiang_d_gw', 'test_001', 1, 0, 1, '2023-05-22 11:55:54', '2023-05-22 11:55:54', '2023-08-13 21:37:14'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (4, 'aoxiang_d_gw', 'aoxiang_d_sub', 1, 0, 1, '2023-05-22 11:55:54', '2023-05-22 11:55:54', '2023-05-22 11:57:09'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (5, 'aoxiang_d_gw', 'aoxiang_d_sub', 1, 0, 0, '2023-05-22 11:57:17', '2023-05-22 11:57:17', NULL); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (6, 'aoxiang_d_gw', 'test__01', 1, 0, 1, '2023-05-22 11:57:17', '2023-05-22 11:57:17', '2023-08-13 21:37:18'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (7, 'aoxiang_d_gw', 'test_001', 1, 0, 1, '2023-05-22 11:57:27', '2023-05-22 11:57:27', '2023-08-13 21:37:14'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (8, 'opengwtest001', 'aoxiang_test111', 1, 0, 0, '2023-08-12 17:13:20', '2023-08-12 17:13:20', '2023-08-12 19:18:36'); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 'aoxiang_d_gw', 'opengwsonpw20230314', 1, 0, 0, '2023-08-13 21:37:37', '2023-08-13 21:37:37', NULL); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (10, 't20221103', 'qwertyuio', 1, 0, 0, '2023-11-25 22:17:50', '2023-11-25 22:17:50', NULL); -INSERT INTO `dev_device_gateway` (`id`, `gateway_key`, `sub_key`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (11, '12233313123', 'test_chen', 1, 0, 1, '2023-12-06 15:42:03', '2023-12-06 15:42:03', '2023-12-06 15:42:17'); COMMIT; -- ---------------------------- @@ -270,11 +210,6 @@ CREATE TABLE `dev_device_tag` ( -- Records of dev_device_tag -- ---------------------------- BEGIN; -INSERT INTO `dev_device_tag` (`id`, `dept_id`, `device_id`, `device_key`, `key`, `name`, `value`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 0, 3, 'device-3', 'tag-1', '长度', '100', 0, 0, 0, '2022-08-11 16:52:28', '2022-08-11 17:08:32', NULL); -INSERT INTO `dev_device_tag` (`id`, `dept_id`, `device_id`, `device_key`, `key`, `name`, `value`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 0, 25, 'aoxiang_d_sub', 'bbba', '长度', '101', 0, 0, 0, '2023-05-21 11:42:42', '2023-05-21 11:42:42', NULL); -INSERT INTO `dev_device_tag` (`id`, `dept_id`, `device_id`, `device_key`, `key`, `name`, `value`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (11, 0, 24, 'aoxiang_d_gw', 'key111', 'test', '111', 1, 0, 0, '2023-05-21 12:04:44', '2023-05-21 12:04:44', NULL); -INSERT INTO `dev_device_tag` (`id`, `dept_id`, `device_id`, `device_key`, `key`, `name`, `value`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (13, 0, 27, 'testlatlang', 'sdf', 'name', 'value', 1, 0, 0, '2023-05-21 23:10:01', '2023-05-21 23:10:01', NULL); -INSERT INTO `dev_device_tag` (`id`, `dept_id`, `device_id`, `device_key`, `key`, `name`, `value`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (14, 0, 26, 'aoxiangTest11', 'test_tag_1', 'test_tag_1', 'test_tag_1', 1, 0, 0, '2023-05-30 14:54:10', '2023-05-30 14:54:10', NULL); COMMIT; -- ---------------------------- @@ -292,18 +227,6 @@ CREATE TABLE `dev_device_tree` ( -- Records of dev_device_tree -- ---------------------------- BEGIN; -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (1, 1, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (2, 2, 6); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (3, 3, 1); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (6, 7, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (7, 9, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (10, 12, 6); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (11, 13, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (16, 18, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (25, 27, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (28, 30, 0); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (29, 31, 30); -INSERT INTO `dev_device_tree` (`id`, `info_id`, `parent_info_id`) VALUES (30, 32, 30); COMMIT; -- ---------------------------- @@ -344,36 +267,6 @@ CREATE TABLE `dev_device_tree_info` ( -- Records of dev_device_tree_info -- ---------------------------- BEGIN; -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 0, '设备树bbb', 'kwonhs03gv0csogea95xivt100g9vj4p', 't20221333', '这里是所属公司XXX', '7', '沈阳市浑南区XXXX大桥', '133.123123', '42.123123', '张三', '13333333333', '2023-05-17', '2025-05-17', '', 1, 3, 'default', 'default', '热水', 0, 1, 0, '2023-05-17 17:42:58', '2023-12-21 22:37:15', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (2, 0, '设备树aaa', 'kwonhs03gv0csogea95xivt100g9vj4a', '', '', '', '地址', '', '', '联系人', '', '2023-05-17', '2025-05-17', '', 0, 0, '', '', '', 0, 1, 0, '2023-05-17 17:42:58', '2023-06-08 22:08:01', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (3, 0, '设备树ccc', 'kwonhs03gv0csogea95xivt100g9vj4c', 'opengwsonpw20230314', '', '', '地址', '', '', '联系人', '', '2023-06-12', '2023-06-21', '', 0, 0, 'default', 'default', '', 0, 1, 0, '2023-05-17 17:42:58', '2023-06-20 22:13:26', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (5, 0, '123', 'tu0rkg07mo0cssvs4q5aipim00otwykl', '', NULL, NULL, '123', '123', '123', '123', '123', NULL, NULL, '', NULL, NULL, '', '', '', 1, 0, 1, '2023-05-22 22:37:00', '2023-05-22 22:37:00', '2023-05-23 14:48:42'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (6, 0, 'test123', 'tu0rkg0a0w0cstgfz973rq63ymkggmh1', '', NULL, NULL, 'test123', '121', '123', '123', '213', NULL, NULL, '', NULL, NULL, '', '', '', 1, 0, 1, '2023-05-23 14:48:31', '2023-05-23 14:48:31', '2023-05-23 14:49:13'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (7, 0, 'tes123', 'tu0rkg0a0w0cstgugm4lu0p3yrt2gdmw', 'aoxiangTest11', '', '', 'tes123', '12', '123', '12', '13123', '2023-05-16', '2023-05-23', '', 0, 0, '', '', '', 1, 1, 0, '2023-05-23 15:07:26', '2023-06-20 22:13:31', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 0, '设备树aaaa', 'i83px90j020csv77mfhhnotr00dcsife', '', '', '', '地址', '', '', '联系人', '', '2023-11-01', '2023-11-30', '', 1, 3, 'default', '', '', 0, 1, 0, '2023-05-25 15:59:46', '2023-11-19 06:54:27', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (10, 0, 'tew123', 'tu0rkg09fl0ct1inulap4vm400dbvtaw', '', NULL, NULL, '123', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-06-02 02:14:09', '2023-06-02 02:14:09', '2023-06-02 02:14:14'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (11, 0, '123', 'tu0rkg0kh00ct2pk8u0w35z600nrafb0', '', '', '', '123', '', '123', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-06-03 11:51:15', '2023-06-03 11:51:48', '2023-06-03 11:53:10'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (12, 0, '123', 'tu0rkg04ov0ct7bte5rhk012w023bsgj', '', '', '', '123', '123', '123', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 0, '2023-06-08 22:08:16', '2023-06-08 22:08:37', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (13, 0, 'test123', 'fjq2k505ez0cti8k7kflkqsh00w4yykc', '', NULL, NULL, '123', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 0, '2023-06-21 17:54:32', '2023-06-21 17:54:32', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (14, 0, '123', 'dzy2sv055r0cumcszaxkyca1b0flni9n', '', '', '', '12', '', '1', '', '1', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-08-07 21:40:42', '2023-08-07 21:41:07', '2023-08-07 21:54:16'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (15, 0, '设备数1221311', 'dzy2sv09nx0cw5by4gikfxa840x732ls', '13900001', '', '', '11', '', '1', '1', '1', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-10-11 12:37:02', '2023-10-27 20:54:37', '2023-11-13 22:43:22'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (16, 6, '设备数ccc1', 'dzy2sv0az80cweomctlim196j15c2dbd', 'w2023080711', '', '', '辽宁省沈阳市', '', '', '2', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-10-22 12:26:54', '2023-11-17 20:57:06', '2023-11-17 23:43:28'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (17, 6, '设备A', 'dzy2sv012s0cwgn9y59nikstn2pb6w1d', '', NULL, NULL, '辽宁沈阳', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-10-24 19:49:00', '2023-10-24 19:49:00', '2023-10-24 19:50:12'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (18, 6, '设备AAB', 'dzy2sv012s0cwgncrtc5wartq9shywb9', 'aoxiang_d_gw', '555', '7', '辽宁沈阳市', '444.66', '888.554', 'Llily', '024-84956765', '2023-11-01', '2023-11-03', '', 0, 0, 'default', 'default', '', 1, 1, 0, '2023-10-24 19:52:41', '2023-11-20 14:47:24', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (19, 6, '111', 'dzy2sv012s0cwgnk80s09chtykm7pshe', '', NULL, NULL, '111', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-10-24 20:02:25', '2023-10-24 20:02:25', '2023-10-24 20:19:18'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (20, 6, '222', 'dzy2sv012s0cwgnkb4paj2ptym2709mg', '', NULL, NULL, '222', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-10-24 20:02:32', '2023-10-24 20:02:32', '2023-10-24 20:17:29'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (21, 6, '222', 'dzy2sv012s0cwgnke4hmknqtyqd11rym', 'SBBS1', '', '', '333', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-10-24 20:02:39', '2023-10-24 20:07:49', '2023-10-24 20:17:07'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (22, 6, '444', 'dzy2sv012s0cwgnp9bdi8n5u3u6egyj5', '', '', '', '444', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-10-24 20:09:00', '2023-10-24 20:09:50', '2023-10-27 20:48:40'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (23, 6, '222', 'dzy2sv012s0cwgnw10em9fdub6yvo8tb', '', NULL, NULL, '222', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-10-24 20:17:50', '2023-10-24 20:17:50', '2023-10-24 20:19:13'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (24, 6, '22222', 'dzy2sv012s0cwgnw5d0yshwubaf1vvix', '', NULL, NULL, '22222', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-10-24 20:18:00', '2023-10-24 20:18:00', '2023-10-24 20:18:09'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (25, 6, 'A区', 'dzy2sv0i1k0cwj8ny7iaaor4hfi58n7b', '', '', '11', 'A省A市A区', '东经165度', '北纬46度', 'Lily King', '024-76567897', NULL, NULL, '', 0, 0, 'default', 'default', '', 1, 1, 1, '2023-10-27 21:00:01', '2023-10-27 21:00:17', '2023-11-17 09:57:58'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (26, 6, '123', '11tnudac9k0cwxrjtpdxunnarp2tkky8', '', NULL, NULL, '123', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-11-13 22:45:18', '2023-11-13 22:45:18', '2023-11-13 22:45:25'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (27, 6, 'SBBS1', '11tnudac9k0cx0322k9d66jqtmqhzyw8', '', '', '', '辽宁省沈阳市', '123.45', '123.67', '', '', '2023-11-01', '2023-11-30', '', 0, 0, '', '', '', 1, 1, 0, '2023-11-16 16:11:40', '2023-11-16 16:54:08', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (28, 6, '111', '11tnudac9k0cx17b99vexyix9360tg0s', '', NULL, NULL, '1123', '', '', '', '', NULL, NULL, '', 0, 0, '', '', '', 1, 0, 1, '2023-11-17 23:44:24', '2023-11-17 23:44:24', '2023-11-17 23:44:30'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (29, 6, '11121111', '11tnudac9k0cx17bonwqezbx9ejwef3r', '', '', '11', '111', '12', '', '12', '', NULL, NULL, '', 0, 0, '', '', '', 1, 1, 1, '2023-11-17 23:44:58', '2023-11-17 23:47:18', '2023-11-20 14:46:20'); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (30, 6, '停车场设备A区', '11tnuda5af0cx43oi480tczo07o3jxv9', '', '', '0', '辽宁省沈阳市', '', '', '', '', NULL, NULL, '', 0, 0, '', 'default', '', 1, 1, 0, '2023-11-21 09:31:37', '2023-11-21 09:31:45', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (31, 6, 'A区三楼变电器', '11tnuda5af0cx43p6hf5ykpo16hhp2zg', '', NULL, NULL, '辽宁省沈阳市', '', '', '', '', NULL, NULL, '', 0, 0, '', 'default', '', 1, 0, 0, '2023-11-21 09:32:31', '2023-11-21 09:32:31', NULL); -INSERT INTO `dev_device_tree_info` (`id`, `dept_id`, `name`, `code`, `device_key`, `company`, `area`, `address`, `lng`, `lat`, `contact`, `phone`, `start_date`, `end_date`, `image`, `duration`, `time_unit`, `template`, `category`, `types`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (32, 6, 'A区一楼变电站', '11tnuda5af0cx43pmk80z77o1gykbuf1', '', '', '', '辽宁省沈阳市', '', '', '', '', '2023-11-21', '2023-11-22', '', 0, 0, 'default', 'default', '', 1, 1, 0, '2023-11-21 09:33:06', '2023-11-21 09:37:21', NULL); COMMIT; -- ---------------------------- @@ -415,52 +308,6 @@ CREATE TABLE `dev_product` ( -- Records of dev_product -- ---------------------------- BEGIN; -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (18, 0, 'dianji', '电机', 22, 'modbus', 'tcp-server', 0, '网关', '水房电机', 'http://101.200.198.249:8899/upload_file/2022-08-23/cmd37oai1w9scjl2co.png', '{\"key\":\"dianji\",\"name\":\"电机\",\"properties\":[{\"key\":\"property_99\",\"name\":\"属性-9\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"maxLength\":22},\"desc\":\"描述\"},{\"key\":\"property_98\",\"name\":\"属性-9\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"maxLength\":22},\"desc\":\"描述\"},{\"key\":\"property_97\",\"name\":\"属性-9\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"maxLength\":22},\"desc\":\"描述\"},{\"key\":\"property_96\",\"name\":\"属性-9\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"maxLength\":22},\"desc\":\"描述\"},{\"key\":\"property_95\",\"name\":\"属性-9\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"maxLength\":22},\"desc\":\"描述\"},{\"key\":\"aaaaddd\",\"name\":\"ddd\",\"accessMode\":0,\"valueType\":{\"type\":\"object\",\"properties\":[{\"key\":\"ccxcx\",\"name\":\"xx\",\"valueType\":{\"type\":\"int\",\"unit\":\"x\"},\"desc\":\"\"},{\"key\":\"ccxcx\",\"name\":\"dda\",\"valueType\":{\"type\":\"long\",\"unit\":\"ss\"},\"desc\":\"\"}]},\"desc\":\"\"}],\"functions\":[{\"key\":\"CLOSE\",\"name\":\"关机\",\"inputs\":[{\"key\":\"AA\",\"name\":\"AA\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"\"}],\"events\":null,\"tags\":[]}', 1, '', 0, 0, '', '', '', 0, '', 1, 10, 1, '2022-08-16 08:50:40', '2024-01-30 22:16:23', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (20, 0, 'hhdhhsj', '测试', 22, 'modbus', 'tcp-client', 0, '设备', '', '', '{\"key\":\"hhdhhsj\",\"name\":\"测试\",\"properties\":[{\"key\":\"csss\",\"name\":\"测试\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"1\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"test2311\",\"name\":\"tttt\",\"inputs\":[{\"key\":\"aaa2123\",\"name\":\"321\",\"valueType\":{\"type\":\"string\",\"maxLength\":1,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"111\"},{\"key\":\"qq12323\",\"name\":\"213123\",\"valueType\":{\"type\":\"int\",\"max\":1,\"min\":2,\"unit\":\"3\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"4\"}],\"outputs\":[],\"desc\":\"\"}],\"events\":null,\"tags\":null}', 1, '', 0, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 1, '2022-09-14 09:12:02', '2023-09-19 18:05:03', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (22, 0, 'aoxiang', '翱翔测试产品', 22, 'modbus', 'tcp-server', 0, '设备', '', '', '{\"key\":\"aoxiang\",\"name\":\"翱翔测试产品\",\"properties\":[{\"key\":\"pr1\",\"name\":\"属性1\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"个\"},\"desc\":\"\"},{\"key\":\"pr2\",\"name\":\"属性2\",\"accessMode\":1,\"valueType\":{\"type\":\"string\",\"maxLength\":200},\"desc\":\"\"},{\"key\":\"cesgi\",\"name\":\"测试1\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"1\"},\"desc\":\"\"}],\"functions\":null,\"events\":[{\"key\":\"aaa\",\"name\":\"aaa\",\"level\":1,\"outputs\":[{\"key\":\"a\",\"name\":\"a\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"b\",\"name\":\"b\",\"valueType\":{\"type\":\"string\"},\"desc\":\"\"},{\"key\":\"c\",\"name\":\"c\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"}],\"tags\":[{\"key\":\"author\",\"name\":\"作者\",\"accessMode\":1,\"valueType\":{\"type\":\"string\",\"maxLength\":50},\"desc\":\"\"}]}', 1, '', 0, 0, '', '', '', 0, '', 1, 10, 1, '2022-09-16 18:35:51', '2024-01-30 22:16:54', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (23, 0, 'wt61np', '物联姿态传感器', 9, 'WT61NP', 'udp', 0, '设备', '', 'http://zhgy.sagoo.cn:8899/upload_file/2022-09-17/cmy7zn612zvc9r60cr.jpg', '{\"key\":\"wt61np\",\"name\":\"WT61NP物联姿态传感器\",\"properties\":[{\"key\":\"ax\",\"name\":\"X轴\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":5,\"unit\":\"度\"},\"desc\":\"滚转角\"},{\"key\":\"ay\",\"name\":\"Y轴\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":5,\"unit\":\"度\"},\"desc\":\"俯仰角\"},{\"key\":\"az\",\"name\":\"Z轴\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":5,\"unit\":\"度\"},\"desc\":\"偏航角\"},{\"key\":\"t1\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"度\"},\"desc\":\"温度\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 0, NULL, NULL, NULL, 0, NULL, 1, 1, 1, '2022-09-17 07:39:26', '2024-01-30 22:17:04', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (24, 0, 'monipower20221103', '模拟测试电表2022', 9, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"monipower20221103\",\"name\":\"模拟测试电表2022\",\"properties\":[{\"key\":\"va\",\"name\":\"A相电压\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vb\",\"name\":\"B相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vc\",\"name\":\"C相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"ia\",\"name\":\"A相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ib\",\"name\":\"A相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ic\",\"name\":\"C相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"vab\",\"name\":\"AB相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vbc\",\"name\":\"BC线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vca\",\"name\":\"CA线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"pa\",\"name\":\"A相有功功率\\t\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pb\",\"name\":\"B相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pc\",\"name\":\"C相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"testobject\",\"name\":\"测试属性\",\"accessMode\":0,\"valueType\":{\"type\":\"object\",\"properties\":[{\"key\":\"testobj1\",\"name\":\"测试结构体参数1\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}]},\"desc\":\"测试\"}],\"functions\":[{\"key\":\"openclose\",\"name\":\"open\",\"inputs\":[{\"key\":\"channel1\",\"name\":\"通道1\",\"valueType\":{\"type\":\"boolean\",\"trueText\":\"1\",\"falseText\":\"2\",\"trueValue\":true},\"desc\":\"22\"},{\"key\":\"channel2\",\"name\":\"通道2\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"resp\",\"name\":\"resp\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"},{\"key\":\"openchannel\",\"name\":\"测试\",\"inputs\":[{\"key\":\"channel3\",\"name\":\"channel3\",\"valueType\":{\"type\":\"string\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"channel4\",\"name\":\"channel4\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"ceshi\",\"name\":\"测试\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"},{\"key\":\"setStatus\",\"name\":\"设置开关状态\",\"inputs\":[{\"key\":\"status\",\"name\":\"状态\",\"valueType\":{\"type\":\"boolean\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"outputs\":[{\"key\":\"resSratus\",\"name\":\"返回状态\",\"valueType\":{\"type\":\"boolean\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"h11\",\"name\":\"h11111\",\"level\":1,\"outputs\":[],\"desc\":\"111\"}],\"tags\":[{\"key\":\"aa111\",\"name\":\"a11\\\"\\u003e\\u003c/div\\u003e\\u003cscript\\u003ealert(\'xss\')\\u003c/script\\u003e//\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":1000},\"desc\":\"111111\"}]}', 1, '', 1, 1, '', '', '', 0, '', 1, 1, 0, '2022-11-03 16:45:50', '2024-01-31 10:06:51', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (25, 0, 'ww202211', '室内环境监测设备01', 9, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"ww202211\",\"name\":\"室内环境监测设备01\",\"properties\":[{\"key\":\"t\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"度\"},\"desc\":\"adminthinglinks\"},{\"key\":\"h\",\"name\":\"湿度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"湿度\"},\"desc\":\"\"},{\"key\":\"pa\",\"name\":\"气压\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"s111\",\"name\":\"111\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"t1\",\"name\":\"t1\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"V\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"A\",\"name\":\"1\",\"inputs\":[],\"outputs\":[],\"desc\":\"\"}],\"events\":null,\"tags\":null}', 1, '', 1, 0, NULL, NULL, NULL, 0, NULL, 1, 1, 0, '2022-11-04 09:11:44', '2023-08-24 14:46:36', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (26, 0, 'tgnsncw', '设备-编辑', 31, 'WT61NP', 'tcp', 0, '设备', '编辑-描述', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-04-25/cs5ons7ftd8az5n9fj.png', '{\"key\":\"tgnsncw\",\"name\":\"室内测温插座\",\"properties\":[{\"key\":\"signal\",\"name\":\"信号质量\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"1:低;2:中;3:高\"},{\"key\":\"battery\",\"name\":\"电池质量\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"1:低;2:中;3:高\"},{\"key\":\"temperature\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":1,\"unit\":\"℃\"},\"desc\":\"\"},{\"key\":\"humidity\",\"name\":\"湿度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":1,\"unit\":\"%rh\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 0, '', '', '', 0, '', 1, 10, 1, '2022-12-12 15:38:51', '2024-01-30 22:16:31', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (28, 0, 'test230109', 'test', 31, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"test230109\",\"name\":\"test\",\"properties\":[{\"key\":\"va\",\"name\":\"电量\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 0, NULL, NULL, NULL, 0, NULL, 6, 0, 6, '2023-01-09 11:07:15', '2023-01-09 11:35:21', '2023-01-09 11:35:30'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (29, 0, 'pcm350tcp', '中电350智能电表', 9, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"pcm350tcp\",\"name\":\"中电350智能电表\",\"properties\":[{\"key\":\"va\",\"name\":\"A相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vb\",\"name\":\"B相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vc\",\"name\":\"C相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"ia\",\"name\":\"A相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ib\",\"name\":\"B相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ic\",\"name\":\"C相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"pjxd\",\"name\":\"平均项电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":0},\"desc\":\"\"},{\"key\":\"pjxdl\",\"name\":\"平均项电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"vab\",\"name\":\"AB线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vbc\",\"name\":\"BC线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vca\",\"name\":\"CA线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"pjxxdy\",\"name\":\"平均线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"pa\",\"name\":\"A相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pb\",\"name\":\"B相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pc\",\"name\":\"C相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"sxyggl\",\"name\":\"三相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"qa\",\"name\":\"A相无功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVar\"},\"desc\":\"\"},{\"key\":\"qb\",\"name\":\"B相无功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVar\"},\"desc\":\"\"},{\"key\":\"qc\",\"name\":\"C相无功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVar\"},\"desc\":\"\"},{\"key\":\"sxwggl\",\"name\":\"三相无功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVar\"},\"desc\":\"\"},{\"key\":\"sa\",\"name\":\"A相视在功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVA\"},\"desc\":\"\"},{\"key\":\"sb\",\"name\":\"B相视在功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVA\"},\"desc\":\"\"},{\"key\":\"sc\",\"name\":\"C相视在功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVA\"},\"desc\":\"\"},{\"key\":\"s\",\"name\":\"三相视在功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVA\"},\"desc\":\"\"},{\"key\":\"pfa\",\"name\":\"A相功率因数\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"VA\"},\"desc\":\"\"},{\"key\":\"pfb\",\"name\":\"B相功率因数\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"VA\"},\"desc\":\"\"},{\"key\":\"pfc\",\"name\":\"C相功率因数\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"VA\"},\"desc\":\"\"},{\"key\":\"pf\",\"name\":\"总功率因数\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"VA\"},\"desc\":\"\"},{\"key\":\"f\",\"name\":\"频率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"Hz\"},\"desc\":\"\"},{\"key\":\"aab\",\"name\":\"A/AB电压相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"},{\"key\":\"bbc\",\"name\":\"B/BC电压相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"},{\"key\":\"cca\",\"name\":\"C/CA电压相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"},{\"key\":\"iaa\",\"name\":\"A相电流相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"},{\"key\":\"iab\",\"name\":\"B相电流相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"},{\"key\":\"iac\",\"name\":\"C相电流相角\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"rad\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 0, '', '', '', 0, '', 1, 10, 1, '2023-01-16 15:38:00', '2023-07-04 11:20:23', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (30, 0, 'zkcdgw', 'ZK智能网关产品', 9, 'SagooMqtt', 'mqtt_server', 0, '网关', '', '', '{\"key\":\"zkcdgw\",\"name\":\"ZK智能网关产品\",\"properties\":[{\"key\":\"CPU_cores\",\"name\":\"CPU核数\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"个\"},\"desc\":\"\"},{\"key\":\"CPU_System_Utilization_rate\",\"name\":\"CPU利用率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"%\"},\"desc\":\"\"},{\"key\":\"Totel_MemorySize\",\"name\":\"总内存\",\"accessMode\":1,\"valueType\":{\"type\":\"long\",\"unit\":\"k\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"shutDownGateway\",\"name\":\"关闭网关\",\"inputs\":[],\"outputs\":null,\"desc\":\"测试功能\"},{\"key\":\"testcall\",\"name\":\"测试添加\",\"inputs\":[{\"key\":\"pa\",\"name\":\"参数pa\",\"valueType\":{\"type\":\"int\",\"unit\":\"1\"},\"desc\":\"测试请求参数\"},{\"key\":\"pb\",\"name\":\"测试输入参数pb\",\"valueType\":{\"type\":\"int\",\"unit\":\"1\"},\"desc\":\"测试请求参数pb\"}],\"outputs\":[{\"key\":\"ok\",\"name\":\"是否成功的标志位\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"请求是否成功\"},{\"key\":\"desc\",\"name\":\"请求是否成功的描述\",\"valueType\":{\"type\":\"string\",\"maxLength\":64},\"desc\":\"请求成功的描述\"}],\"desc\":\"测试请求调用\"}],\"events\":[{\"key\":\"overload\",\"name\":\"网关负载过高\",\"level\":0,\"outputs\":null,\"desc\":\"\"},{\"key\":\"daSDA\",\"name\":\"ASDAadad\",\"level\":1,\"outputs\":null,\"desc\":\"sadfs\"}],\"tags\":null}', 1, '', 1, 0, '', '', '', 0, '', 1, 10, 0, '2023-01-31 16:55:18', '2023-08-17 14:15:11', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (31, 0, 'hengtongtest', '亨通测试产品', 32, 'SagooMqtt', 'mqtt_server', 0, '设备', '测试产品', '', '{\"key\":\"hengtongtest\",\"name\":\"亨通测试产品\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 0, '', '', '', 0, '', 1, 10, 1, '2023-02-21 11:19:30', '2023-08-15 11:49:44', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (32, 0, 'fade', 'fade测试', 31, 'SagooMqtt', 'tcp', 0, '设备', '测试', '', '{\"key\":\"fade\",\"name\":\"fade测试\",\"properties\":[{\"key\":\"msgType\",\"name\":\"消息类型\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"测试\"},{\"key\":\"msgId\",\"name\":\"消息id\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"ports\",\"name\":\"端口数量\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"errType\",\"name\":\"故障 类型\",\"accessMode\":1,\"valueType\":{\"type\":\"array\",\"elementType\":{\"type\":\"int\"}},\"desc\":\"\"}],\"functions\":[{\"key\":\"fade\",\"name\":\"测试勿动\",\"inputs\":[{\"key\":\"request\",\"name\":\"请求参数\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"response\",\"name\":\"响应参数\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"temp_event\",\"name\":\"温度\",\"level\":0,\"outputs\":null,\"desc\":\"\"}],\"tags\":[{\"key\":\"temp\",\"name\":\"温度\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"摄氏度\"},\"desc\":\"\"}]}', 1, '', 0, 3, 'admin', 'Zd-Gf3h8_r4', '', 0, '', 1, 1, 1, '2023-02-21 14:58:17', '2024-01-30 22:16:39', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (33, 0, 'opengw2023', 'OpenGW网关', 9, 'SagooMqtt', 'mqtt_server', 0, '网关', '', '', '{\"key\":\"opengw2023\",\"name\":\"OpenGW网关\",\"properties\":[{\"key\":\"Name\",\"name\":\"名称\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":100},\"desc\":\"\"},{\"key\":\"SN\",\"name\":\"序列号\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":100},\"desc\":\"\"},{\"key\":\"SoftVer\",\"name\":\"软件版本号\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":100},\"desc\":\"\"},{\"key\":\"MemUse\",\"name\":\"内存使用率\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"%\"},\"desc\":\"\"},{\"key\":\"DiskUse\",\"name\":\"磁盘使用率\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"%\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"kk\",\"name\":\"nnn\",\"inputs\":[],\"outputs\":[],\"desc\":\"\"}],\"events\":null,\"tags\":null}', 1, '', 1, 0, NULL, NULL, NULL, 0, NULL, 1, 0, 0, '2023-03-13 16:52:52', '2023-06-07 09:33:30', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (34, 0, 'opengwsonpw01', 'OpenGW网关电表子设备网关电表子设备', 9, 'SagooMqtt', 'mqtt_server', 0, '子设备', '', '', '{\"key\":\"opengwsonpw01\",\"name\":\"OpenGW网关电表子设备\",\"properties\":[{\"key\":\"I\",\"name\":\"电流\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"P\",\"name\":\"有功功率\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"W\"},\"desc\":\"\"},{\"key\":\"Q\",\"name\":\"无功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kVar\"},\"desc\":\"\"},{\"key\":\"S\",\"name\":\"视在功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"VA\"},\"desc\":\"\"},{\"key\":\"PF\",\"name\":\"功率因素\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"cosΦ\"},\"desc\":\"\"},{\"key\":\"U\",\"name\":\"U\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":1},\"desc\":\"\"},{\"key\":\"io\",\"name\":\"io\",\"accessMode\":0,\"valueType\":{\"type\":\"double\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"test_1\",\"name\":\"test_1\",\"inputs\":[],\"outputs\":[],\"desc\":\"\"}],\"events\":[{\"key\":\"test_0\",\"name\":\"test_0\",\"level\":1,\"outputs\":[],\"desc\":\"s\"}],\"tags\":[{\"key\":\"test\",\"name\":\"test\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}]}', 1, '', 1, 2, 'demo', 'demo123456', '', 0, '', 1, 1, 0, '2023-03-14 10:05:13', '2023-10-29 18:58:21', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (35, 0, 'aoxiang_gw', '翱翔产品网关', 31, 'modbus', 'tcp', 0, '网关', '', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-10-24/cwgnhwwcvz7zi38jra.png', '{\"key\":\"aoxiang_gw\",\"name\":\"翱翔产品网关\",\"properties\":[{\"key\":\"a\",\"name\":\"温度a\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"℃\"},\"desc\":\"老数据修改一次\"},{\"key\":\"BB\",\"name\":\"压力\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"Mpa\"},\"desc\":\"\"},{\"key\":\"dxczx\",\"name\":\"xxxxx\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"xx\"},\"desc\":\"\"},{\"key\":\"test_0815\",\"name\":\"测试属性\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"修改一次\"},{\"key\":\"yangchen\",\"name\":\"扬尘\",\"accessMode\":1,\"valueType\":{\"type\":\"string\",\"maxLength\":20},\"desc\":\"\"}],\"functions\":[{\"key\":\"aaaa\",\"name\":\"aaaa\",\"inputs\":[{\"key\":\"aaa\",\"name\":\"aaa\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"\"},{\"key\":\"GNDYBS\",\"name\":\"功能定义名称\",\"inputs\":[{\"key\":\"SRCSBS\",\"name\":\"输入参数名称\",\"valueType\":{\"type\":\"int\",\"unit\":\"浓度值\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"SCCSMC\",\"name\":\"输出参数名称\",\"valueType\":{\"type\":\"long\",\"unit\":\"浓度\"},\"desc\":\"\"}],\"desc\":\"\"}],\"events\":null,\"tags\":null}', 1, '', 1, 3, 'demo', 'demo123456', '', 7, '', 6, 1, 0, '2023-03-27 16:10:22', '2023-10-24 19:59:26', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (36, 0, 'aoxiang_sub', '翱翔子设备3', 31, 'SagooMqtt', 'mqtt_server', 0, '子设备', '', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-04-20/cs1hp5d3pulwzifbks.jpeg', '{\"key\":\"aoxiang_sub\",\"name\":\"翱翔子设备\",\"properties\":[{\"key\":\"b\",\"name\":\"b\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"kw\"},\"desc\":\"\"},{\"key\":\"c\",\"name\":\"c\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 1, '', '', '', 0, '', 6, 10, 1, '2023-03-27 16:10:59', '2023-07-19 00:16:39', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (37, 0, 'aoxiangTest1', '产品-4', 8, 'modbus', 'http', 0, '子设备', '产品描述', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-04-25/cs5g4hf7bhawgxo3di.png', '{\"key\":\"aoxiangTest1\",\"name\":\"产品-1\",\"properties\":[{\"key\":\"a\",\"name\":\"s\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"aa\",\"name\":\"aa\",\"accessMode\":0,\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"},{\"key\":\"bb\",\"name\":\"bbb\",\"accessMode\":0,\"valueType\":{\"type\":\"boolean\",\"trueText\":\"是1\",\"falseText\":\"否1\"},\"desc\":\"\"},{\"key\":\"cc\",\"name\":\"cc\",\"accessMode\":0,\"valueType\":{\"type\":\"date\",\"maxLength\":0},\"desc\":\"\"},{\"key\":\"dd\",\"name\":\"dd\",\"accessMode\":0,\"valueType\":{\"type\":\"array\",\"elementType\":{\"type\":\"\"}},\"desc\":\"dd\"},{\"key\":\"ee\",\"name\":\"ee\",\"accessMode\":0,\"valueType\":{\"type\":\"array\",\"elementType\":{\"type\":\"object\",\"properties\":[{\"key\":\"dd\",\"name\":\"dd\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"d\"}]}},\"desc\":\"\"},{\"key\":\"aaa\",\"name\":\"aaa\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"a\"},\"desc\":\"aa\"},{\"key\":\"xxcv\",\"name\":\"xcv\",\"accessMode\":0,\"valueType\":{\"type\":\"object\",\"properties\":[{\"key\":\"cz\",\"name\":\"zc\",\"valueType\":{\"type\":\"int\",\"unit\":\"aa\"},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"aaaqqaa\",\"name\":\"111\",\"accessMode\":0,\"valueType\":{\"type\":\"object\",\"properties\":[{\"key\":\"dadsa\",\"name\":\"dadsa\",\"valueType\":{\"type\":\"int\",\"unit\":\"dd\"},\"desc\":\"\"}]},\"desc\":\"232\"}],\"functions\":[{\"key\":\"testadd1\",\"name\":\"测试添加\",\"inputs\":[{\"key\":\"A\",\"name\":\"A\",\"valueType\":{\"type\":\"string\",\"maxLength\":1},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"阿斯顿发的撒上的\"},{\"key\":\"beginPlay\",\"name\":\"开始播放\",\"inputs\":[{\"key\":\"deviceNo\",\"name\":\"设备编号\",\"valueType\":{\"type\":\"string\",\"maxLength\":20},\"desc\":\"这里传设备编号\"},{\"key\":\"deviceChannel\",\"name\":\"设备通道\",\"valueType\":{\"type\":\"string\",\"maxLength\":20},\"desc\":\"设备通道\"},{\"key\":\"in_a\",\"name\":\"参数\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"enum_key\",\"name\":\"选择项\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"a\",\"text\":\"第一项\"},{\"value\":\"b\",\"text\":\"第二项\"},{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"摄像头播放\"},{\"key\":\"readdata\",\"name\":\"读实时\",\"inputs\":[{\"key\":\"no\",\"name\":\"设备编号\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"读实时指令\"}],\"events\":[{\"key\":\"AAEE\",\"name\":\"AAEE\",\"level\":0,\"outputs\":[{\"key\":\"AAEE\",\"name\":\"AAEE\",\"valueType\":{\"type\":\"int\",\"unit\":\"E\"},\"desc\":\"E\"}],\"desc\":\"\"}],\"tags\":[{\"key\":\"ee23\",\"name\":\"ee\",\"accessMode\":0,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}]}', 1, '', 0, 3, 'user23', '111', '123123', 1, 'function parse(data) {\n\n var jsonData = JSON.parse(data);\n var detectionPoint1Flow = jsonData[\"Device1\"][\"detection_point1_flow\"];\n var detectionPoint1Temperatures = jsonData[\"Device1\"][\"detection_point1_temperatures\"];\n var detectionPoint1FlowRate = jsonData[\"Device1\"][\"detection_point1_flowRate\"];\n var detectionPoint1Pressure = jsonData[\"Device1\"][\"detection_point1_pressure\"];\n\n var detectionPoint2Flow = jsonData[\"Device1\"][\"detection_point2_flow\"];\n var detectionPoint2Temperatures = jsonData[\"Device1\"][\"detection_point2_temperatures\"];\n var detectionPoint2FlowRate = jsonData[\"Device1\"][\"detection_point2_flowRate\"];\n var detectionPoint2Pressure = jsonData[\"Device1\"][\"detection_point2_pressure\"];\n\n var detectionPoint3Flow = jsonData[\"Device1\"][\"detection_point3_flow\"];\n var detectionPoint3Temperatures = jsonData[\"Device1\"][\"detection_point3_temperatures\"];\n var detectionPoint3FlowRate = jsonData[\"Device1\"][\"detection_point3_flowRate\"];\n var detectionPoint3Pressure = jsonData[\"Device1\"][\"detection_point3_pressure\"];\n \n var subCylinderTemperatures = jsonData[\"Device1\"][\"sub_cylinder_temperatures\"];\n var collectingCylinderPressure = jsonData[\"Device1\"][\"collecting_cylinder_pressure\"];\n\n var time = data[\"time\"]\n\n // 定义要生成的 JSON 数据\n var sagooIotMessage = {\n \"id\": \"123\",\n \"version\": \"1.0\",\n \"sys\": {\n \"ack\": 0\n },\n \"params\": {\n \"detection_point1_flow\": {\n \"value\": 23.6,\n \"time\": 1524448722000\n },\n \"detection_point1_temperatures\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point1_flowRate\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point1_pressure\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point2_flow\": {\n \"value\": 23.6,\n \"time\": 1524448722000\n },\n \"detection_point2_temperatures\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point2_flowRate\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point2_pressure\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point3_flow\": {\n \"value\": 23.6,\n \"time\": 1524448722000\n },\n \"detection_point3_temperatures\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point3_flowRate\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"detection_point3_pressure\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"sub_cylinder_temperatures\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n \"collecting_cylinder_pressure\": {\n \"value\": 23.6,\n \"time\":1524448722000\n },\n },\n \"method\": \"thing.event.property.post\"\n };\n\n var chars = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n var idLength = 16;\n var randomId = \"\";\n for (var i = 0; i < idLength; i++) {\n randomId += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n \n sagooIotMessage[\"id\"] = randomId\n \n \n\n sagooIotMessage[\"params\"][\"detection_point1_flow\"][\"value\"] = detectionPoint1Flow\n sagooIotMessage[\"params\"][\"detection_point1_flow\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point1_temperatures\"][\"value\"] = detectionPoint1Temperatures\n sagooIotMessage[\"params\"][\"detection_point1_temperatures\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point1_flowRate\"][\"value\"] = detectionPoint1FlowRate\n sagooIotMessage[\"params\"][\"detection_point1_flowRate\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point1_pressure\"][\"value\"] = detectionPoint1Pressure\n sagooIotMessage[\"params\"][\"detection_point1_pressure\"][\"time\"] = time\n\n sagooIotMessage[\"params\"][\"detection_point2_flow\"][\"value\"] = detectionPoint2Flow\n sagooIotMessage[\"params\"][\"detection_point2_flow\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point2_temperatures\"][\"value\"] = detectionPoint2Temperatures\n sagooIotMessage[\"params\"][\"detection_point2_temperatures\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point2_flowRate\"][\"value\"] = detectionPoint2FlowRate\n sagooIotMessage[\"params\"][\"detection_point2_flowRate\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point2_pressure\"][\"value\"] = detectionPoint2Pressure\n sagooIotMessage[\"params\"][\"detection_point2_pressure\"][\"time\"] = time\n\n sagooIotMessage[\"params\"][\"detection_point3_flow\"][\"value\"] = detectionPoint3Flow\n sagooIotMessage[\"params\"][\"detection_point3_flow\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point3_temperatures\"][\"value\"] = detectionPoint3Temperatures\n sagooIotMessage[\"params\"][\"detection_point3_temperatures\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point3_flowRate\"][\"value\"] = detectionPoint3FlowRate\n sagooIotMessage[\"params\"][\"detection_point3_flowRate\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"detection_point3_pressure\"][\"value\"] = detectionPoint3Pressure\n sagooIotMessage[\"params\"][\"detection_point3_pressure\"][\"time\"] = time\n\n sagooIotMessage[\"params\"][\"sub_cylinder_temperatures\"][\"value\"] = subCylinderTemperatures\n sagooIotMessage[\"params\"][\"sub_cylinder_temperatures\"][\"time\"] = time\n sagooIotMessage[\"params\"][\"collecting_cylinder_pressure\"][\"value\"] = collectingCylinderPressure\n sagooIotMessage[\"params\"][\"collecting_cylinder_pressure\"][\"time\"] = time\n\n return JSON.stringify(sagooIotMessage, null, 2);\n const now = format(new Date(), \'yyyy-MM-dd HH:mm:ss\'); \nconsole.log(now);\n \n}\n', 0, 10, 1, '2023-03-29 10:22:07', '2023-08-08 20:29:53', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (38, 0, 'test_product_2023', '测试德力信网关产品', 22, 'SagooMqtt', 'mqtt_server', 0, '网关', '', '', '{\"key\":\"test_product_2023\",\"name\":\"测试德力信网关产品\",\"properties\":[{\"key\":\"shidu\",\"name\":\"湿度\",\"accessMode\":0,\"valueType\":{\"type\":\"float\"},\"desc\":\"\"},{\"key\":\"wendu\",\"name\":\"温度\",\"accessMode\":0,\"valueType\":{\"type\":\"float\"},\"desc\":\"\"},{\"key\":\"cc\",\"name\":\"cc\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"c\"},\"desc\":\"cc\"},{\"key\":\"dd\",\"name\":\"dd\",\"accessMode\":0,\"valueType\":{\"type\":\"long\",\"unit\":\"d\"},\"desc\":\"dd\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 1, 'delixin', '6hUs*jAM', '', 0, 'function parse(data) {\n var jsonData = JSON.parse(data);\n var chars = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n var idLength = 16;\n var randomId = \"\";\n for (var i = 0; i < idLength; i++) {\n randomId += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n jsonData.id = randomId;\n return JSON.stringify(jsonData);\n}', 1, 1, 10, '2023-06-04 15:44:11', '2023-06-14 17:37:29', '2023-06-14 17:37:47'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (39, 0, 'w20230811a', '测试202308产品', 9, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"w20230811a\",\"name\":\"测试202308产品\",\"properties\":[{\"key\":\"t\",\"name\":\"T\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"个\"},\"desc\":\"\"},{\"key\":\"h\",\"name\":\"H\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"pa\",\"name\":\"P\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"aa\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"getvar\",\"name\":\"读设备名称\",\"inputs\":[],\"outputs\":[{\"key\":\"var123\",\"name\":\"设备名称\",\"valueType\":{\"type\":\"string\",\"maxLength\":100},\"desc\":\"\"}],\"desc\":\"\"},{\"key\":\"SetVar\",\"name\":\"设置设备名称\",\"inputs\":[{\"key\":\"var123\",\"name\":\"设备名称\",\"valueType\":{\"type\":\"string\",\"maxLength\":100},\"desc\":\"\"}],\"outputs\":[{\"key\":\"bool123\",\"name\":\"设置设备名称结果\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"thing1\",\"name\":\"事件名称\",\"level\":0,\"outputs\":[{\"key\":\"b10001\",\"name\":\"参数名称\",\"valueType\":{\"type\":\"int\",\"unit\":\"a\"},\"desc\":\"参数描述\"}],\"desc\":\"事件描述\"}],\"tags\":[{\"key\":\"a10001\",\"name\":\"名称\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"aa\"},\"desc\":\"\"}]}', 1, '', 0, 1, 'conn-equipment', 'm6C66kV!G!WZVi3x', '', 7, '', 1, 10, 1, '2023-08-07 21:01:14', '2024-01-30 22:17:39', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (40, 0, 'qmw_ice104', 'QmwICE104网关', 9, 'SagooMqtt', 'mqtt_server', 0, '网关', 'QMW的ICE104云网服务网关测试产品', '', '{\"key\":\"qmw_ice104\",\"name\":\"QmwICE104网关\",\"properties\":[{\"key\":\"GatewayVersion\",\"name\":\"网关版本\",\"accessMode\":0,\"valueType\":{\"type\":\"string\"},\"desc\":\"\"},{\"key\":\"ceshi\",\"name\":\"ceshi\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"1\"},\"desc\":\"12\"}],\"functions\":[{\"key\":\"dfsd\",\"name\":\"sdf\",\"inputs\":[{\"key\":\"dsds\",\"name\":\"zsds\",\"valueType\":{\"type\":\"int\",\"unit\":\"sdf\"},\"desc\":\"sdf\"},{\"key\":\"rrrr\",\"name\":\"444\",\"valueType\":{\"type\":\"date\",\"maxLength\":5665432},\"desc\":\"676543\"}],\"outputs\":[],\"desc\":\"sdf\"}],\"events\":[{\"key\":\"ww\",\"name\":\"ss\",\"level\":0,\"outputs\":[{\"key\":\"ww\",\"name\":\"ww\",\"valueType\":{\"type\":\"int\",\"unit\":\"ww\"},\"desc\":\"ww\"}],\"desc\":\"sdsd\"}],\"tags\":null}', 1, '', 0, 1, 'demo-equipment', 'mW*Vz_wtP3MaeEB_', '', 0, '', 1, 10, 0, '2023-08-10 15:55:07', '2024-01-31 22:14:37', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (41, 0, 'q104001', '青104子设备', 9, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"q104001\",\"name\":\"青104子设备\",\"properties\":[{\"key\":\"t\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"度\"},\"desc\":\"\"},{\"key\":\"h\",\"name\":\"湿度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"%rh\"},\"desc\":\"\"},{\"key\":\"DI\",\"name\":\"遥信\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"D\"},\"desc\":\"\"},{\"key\":\"DO1\",\"name\":\"遥控\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"DO\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"open\",\"name\":\"打开\",\"inputs\":[{\"key\":\"aaa\",\"name\":\"1\",\"valueType\":{\"type\":\"int\",\"max\":1,\"min\":2,\"unit\":\"3\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"4\"}],\"outputs\":[],\"desc\":\"\"},{\"key\":\"testParams\",\"name\":\"测试传参\",\"inputs\":[{\"key\":\"arr\",\"name\":\"数组\",\"valueType\":{\"type\":\"array\"},\"desc\":\"数组\"},{\"key\":\"e2\",\"name\":\"e2\",\"valueType\":{\"type\":\"array\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":0,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"elementType\":{\"type\":\"enum\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":0,\"elements\":[{\"value\":\"33\",\"text\":\"df\"}]}},\"desc\":\"\"},{\"key\":\"obj\",\"name\":\"对象\",\"valueType\":{\"type\":\"object\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":0,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"name\",\"name\":\"姓名\",\"valueType\":{\"type\":\"string\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":10,\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"},{\"key\":\"age\",\"name\":\"年龄\",\"valueType\":{\"type\":\"int\",\"max\":100,\"min\":1,\"decimals\":0,\"unit\":\"岁\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":0,\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"w\",\"name\":\"12\",\"valueType\":{\"type\":\"object\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":0,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"sd\",\"name\":\"12\",\"valueType\":{\"type\":\"string\",\"max\":0,\"min\":0,\"decimals\":0,\"unit\":\"\",\"trueText\":\"\",\"falseText\":\"\",\"trueValue\":false,\"falseValue\":false,\"maxLength\":12,\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"测试枚举和数组的传参\"}],\"events\":[{\"key\":\"test132\",\"name\":\"test\",\"level\":0,\"outputs\":[{\"key\":\"bbb331\",\"name\":\"2\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"5\"}],\"desc\":\"\"}],\"tags\":[{\"key\":\"TT\",\"name\":\"TTT\",\"accessMode\":1,\"valueType\":{\"type\":\"long\"},\"desc\":\"TTT\"}]}', 1, '', 0, 1, 'demo-equipment', 'mW*Vz_wtP3MaeEB_', '', 0, '1212', 1, 10, 0, '2023-08-10 16:28:27', '2024-01-31 22:03:43', NULL); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (42, 0, 'aoxiang_0810', '测试', 31, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"aoxiang_0810\",\"name\":\"测试\",\"properties\":[{\"key\":\"pro_1\",\"name\":\"测试属性-1\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"ee\"},\"desc\":\"dsfgds\"}],\"functions\":[{\"key\":\"aa\",\"name\":\"df\",\"inputs\":[{\"key\":\"fd\",\"name\":\"df\",\"valueType\":{\"type\":\"int\",\"unit\":\"df\"},\"desc\":\"df\"}],\"outputs\":[{\"key\":\"df\",\"name\":\"dfd\",\"valueType\":{\"type\":\"int\",\"unit\":\"df\"},\"desc\":\"df\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"asdf_1\",\"name\":\"asdfs_1\",\"level\":0,\"outputs\":[{\"key\":\"dd\",\"name\":\"ffd\",\"valueType\":{\"type\":\"int\",\"unit\":\"df\"},\"desc\":\"dsf\"}],\"desc\":\"撒旦法\"}],\"tags\":[{\"key\":\"sss\",\"name\":\"ss\",\"accessMode\":0,\"valueType\":{\"type\":\"int\",\"unit\":\"ss\"},\"desc\":\"sd\"}]}', 1, '', 0, 1, '', '', '', 0, '', 1, 0, 1, '2023-08-10 17:31:16', '2023-08-15 20:07:25', '2023-08-15 20:07:30'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (43, 0, 'fadetest', 'fade测试产品勿动', 31, 'SagooMqtt', 'tcp', 0, '设备', 'ce', '', '{\"key\":\"fadetest\",\"name\":\"fade测试产品勿动\",\"properties\":[{\"key\":\"dfdfdf\",\"name\":\"dfdfdfd\",\"accessMode\":1,\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 11, '', 1, 10, 10, '2023-08-24 17:59:50', '2023-08-25 10:21:59', '2023-08-25 14:05:19'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (44, 0, 'yukai_test', '产品测试', 31, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"yukai_test\",\"name\":\"产品测试\",\"properties\":null,\"functions\":[{\"key\":\"test123\",\"name\":\"test123\",\"inputs\":[{\"key\":\"teste12\",\"name\":\"2\",\"valueType\":{\"type\":\"int\",\"max\":1,\"min\":2,\"unit\":\"3\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"6\"},{\"key\":\"test321\",\"name\":\"test321\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"},{\"value\":\"4\",\"text\":\"3\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"\"},{\"key\":\"test_huixian\",\"name\":\"回显\",\"inputs\":[{\"key\":\"tt312\",\"name\":\"rere\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"4\"},{\"key\":\"teste42\",\"name\":\"12333\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"},{\"value\":\"4\",\"text\":\"3\"},{\"value\":\"6\",\"text\":\"5\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"tete123\",\"name\":\"321\",\"valueType\":{\"type\":\"int\",\"max\":1,\"min\":2,\"unit\":\"3\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"4\"},{\"key\":\"tea\",\"name\":\"2222\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"},{\"value\":\"4\",\"text\":\"3\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"aaa123\",\"name\":\"aaaa\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"2\",\"text\":\"1\"},{\"value\":\"4\",\"text\":\"3\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"fdfdf123\",\"name\":\"123\",\"valueType\":{\"type\":\"boolean\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"outputs\":[{\"key\":\"dddd333\",\"name\":\"ddd222\",\"valueType\":{\"type\":\"array\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"},{\"key\":\"testa2324\",\"name\":\"4324\",\"valueType\":{\"type\":\"array\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"elementType\":{\"type\":\"object\",\"maxLength\":213123,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"1\",\"name\":\"2\",\"valueType\":{\"type\":\"boolean\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"3123213\"},{\"key\":\"ggggg213123\",\"name\":\"hhhh21323\",\"valueType\":{\"type\":\"object\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"ss11\",\"name\":\"sss22\",\"valueType\":{\"type\":\"int\",\"max\":1,\"min\":2,\"unit\":\"ww\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"ww\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"testtttt11\",\"name\":\"teete\",\"level\":0,\"outputs\":[{\"key\":\"tetete2123\",\"name\":\"3213\",\"valueType\":{\"type\":\"long\",\"max\":1,\"min\":2,\"unit\":\"3\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"4\"},{\"key\":\"tewt333\",\"name\":\"343243\",\"valueType\":{\"type\":\"enum\",\"elements\":[{\"value\":\"34\",\"text\":\"wtete\"},{\"value\":\"34\",\"text\":\"324\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"desc\":\"\"}],\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-09-19 19:20:56', '2023-09-19 21:49:51', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (45, 0, 'test-http', 'http测试产品', 31, 'SagooMqtt', 'http', 0, '设备', '测试http消息上传', '', '{\"key\":\"test-http\",\"name\":\"http测试产品\",\"properties\":[{\"key\":\"testA\",\"name\":\"测试属性\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"S\"},\"desc\":\"定义属性\"},{\"key\":\"_11\",\"name\":\"11\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":0,\"unit\":\"S\"},\"desc\":\"111\"}],\"functions\":[{\"key\":\"_222\",\"name\":\"222\",\"inputs\":[{\"key\":\"_201\",\"name\":\"201\",\"valueType\":{\"type\":\"float\",\"max\":100,\"min\":1,\"decimals\":2,\"unit\":\"S\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"2222\"}],\"outputs\":[],\"desc\":\"222\"}],\"events\":[{\"key\":\"testevent\",\"name\":\"测试事件\",\"level\":0,\"outputs\":[{\"key\":\"eventout1\",\"name\":\"事件输出参数1\",\"valueType\":{\"type\":\"int\",\"max\":100,\"min\":0,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"测试事件输出参数1\"}],\"desc\":\"333333333333333333333333333333333333333333333333333333333333333\"}],\"tags\":[{\"key\":\"_Tag\",\"name\":\"tag100\",\"accessMode\":0,\"valueType\":{\"type\":\"double\",\"decimals\":2,\"unit\":\"kg\"},\"desc\":\"33333333333333333333333333333333333333333333333333333333333333333\"}]}', 1, '', 0, 3, '', '', '', 0, '1', 1, 1, 1, '2023-09-21 23:24:42', '2024-01-30 22:16:00', '2024-01-30 22:17:50'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (46, 0, '1', 'http测试产品2', 31, 'SagooMqtt', 'tcp', 0, '设备', '1', '', '{\"key\":\"1\",\"name\":\"http测试产品\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 1, 1, '2023-09-26 14:57:52', '2023-10-23 21:16:17', '2023-10-23 21:18:19'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (47, 0, ' ', ' ', 31, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\" \",\"name\":\" \",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-09-26 15:31:38', '2023-09-26 15:31:38', '2023-10-22 21:33:23'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (48, 0, '1212', '1212-11', 32, 'SagooMqtt', 'tcp', 0, '网关', '1', '', '{\"key\":\"1212\",\"name\":\"1\",\"properties\":[{\"key\":\"a\",\"name\":\"q\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"22\"},\"desc\":\"1\"}],\"functions\":[{\"key\":\"service1\",\"name\":\"service1\",\"inputs\":[{\"key\":\"servicep1in\",\"name\":\"servicep1in\",\"valueType\":{\"type\":\"string\",\"maxLength\":100,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"servicep1in\"}],\"outputs\":[{\"key\":\"servicep1out\",\"name\":\"servicep1out\",\"valueType\":{\"type\":\"string\",\"maxLength\":100,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"servicep1out\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"event1\",\"name\":\"event1\",\"level\":0,\"outputs\":[{\"key\":\"eventp1\",\"name\":\"eventp1\",\"valueType\":{\"type\":\"int\",\"max\":0,\"min\":10,\"unit\":\"0\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"eventp1\"}],\"desc\":\"eventp1\"}],\"tags\":[{\"key\":\"tag1\",\"name\":\"tag1\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"0\"},\"desc\":\"tag1\"}]}', 1, '', 0, 3, '', '', '', 10, '', 1, 1, 1, '2023-09-26 15:35:50', '2024-01-30 22:15:30', '2024-01-30 22:15:49'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (49, 0, 'q', 'q', 8, 'SagooMqtt', 'tcp', 0, '设备', 'q', '', '{\"key\":\"q\",\"name\":\"q\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-09-28 12:18:57', '2023-09-28 12:18:57', '2023-09-28 12:19:03'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (50, 0, '23-1017-001', '变压器', 47, 'SagooMqtt', 'mqtt_server', 0, '网关', '变压器设备', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-10-17/cwarh46m43dzjwalbe.png', '{\"key\":\"23-1017-001\",\"name\":\"变压器\",\"properties\":[{\"key\":\"a_1\",\"name\":\"aa\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"3\"},\"desc\":\"5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555\"}],\"functions\":[{\"key\":\"_11\",\"name\":\" 22\",\"inputs\":[],\"outputs\":[],\"desc\":\"11111111111111\"}],\"events\":[{\"key\":\"_2\",\"name\":\"12\",\"level\":1,\"outputs\":[{\"key\":\"_2\",\"name\":\"333\",\"valueType\":{\"type\":\"int\",\"max\":0,\"min\":12,\"unit\":\"4\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"666666666666666666666\"}],\"desc\":\"\"}],\"tags\":null}', 0, '', 0, 1, 'root', '123456', '', 0, '', 1, 10, 1, '2023-10-17 21:51:05', '2023-10-25 15:57:11', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (51, 6, '21313123', '产品12', 49, 'SagooMqtt', 'tcp', 0, '设备', '这是产品描述描述', '', '{\"key\":\"21313123\",\"name\":\"产品12\",\"properties\":[],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-10-22 11:43:33', '2023-10-22 11:45:09', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (52, 6, ' ', ' ', 50, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\" \",\"name\":\" \",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-10-22 21:33:38', '2023-10-22 21:33:38', '2023-10-22 21:34:32'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (53, 6, 'CQQ', '温湿度采集器', 50, 'SagooMqtt', 'websocket', 0, '设备', '温湿度采集器', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-10-23/cwftseck12wp6fkmiv.png', '{\"key\":\"CQQ\",\"name\":\"温湿度采集器\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-10-23 20:43:09', '2023-10-23 20:43:09', '2023-10-23 21:18:01'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (54, 6, 'QQ', '温湿度采集器', 46, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"QQ\",\"name\":\"温湿度采集器\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-10-23 21:04:38', '2023-10-23 21:04:38', '2023-10-23 21:04:51'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (55, 6, 'CQQ1', '温湿度采集器', 50, 'SagooMqtt', 'websocket', 0, '设备', '333333333333333333333333333333333333333333333', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-10-23/cwfug70n5igh8riqym.png', '{\"key\":\"CQQ1\",\"name\":\"温湿度采集器\",\"properties\":[{\"key\":\"SX1\",\"name\":\"属性1\",\"accessMode\":1,\"valueType\":{\"type\":\"timestamp\"},\"desc\":\"属性1制度timestamp\"},{\"key\":\"qwertyu\",\"name\":\" \",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"GN1\",\"name\":\"功能1\",\"inputs\":[{\"key\":\"CS1\",\"name\":\"参数1\",\"valueType\":{\"type\":\"date\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"参数1\"}],\"outputs\":[{\"key\":\"SCCS1\",\"name\":\"输出参数1\",\"valueType\":{\"type\":\"date\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"输出参数1\"}],\"desc\":\"功能1\"}],\"events\":[{\"key\":\"SJ1\",\"name\":\"事件1\",\"level\":0,\"outputs\":[{\"key\":\"CS2\",\"name\":\"参数2\",\"valueType\":{\"type\":\"date\",\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"参数2\"}],\"desc\":\"事件1\"}],\"tags\":[{\"key\":\"BQBS1\",\"name\":\"标签1\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":12},\"desc\":\"标签1\"}]}', 0, '', 0, 3, '', '', '', 10, '', 1, 1, 1, '2023-10-23 21:05:16', '2023-10-30 17:20:11', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (56, 6, 'chanpin123', '产品12', 35, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"chanpin123\",\"name\":\"产品12\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-10-30 17:07:16', '2023-10-30 17:07:16', '2023-10-30 17:07:31'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (57, 6, '1234567890', '子设备1', 50, 'SagooMqtt', 'tcp', 0, '子设备', '', '', '{\"key\":\"1234567890\",\"name\":\"子设备1\",\"properties\":[{\"key\":\"wertyuiop\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"℃\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 1, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-10-31 09:33:35', '2024-01-30 22:15:08', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (58, 6, 'qwertyu', '23456789', 50, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"qwertyu\",\"name\":\"23456789\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-11-03 11:28:31', '2023-11-03 11:28:31', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (59, 6, 'test_yukai', '测试', 50, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"test_yukai\",\"name\":\"测试\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 0, 1, '2023-11-03 14:15:10', '2023-11-03 14:15:10', '2023-11-03 14:26:13'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (60, 6, 'test_23123', 'tete', 50, 'SagooMqtt', 'tcp', 0, '设备', '', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-11-08/cwt697f4i1ojylkngo.jpg', '{\"key\":\"test_23123\",\"name\":\"tete\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 10, '', 1, 1, 1, '2023-11-03 14:26:33', '2023-11-08 13:13:24', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (61, 6, 'testament1', 'testament1产品', 49, 'SagooMqtt', 'tcp', 0, '网关', '', '', '{\"key\":\"testament1\",\"name\":\"testament1产品\",\"properties\":[],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-11-16 14:19:00', '2023-11-16 14:20:25', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (62, 6, '1233', 'tete1', 49, 'SagooMqtt', 'tcp', 0, '设备', '', 'https://zhgy.sagoo.cn/base-api/upload_file/2023-11-16/cx02cm23k7zyp8lkji.jpeg', '{\"key\":\"1233\",\"name\":\"tete\",\"properties\":[{\"key\":\"q\",\"name\":\"啊\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"o\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"open\",\"name\":\" \",\"inputs\":[{\"key\":\"q\",\"name\":\"q\",\"valueType\":{\"type\":\"int\",\"max\":32,\"min\":12,\"elements\":[{\"value\":\"\",\"text\":\"\"}],\"properties\":[{\"key\":\"\",\"name\":\"\",\"valueType\":{\"type\":\"\",\"elements\":[{\"value\":\"\",\"text\":\"\"}]},\"desc\":\"\"}]},\"desc\":\"\"}],\"outputs\":[],\"desc\":\"wertyui\"},{\"key\":\"qw\",\"name\":\" \",\"inputs\":[],\"outputs\":[],\"desc\":\" \"},{\"key\":\"qeer\",\"name\":\"qw\",\"inputs\":[],\"outputs\":[],\"desc\":\"123\"}],\"events\":[{\"key\":\"w\",\"name\":\" \",\"level\":0,\"outputs\":[],\"desc\":\"\"}],\"tags\":[{\"key\":\"werwe324234\",\"name\":\"wrwrw2wr34234\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"2\"},\"desc\":\"24424234\"}]}', 0, '', 0, 3, '', '', '', 10, '', 1, 1, 1, '2023-11-16 14:21:12', '2024-01-22 07:06:27', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (63, 6, '4G气感设备', '4G气感', 70, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"4G气感设备\",\"name\":\"4G气感\",\"properties\":null,\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 0, 1, '2023-12-21 23:14:40', '2023-12-21 23:14:40', '2023-12-21 23:16:03'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (64, 6, '4G气感', '4G气感', 70, 'SagooMqtt', 'tcp', 0, '设备', '', '', '{\"key\":\"4G气感\",\"name\":\"4G气感\",\"properties\":[{\"key\":\"inductive_status\",\"name\":\"感应头状态\",\"accessMode\":1,\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"environmentalmonitoringequipment\",\"name\":\"环境监测设备\",\"accessMode\":1,\"valueType\":{\"type\":\"int\",\"unit\":\"℃\"},\"desc\":\"对温度进行监测\"}],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 3, '', '', '', 0, '', 1, 1, 1, '2023-12-21 23:16:36', '2024-01-18 11:19:22', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (65, 6, 'voltmeter', '电压表', 36, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"voltmeter\",\"name\":\"电压表\",\"properties\":[{\"key\":\"temperature\",\"name\":\"温度\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"unit\":\"℃\"},\"desc\":\"\"},{\"key\":\"consumption\",\"name\":\"功耗\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":0,\"unit\":\"va\"},\"desc\":\"\"}],\"functions\":null,\"events\":null,\"tags\":null}', 0, '', 0, 1, '', '', '', 0, '', 1, 0, 1, '2024-01-30 11:21:56', '2024-01-30 14:04:49', '2024-01-30 22:15:20'); -INSERT INTO `dev_product` (`id`, `dept_id`, `key`, `name`, `category_id`, `message_protocol`, `transport_protocol`, `protocol_id`, `device_type`, `desc`, `icon`, `metadata`, `metadata_table`, `policy`, `status`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `script_info`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (66, 6, 'power202401', '智能电表T202401', 73, 'SagooMqtt', 'mqtt_server', 0, '设备', '', '', '{\"key\":\"power202401\",\"name\":\"智能电表T202401\",\"properties\":[{\"key\":\"va\",\"name\":\"A相电压\",\"accessMode\":0,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vb\",\"name\":\"B相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vc\",\"name\":\"C相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"ia\",\"name\":\"A相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ib\",\"name\":\"A相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"ic\",\"name\":\"C相电流\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"A\"},\"desc\":\"\"},{\"key\":\"vab\",\"name\":\"AB相电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vbc\",\"name\":\"BC线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"vca\",\"name\":\"CA线电压\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"V\"},\"desc\":\"\"},{\"key\":\"pa\",\"name\":\"A相有功功率\\t\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pb\",\"name\":\"B相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"},{\"key\":\"pc\",\"name\":\"C相有功功率\",\"accessMode\":1,\"valueType\":{\"type\":\"float\",\"decimals\":2,\"unit\":\"kW\"},\"desc\":\"\"}],\"functions\":[{\"key\":\"openclose\",\"name\":\"open\",\"inputs\":[{\"key\":\"channel1\",\"name\":\"通道1\",\"valueType\":{\"type\":\"boolean\",\"trueText\":\"1\",\"falseText\":\"2\",\"trueValue\":true},\"desc\":\"22\"},{\"key\":\"channel2\",\"name\":\"通道2\",\"valueType\":{\"type\":\"boolean\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"resp\",\"name\":\"resp\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"},{\"key\":\"openchannel\",\"name\":\"测试\",\"inputs\":[{\"key\":\"channel3\",\"name\":\"channel3\",\"valueType\":{\"type\":\"string\"},\"desc\":\"\"}],\"outputs\":[{\"key\":\"channel4\",\"name\":\"channel4\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"},{\"key\":\"ceshi\",\"name\":\"测试\",\"valueType\":{\"type\":\"int\"},\"desc\":\"\"}],\"desc\":\"\"}],\"events\":[{\"key\":\"h11\",\"name\":\"h11111\",\"level\":1,\"outputs\":[],\"desc\":\"111\"}],\"tags\":[{\"key\":\"aa111\",\"name\":\"a11\\\"\\u003e\\u003c/div\\u003e\\u003cscript\\u003ealert(\'xss\')\\u003c/script\\u003e//\",\"accessMode\":0,\"valueType\":{\"type\":\"string\",\"maxLength\":1000},\"desc\":\"111111\"}]}', 1, '', 1, 1, '', '', '', 0, '', 1, 0, 0, '2024-01-31 09:13:56', '2024-02-01 16:52:11', NULL); COMMIT; -- ---------------------------- @@ -488,64 +335,6 @@ CREATE TABLE `dev_product_category` ( -- Records of dev_product_category -- ---------------------------- BEGIN; -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (8, 0, 0, 'key-1', '分类-1', 666, '', 0, 1, 0, '2022-08-04 15:58:48', '2023-10-10 15:05:25', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 0, 0, 'key-12', '分类-12', 66, '12', 0, 1, 0, '2022-08-04 15:59:00', '2023-10-10 15:05:13', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (10, 0, 8, 'key-2', '分类-2', 0, '', 0, 0, 0, '2022-08-04 15:59:28', '2022-08-04 15:59:28', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (11, 0, 8, 'key-3', '分类-3', 0, '', 0, 0, 0, '2022-08-04 15:59:38', '2022-08-10 18:25:48', '2022-08-10 10:30:43'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (12, 0, 10, 'key-3', '分类-3', 0, '', 0, 0, 0, '2022-08-04 15:59:49', '2022-08-04 15:59:49', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (21, 0, 10, 'string', 'string', 0, 'string', 0, 0, 0, '2022-08-11 11:18:12', '2022-08-11 11:23:50', '2022-08-11 03:24:53'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (22, 0, 9, '标识', '测试', 3, '11', 1, 1, 0, '2022-08-13 14:16:19', '2023-10-23 20:32:12', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (23, 0, 4294967295, '1111', '111', 0, '', 1, 0, 0, '2022-08-13 14:25:32', '2022-08-13 14:25:32', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (24, 0, 4294967295, '11111', '1111', 0, '', 1, 0, 0, '2022-08-13 14:25:59', '2022-08-13 14:25:59', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (25, 0, 0, '1111', '111122', 0, '', 1, 1, 0, '2022-08-13 14:26:55', '2022-08-13 14:27:57', '2022-08-13 07:19:41'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (26, 0, 0, '22', '11122111', 0, '11', 1, 0, 0, '2022-08-13 14:28:06', '2022-08-13 14:28:06', '2022-08-13 07:19:37'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (27, 0, 0, '333', '333', 0, '333', 1, 0, 0, '2022-08-13 14:28:42', '2022-08-13 15:19:31', '2022-08-13 07:19:35'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (28, 0, 0, '44', '444', 0, '', 1, 0, 1, '2022-08-13 14:29:59', '2022-08-13 14:29:59', '2022-08-13 07:03:28'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (29, 0, 0, '55', '55', 0, '', 1, 0, 1, '2022-08-13 14:30:34', '2022-08-13 14:30:34', '2022-08-13 07:03:25'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (30, 0, 0, '111', '111', 0, '', 1, 0, 1, '2022-08-15 18:13:56', '2022-08-15 18:13:56', '2022-08-15 10:14:00'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (31, 0, 22, 'test', 'test', 0, '', 1, 10, 0, '2022-09-16 18:31:33', '2023-06-19 11:13:38', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (32, 0, 8, 'sdss', '测试', 0, '', 1, 0, 0, '2022-09-16 18:34:26', '2022-09-16 18:34:26', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (33, 0, 9, 'test', '测试分类呀', 1, '', 1, 0, 1, '2023-03-28 11:12:48', '2023-03-28 11:12:48', '2023-03-28 11:13:31'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (34, 0, 33, 'test2', '测试分类2', 10, '', 1, 1, 1, '2023-03-28 11:13:09', '2023-03-28 11:13:21', '2023-03-28 11:13:29'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (35, 0, 0, '1', '分类-12', 6, '1', 1, 1, 0, '2023-10-10 15:03:18', '2023-10-10 15:05:01', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (36, 0, 0, '电', '电器设备', 1, '电器设备!!!', 1, 1, 0, '2023-10-17 20:17:32', '2023-10-17 21:42:50', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (37, 0, 36, 'Lenovo G', '联想G系列', 2, 'G 系列做工一般,外观普通。综合处理能力中等,显卡wield入门级显卡,散热不太好,但是价格便宜,满足日常用。', 1, 0, 1, '2023-10-17 20:20:13', '2023-10-17 20:20:13', '2023-10-17 20:27:40'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (38, 0, 36, 'Lenovo G', '联想G系列', 2, 'G 系列做工一般,外观普通。综合处理能力中等,显卡wield入门级显卡,散热不太好,但是价格便宜,满足日常用。', 1, 0, 1, '2023-10-17 20:20:13', '2023-10-17 20:20:13', '2023-10-17 20:27:35'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (39, 0, 36, 'Lenovo G', '联想G系列', 1, 'G 系列做工一般,外观普通。综合处理能力中等,显卡为入门级显卡,散热不太好,但是价格便宜,满足日常用。', 1, 1, 1, '2023-10-17 20:20:13', '2023-10-17 21:40:32', '2023-10-17 21:41:11'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (40, 0, 36, '小新', '联想小新系列', 1, '小新系列细节质量一般,综合处理能力中等,显卡为性能级别显卡,散热一般,但是性价比还是蛮高的,日常使用效果不错。', 1, 1, 1, '2023-10-17 20:29:12', '2023-10-17 21:26:22', '2023-10-17 21:41:06'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (41, 0, 36, 'Thinkpad', 'Thinkpad系列', 1, 'Thinkpad系列有T、W、x,这几款的外观细节都做的非常的好,大多为黑色。综合处理能力处于中等水平,显卡为性能级别显卡,散热也不错。Thinkpad系列的价格都比较高,走的是高端路线。\nThinkpad系列有T、W、x,这几款的外观细节都做的非常的好,大多为黑色。综合处理能力处于中等水平。', 1, 1, 1, '2023-10-17 21:03:37', '2023-10-17 21:29:52', '2023-10-17 21:41:02'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (42, 0, 41, 'X', 'X', 0, '', 1, 0, 1, '2023-10-17 21:30:00', '2023-10-17 21:30:00', '2023-10-17 21:36:54'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (43, 0, 41, 'W', 'W', 0, '', 1, 0, 1, '2023-10-17 21:30:32', '2023-10-17 21:30:32', '2023-10-17 21:36:52'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (44, 0, 41, 'T', 'T', 0, '', 1, 0, 1, '2023-10-17 21:30:44', '2023-10-17 21:30:44', '2023-10-17 21:36:49'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (45, 0, 0, '水', '供水设备', 3, '供水设备!!!', 1, 1, 0, '2023-10-17 21:32:12', '2023-10-17 21:42:38', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (46, 0, 47, '暖', '供暖设备', 2, '供暖设备!!!', 1, 1, 0, '2023-10-17 21:32:34', '2023-12-13 17:39:35', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (47, 0, 36, '住宅电', '住宅电器设备', 0, '住宅电器设备~~~', 1, 1, 0, '2023-10-17 21:43:38', '2023-10-27 20:15:22', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (48, 0, 36, '商用电器', '商用电器设备', 1, '商用电器设备~~~', 1, 1, 0, '2023-10-17 21:44:00', '2023-10-27 20:15:34', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (49, 0, 0, 'testKind1', '采集器', 0, 'test分类1', 10, 1, 0, '2023-10-22 01:28:27', '2023-10-23 21:13:54', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (50, 6, 49, '77', '温度采集器', 0, '', 1, 1, 0, '2023-10-22 12:21:03', '2023-11-01 14:09:04', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (51, 6, 49, ' ', ' ', 0, '', 1, 1, 1, '2023-10-22 21:35:30', '2023-10-23 20:23:39', '2023-10-23 20:23:43'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (52, 6, 0, '111', '111', 0, '', 1, 0, 1, '2023-10-23 20:12:53', '2023-10-23 20:12:53', '2023-10-23 20:23:33'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (53, 6, 0, '222', '111', 0, '', 1, 0, 1, '2023-10-23 20:13:01', '2023-10-23 20:13:01', '2023-10-23 20:23:30'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (54, 6, 0, '111', '3', 0, '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', 1, 1, 1, '2023-10-23 20:22:47', '2023-10-23 20:23:17', '2023-10-23 20:23:25'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (55, 6, 48, '333', '333', 0, '', 1, 0, 1, '2023-10-23 20:34:37', '2023-10-23 20:34:37', '2023-10-23 20:34:47'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (56, 6, 50, '1', '1', 0, '', 1, 0, 1, '2023-10-23 20:35:42', '2023-10-23 20:35:42', '2023-10-23 20:40:11'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (57, 6, 56, '2', '2', 0, '', 1, 0, 1, '2023-10-23 20:35:48', '2023-10-23 20:35:48', '2023-10-23 20:40:10'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (58, 6, 57, '3', '3', 0, '', 1, 0, 1, '2023-10-23 20:35:53', '2023-10-23 20:35:53', '2023-10-23 20:40:08'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (59, 6, 58, '4', '4', 0, '', 1, 0, 1, '2023-10-23 20:35:59', '2023-10-23 20:35:59', '2023-10-23 20:40:07'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (60, 6, 59, '5', '5', 0, '', 1, 0, 1, '2023-10-23 20:36:04', '2023-10-23 20:36:04', '2023-10-23 20:40:05'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (61, 6, 8, '12345678', '分类12', 0, '', 1, 0, 0, '2023-10-30 17:07:52', '2023-10-30 17:07:52', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (62, 6, 8, '12345678', '分类12', 0, '', 1, 0, 0, '2023-10-30 17:07:52', '2023-10-30 17:07:52', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (63, 6, 22, 'sss', 'ce', 0, '', 1, 0, 0, '2023-11-08 12:57:32', '2023-11-08 12:57:32', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (64, 6, 22, 'sss', 'ce', 0, '', 1, 1, 0, '2023-11-08 12:57:32', '2023-11-16 23:00:06', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (65, 6, 22, 'sss', 'ce', 0, '', 1, 1, 0, '2023-11-08 12:57:32', '2023-11-16 23:00:17', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (66, 6, 22, 'cece', 'cece', 0, '', 1, 0, 0, '2023-11-08 13:03:39', '2023-11-08 13:03:39', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (67, 6, 22, 'cece', 'cece', 0, '', 1, 0, 0, '2023-11-08 13:03:39', '2023-11-08 13:03:39', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (68, 6, 22, 'cececece', 'cececece', 0, '', 1, 0, 0, '2023-11-08 13:03:56', '2023-11-08 13:03:56', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (69, 6, 22, 'cecececec', 'cecececcece', 0, '', 1, 0, 0, '2023-11-08 13:04:04', '2023-11-08 13:04:04', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (70, 6, 0, 'qwertyuiop', '测试测试', 0, '', 1, 0, 0, '2023-11-16 15:01:06', '2023-11-16 15:01:06', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (71, 6, 0, 'dianliyunwei', '电力运维设备', 0, '', 1, 0, 0, '2024-01-17 15:52:00', '2024-01-17 15:52:00', NULL); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (72, 6, 71, 'peidainqishebei', '配电器设备', 0, '', 1, 0, 1, '2024-01-17 15:52:59', '2024-01-17 15:52:59', '2024-01-17 15:53:16'); -INSERT INTO `dev_product_category` (`id`, `dept_id`, `parent_id`, `key`, `name`, `sort`, `desc`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (73, 6, 0, 'dianliyunweishebei', '电力运维设备', 0, '', 1, 0, 0, '2024-01-17 15:58:19', '2024-01-17 15:58:19', NULL); COMMIT; -- ---------------------------- @@ -581,7 +370,6 @@ CREATE TABLE `network_server` ( -- Records of network_server -- ---------------------------- BEGIN; -INSERT INTO `network_server` (`id`, `dept_id`, `name`, `types`, `addr`, `register`, `heartbeat`, `protocol`, `devices`, `status`, `created_at`, `updated_at`, `create_by`, `remark`, `is_tls`, `auth_type`, `auth_user`, `auth_passwd`, `access_token`, `certificate_id`, `stick`) VALUES (22, 0, '服务器11', 'tcp', '9000', '{\"regex\":\"^w+$\"}', '{\"enable\":false,\"hex\":\"\",\"regex\":\"^\\\\w+$\",\"text\":\"\",\"timeout\":30}', '{\"name\":\"ModbusTCP\",\"options\":{}}', '[]', 0, '2023-05-23 10:30:15', '2023-05-23 10:30:15', 0, '', 0, 0, NULL, NULL, NULL, 0, NULL); COMMIT; -- ---------------------------- @@ -634,19 +422,6 @@ CREATE TABLE `notice_config` ( -- Records of notice_config -- ---------------------------- BEGIN; -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('11tnuda5af0cx1zqw70fk3c2q7wmq300', 6, '1234', 'wework', 2, '2023-11-18 22:01:20'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('11tnudackp0cx49p1vay3rk43dmf6biy', 6, '关于供热通知', 'wework', 2, '2023-11-21 14:14:27'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('11tnudackp0cx49pcppk3m243k8jsedg', 6, '关于供水通知', 'wework', 1, '2023-11-21 14:14:51'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('dzy2sv02go0cwo86c5a1759ysggkyvti', 6, '1', 'wework', 1, '2023-11-02 17:40:20'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg03iz0coqyeyhni297200eh7xkf', 0, 'ereqrqe', 'dingding', 1, '2022-12-02 09:51:37'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0ari0coq6cnpy9w5z400j0k7dm', 0, '测试', 'work_weixin', 2, '2022-12-01 11:52:06'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0en80coq6dc5v5ppy1000ecyo1', 0, '测试类型', 'work_weixin', 0, '2022-12-01 11:52:59'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0g4d0couk34jdudr7100b5f41f', 0, '告警测试', 'mail', 1, '2022-12-06 15:28:34'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0hq90cojukvo1u0oyd00vawtmc', 0, 'text3', 'work_weixin', 0, '2022-11-24 01:22:37'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0hq90cojulmymp2pne00czr9m4', 0, '111', 'work_weixin', 0, '2022-11-24 01:23:36'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0hq90cojummccsd4ug00u4m7mp', 0, '11', 'work_weixin', 1, '2022-11-24 01:24:53'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0hq90cojumuehlvx0h00mlssjy', 0, '33', 'work_weixin', 2, '2022-11-24 01:25:11'); -INSERT INTO `notice_config` (`id`, `dept_id`, `title`, `send_gateway`, `types`, `created_at`) VALUES ('tu0rkg0hq90cojuowfh931wi00vbhnck', 0, '天天', 'sms', 1, '2022-11-24 01:27:52'); COMMIT; -- ---------------------------- @@ -722,14 +497,6 @@ CREATE TABLE `notice_template` ( -- Records of notice_template -- ---------------------------- BEGIN; -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('1vfwi9pb2p0coqh3cc49od4400nvviwj', 0, 'tu0rkg0en80coq6dc5v5ppy1000ecyo1', 'work_weixin', '', '某项地ssss', 'erreeerrere222', '2022-12-01 20:08:04'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('dzy2sv05g80cwkq5oxb89631w01e83e1', 0, 'dzy2sv05g80cwkq2k6rnfx31sclq9w00', 'wework', '', ' 111', ' 22222', '2023-10-29 14:55:10'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('dzy2sv05g80cwkq72iijh6q1x7dp44y7', 6, 'dzy2sv05g80cwkq6rxbe5ef1x2pmbwti', 'wework', '', '模版111', '模版内容111111111', '2023-10-29 14:56:58'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('dzy2sv05g80cwkqwyleqf6d2owg7p6ii', 6, 'dzy2sv05g80cwkq8tkcuk5q1zews1n6e', 'wework', '', '2模版', '2模版内容', '2023-10-29 15:30:47'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('tu0rkg018o0colum0is6t5w700rkqkf0', 0, 'tu0rkg0hq90cojumuehlvx0h00mlssjy', 'work_weixin', '', '注册通知', '注册通知注册通知注册通知', '2022-11-26 09:49:26'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('tu0rkg018o0colupp3s7vyv900vk3s6n', 0, 'tu0rkg0hq90cojuowfh931wi00vbhnck', 'sms', '', '5', '6', '2022-11-26 09:54:14'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('tu0rkg06g30coqhxytbh8ly500ybwlre', 0, 'tu0rkg0ari0coq6cnpy9w5z400j0k7dm', 'work_weixin', '', '234', '234324', '2022-12-01 20:57:08'); -INSERT INTO `notice_template` (`id`, `dept_id`, `config_id`, `send_gateway`, `code`, `title`, `content`, `created_at`) VALUES ('tu0rkg0ijj0cozi9ct6u7jr500vs6shu', 0, 'tu0rkg0g4d0couk34jdudr7100b5f41f', 'mail', '', '告警邮件模板', '