| | |
| | | ------------------------------------------------------ 补充字段 * |
| | | --------------------------------------------------------- 补充字段 * |
| | | -- alter table lf.sys_meta rename column bstab to tab; alter table lf.sys_meta drop column mdtab; |
| | | alter table lf.sys_fme_log add column create_time timestamp(6) without time zone default now(); |
| | | alter table lf.sys_meta add column layer varchar(50); |
| | |
| | | -- delete from lf.sys_operate where optime < '2023-01-10'; |
| | | select * from lf.sys_login where optime < '2023-01-10'; |
| | | -- delete from lf.sys_login where optime < '2023-01-10'; |
| | | ------------------------------------------------------ 查询URL |
| | | --------------------------------------------------------- 查询URL |
| | | select * from lf.sys_menu where position('http://' in url) > 0; |
| | | select url, replace(url, 'pipe.cppe.com', '{host}') from lf.sys_menu where position('http://' in url) > 0; |
| | | update lf.sys_menu set url = replace(url, 'pipe.cppe.com', '{host}') where position('http://' in url) > 0; |
| | | ------------------------------------------------------ 更新菜单+用户 |
| | | --------------------------------------------------------- 更新菜单+用户 |
| | | select * from lf.sys_menu where cn_name = '数据库监控'; |
| | | -- update lf.sys_menu set url = 'http://pipe.cppe.com:8088/server/druid/index.html' where cn_name = '数据库监控'; |
| | | |
| | |
| | | |
| | | update lf.sys_menu set url = 'http://pipe.cppe.com:88/resm/#/resourceManage?embed=true&theme=dark&lang=zh&token=' where cn_name = '我的资源'; |
| | | update lf.sys_menu set url = 'http://pipe.cppe.com:88/resm/#/resapproval?embed=true&theme=dark&lang=zh&token=' where cn_name = '资源审核'; |
| | | ------------------------------------------------------ FME_数据质检 |
| | | --------------------------------------------------------- FME_数据质检 |
| | | select * from lf.sys_menu where cn_name = '入库质检'; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/dataxdi/#/schema/list?tags=入库质检&embed=true&token=' where cn_name = '入库质检'; |
| | | |
| | |
| | | |
| | | select * from lf.sys_menu where cn_name = '任务状态' and id = 69; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/dataxdi/#/task/list?embed=true&token=' where cn_name = '任务状态' and id = 69; |
| | | ------------------------------------------------------ FME_数据交换 |
| | | --------------------------------------------------------- FME_数据交换 |
| | | select * from lf.sys_menu where cn_name = '格式转换'; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/dataxdi/#/schema/list?tags=数据交换&embed=true&token=' where cn_name = '格式转换'; |
| | | |
| | |
| | | |
| | | select * from lf.sys_menu where cn_name = '任务状态' and id = 74; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/dataxdi/#/task/list?embed=true&token=' where cn_name = '任务状态' and id = 74; |
| | | ------------------------------------------------------ FME_服务管理 |
| | | --------------------------------------------------------- FME_服务管理 |
| | | select * from lf.sys_menu where cn_name = '我的资源'; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/resm/#/resourceManage?embed=true&token=' where cn_name = '我的资源'; |
| | | |
| | | select * from lf.sys_menu where cn_name = '资源审核'; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/resm/#/resapproval?embed=true&token=' where cn_name = '资源审核'; |
| | | ------------------------------------------------------ 初始化元数据 |
| | | --------------------------------------------------------- 初始化源数据 |
| | | insert into lf.sys_meta (name,dirid) values ('项目WBS导出.xlsx',57); |
| | | insert into lf.sys_meta (name,dirid) values ('00116BT02-CR001#ESV-DW-0101 封面.docx',62); |
| | | insert into lf.sys_meta (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwg',62); |
| | |
| | | alter table lf.sys_dir alter column bak type varchar(100); |
| | | alter table lf.sys_dir rename column bak to checks; |
| | | alter table lf.sys_dir add column bak varchar(1024); |
| | | |
| | | update lf.sys_dir set bak=checks where checks is not null and position('check' in checks)=0; |
| | | update lf.sys_dir set checks=null where position('check' in checks)=0; |
| | | |
| | | alter table lf.sys_dir add column code varchar(24); |
| | | comment on column lf.sys_dir.exts is '扩展名'; |
| | | comment on column lf.sys_dir.checks is '检查项'; |
| | |
| | | --------------------------------------------------------- 03 lf.sys_user |
| | | alter table lf.sys_user add column depcode varchar(24); |
| | | comment on column lf.sys_user.depcode is '单位编码'; |
| | | |
| | | update lf.sys_user a set depcode = (select code from lf.sys_dep b where b.id = a.depid); |
| | | |
| | | select * from lf.sys_user order by id; |
| | |
| | | alter table lf.sys_meta add column dircode varchar(24) default '00'; |
| | | comment on column lf.sys_meta.depcode is '目录编码'; |
| | | comment on column lf.sys_meta.dircode is '单位编码'; |
| | | |
| | | update lf.sys_meta a set depcode = (select code from lf.sys_dep b where b.id = a.depid); |
| | | update lf.sys_meta a set dircode = (select code from lf.sys_dir b where b.id = a.dirid); |
| | | |
| | | alter table lf.sys_meta drop column depid; |
| | | alter table lf.sys_meta drop column dirid; |
| | | |
| | | select id,name,depcode,dircode,type from lf.sys_meta order by id; |
| | | --------------------------------------------------------- 05 bd.dlg_agnp |
| | | alter table bd.dlg_agnp alter column depid type varchar(24); |
| | | alter table bd.dlg_agnp alter column dirid type varchar(24); |
| | | |
| | | update bd.dlg_agnp a set depid = (select code from lf.sys_dep b where b.id = cast(a.depid as integer)); |
| | | update bd.dlg_agnp a set dirid = (select code from lf.sys_dir b where b.id = cast(a.dirid as integer)); |
| | | |
| | | select * from bd.dlg_agnp limit 20; |
| | | select depid from bd.dlg_agnp where depid is not null and depid not like '000307%' group by depid order by depid; |
| | | select dirid from bd.dlg_agnp group by dirid order by dirid; select id, name, code from lf.sys_dir where id in (3, 0, 163) order by code; |
| | | select depid from bd.dlg_agnp group by depid order by depid; select id, name, code from lf.sys_dep where id in (1, 20, 21, 22, 38, 55) order by code; |
| | | --------------------------------------------------------- |
| | | select * from lf.sys_user limit 10; |
| | | select * from lf.sys_dep where id=0 |