Files
hanjie_backend/sql/device_info_sample_data_20260331.sql
trezeman 2b8d5cc126 1.设置设备查看权限(每个公司只能查看自己购买的设备,未完善)
2.添加设备信息模块,可以选择设备查看详情(未添加实时数据部分)
3.添加教学视频模块,拉取b站系列中的视频
4.初步调整ui
2026-03-31 17:46:40 +08:00

20 lines
1.9 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ----------------------------
-- 设备示例数据(带 dept_id用于按公司/部门数据权限隔离演示)
-- 依赖device_info 表已包含 dept_id 字段
-- 说明dept_id 选用若依默认初始化部门:
-- 101 = 深圳总公司102 = 长沙分公司103 = 研发部门(深圳下级)105 = 测试部门(深圳下级)
-- ----------------------------
-- 建议先清理(可按需执行)
-- delete from device_info;
insert into device_info
(device_id, dept_id, device_name, device_code, device_status, device_image, model_spec, purchase_date, serial_number, install_address, responsible_person, warranty_start_date, warranty_end_date, del_flag, create_by, create_time, update_by, update_time, remark)
values
(20001, 101, 'WR-2000 焊接机器人A', 'WR20230517001', '0', '', 'WR-2000', '2023-05-17', 'WR20230517001', '深圳市南山区XX工厂', '张工', '2023-05-20', '2025-05-19', '0', 'admin', sysdate(), '', null, '深圳公司设备A'),
(20002, 101, 'WR-2000 焊接机器人B', 'WR20230517002', '3', '', 'WR-2000', '2023-06-02', 'WR20230602001', '深圳市宝安区XX车间', '李工', '2023-06-05', '2025-06-04', '0', 'admin', sysdate(), '', null, '深圳公司设备B(维护)'),
(20003, 102, 'WR-1800 焊接机器人C', 'WR20230701001', '2', '', 'WR-1800', '2023-07-01', 'WR20230701001', '长沙市XX工厂', '王工', '2023-07-03', '2025-07-02', '0', 'admin', sysdate(), '', null, '长沙公司设备C(停机)'),
(20004, 103, 'WR-2200 焊接机器人D', 'WR20230815001', '0', '', 'WR-2200', '2023-08-15', 'WR20230815001', '深圳研发试验线', '赵工', '2023-08-20', '2025-08-19', '0', 'admin', sysdate(), '', null, '深圳研发部门设备D'),
(20005, 105, 'WR-1600 焊接机器人E', 'WR20230909001', '1', '', 'WR-1600', '2023-09-09', 'WR20230909001', '深圳测试车间', '周工', '2023-09-10', '2025-09-09', '0', 'admin', sysdate(), '', null, '深圳测试部门设备E(故障)');