| | |
| | | -- insert into lf.sys_download (name,pwd,url,descr) values ('2022-09-27','123456','','测试下载'); |
| | | |
| | | select * from lf.sys_download order by id desc; |
| | | ----------------------------------------------------------------------------------------------------- 22.消息通知表 |
| | | -- DROP TABLE IF EXISTS lf.sys_msg; |
| | | create table lf.sys_msg( |
| | | id serial primary key, |
| | | title varchar(50), |
| | | msg varchar(200), |
| | | guid varchar(40), |
| | | create_user integer default 1, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | | update_time timestamp(6) without time zone |
| | | ); |
| | | comment on table lf.sys_msg is '消息通知表'; |
| | | comment on column lf.sys_msg.id is '主键ID'; |
| | | comment on column lf.sys_msg.title is '标题'; |
| | | comment on column lf.sys_msg.msg is '消息内容'; |
| | | comment on column lf.sys_msg.guid is '消息ID'; |
| | | comment on column lf.sys_msg.create_user is '创建人ID'; |
| | | comment on column lf.sys_msg.create_time is '创建时间'; |
| | | comment on column lf.sys_msg.update_user is '接受人ID'; |
| | | comment on column lf.sys_msg.update_time is '接受时间'; |
| | | --insert into lf.sys_msg (title,msg,guid,update_user) values ('2022-09-26','数据下载',new_guid(),2); |
| | | |
| | | select * from lf.sys_msg; |
| | | ----------------------------------------------------------------------------------------------------- 23.参数设置表 |
| | | ----------------------------------------------------------------------------------------------------- 22.参数设置表 |
| | | -- DROP TABLE IF EXISTS lf.sys_args; |
| | | create table lf.sys_args( |
| | | id serial primary key, |
| | |
| | | insert into lf.sys_args (name,cvalue,dvalue,min_value,max_value,times,descr,mark) values ('服务上限',5000,5000,5,1000000,1,'当超出服务上限时,就拒绝访问。','MAX_SERVERS'); */ |
| | | |
| | | select * from lf.sys_args order by id; |
| | | ----------------------------------------------------------------------------------------------------- 24.黑名单表 |
| | | ----------------------------------------------------------------------------------------------------- 23.黑名单表 |
| | | -- DROP TABLE IF EXISTS lf.sys_blacklist; |
| | | create table lf.sys_blacklist( |
| | | id serial primary key, |
| | |
| | | insert into lf.sys_blacklist (ip,type) values ('0:0:0:0:0:0:0:1',2);*/ |
| | | |
| | | select * from lf.sys_blacklist; |
| | | ----------------------------------------------------------------------------------------------------- 25.标绘表 |
| | | ----------------------------------------------------------------------------------------------------- 24.标绘表 |
| | | -- DROP TABLE IF EXISTS lf.sys_mark; |
| | | create table lf.sys_mark( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_mark.update_time is '更新时间'; |
| | | |
| | | select * from lf.sys_mark; |
| | | ----------------------------------------------------------------------------------------------------- 26.值域表 |
| | | ----------------------------------------------------------------------------------------------------- 25.值域表 |
| | | -- drop table if exists lf.sys_domain; |
| | | create table if not exists lf.sys_domain( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_domain.bak is '备注'; |
| | | |
| | | select * from lf.sys_domain order by dom_name,orderid; |
| | | ----------------------------------------------------------------------------------------------------- 27.报告模板表 |
| | | ----------------------------------------------------------------------------------------------------- 26.报告模板表 |
| | | -- drop table if exists lf.sys_report; |
| | | create table if not exists lf.sys_report ( |
| | | id serial primary key, |
| | |
| | | -- insert into lf.sys_report (name,type,guid,code) values ('统计用户量',2,'1\aa.xlsx',''); |
| | | |
| | | select * from lf.sys_report; |
| | | ----------------------------------------------------------------------------------------------------- 28.下载日志表 |
| | | ----------------------------------------------------------------------------------------------------- 27.下载日志表 |
| | | -- drop table if exists lf.sys_downlog; |
| | | create table lf.sys_downlog ( |
| | | id serial primary key, |
| | |
| | | -- insert into lf.sys_downlog(downid,ip,create_user) values (100,'192.168.20.39',1); |
| | | |
| | | select * from lf.sys_downlog; |
| | | ----------------------------------------------------------------------------------------------------- 29.数据申请表 |
| | | ----------------------------------------------------------------------------------------------------- 28.数据申请表 |
| | | -- drop table if exists lf.sys_apply; |
| | | create table lf.sys_apply ( |
| | | id serial primary key, |
| | | userid integer default 0, |
| | | depids varchar(500), |
| | | tabs varchar(2000), |
| | | entities varchar(2000), |
| | | dirids varchar(500), |
| | | tabs varchar(12000), |
| | | entities varchar(6000), |
| | | wkt varchar(4000), |
| | | gids varchar(5000), |
| | | filters varchar(500), |
| | | pwd varchar(200), |
| | | status integer default 0, |
| | | count integer default 0, |
| | | descr varchar(50), |
| | | descr varchar(100), |
| | | create_user integer default 1, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | |
| | | comment on column lf.sys_apply.id is '主键ID'; |
| | | comment on column lf.sys_apply.userid is '用户ID'; |
| | | comment on column lf.sys_apply.depids is '单位ID'; |
| | | comment on column lf.sys_apply.dirids is '目录ID'; |
| | | comment on column lf.sys_apply.tabs is '表名'; |
| | | comment on column lf.sys_apply.entities is '实体名'; |
| | | comment on column lf.sys_apply.wkt is 'WKT'; |
| | | comment on column lf.sys_apply.gids is 'GID'; |
| | | comment on column lf.sys_apply.filters is '过滤条件'; |
| | | comment on column lf.sys_apply.pwd is '密码'; |
| | | comment on column lf.sys_apply.status is '状态:-10-作废,-1-打回,0~9-审核中,10-通过'; |
| | | comment on column lf.sys_apply.count is '审核总数'; |
| | |
| | | comment on column lf.sys_apply.update_time is '更新时间'; |
| | | |
| | | select * from lf.sys_apply; |
| | | ----------------------------------------------------------------------------------------------------- 30.申请流程表 |
| | | ----------------------------------------------------------------------------------------------------- 29.申请流程表 |
| | | -- drop table if exists lf.sys_flow; |
| | | create table lf.sys_flow ( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_flow.update_time is '更新时间'; |
| | | |
| | | select * from lf.sys_flow; |
| | | ----------------------------------------------------------------------------------------------------- 31.FME日志表 |
| | | ----------------------------------------------------------------------------------------------------- 30.FME日志表 |
| | | create table lf.sys_fme_log ( |
| | | id serial primary key, |
| | | parentid varchar(38), |
| | |
| | | comment on column lf.sys_fme_log.update_time is '更新时间'; |
| | | |
| | | select * from lf.sys_fme_log order by id desc; -- delete from lf.sys_fme_log; |
| | | ----------------------------------------------------------------------------------------------------- 32.图层表 |
| | | ----------------------------------------------------------------------------------------------------- 31.图层表 |
| | | -- DROP TABLE IF EXISTS lf.sys_layer; |
| | | create table lf.sys_layer( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_layer.bak is '备注'; |
| | | |
| | | select * from lf.sys_layer order by id; |
| | | ----------------------------------------------------------------------------------------------------- 33.服务日志表 |
| | | ----------------------------------------------------------------------------------------------------- 32.服务日志表 |
| | | -- DROP TABLE IF EXISTS lf.sys_serve_log; |
| | | create table lf.sys_serve_log( |
| | | id serial8, |
| | |
| | | insert into lf.sys_serve_log (resid,name,type,url) values (2,'全国矢量图','02','http://192.168.20.205/LFData/2d/tiles/vec/{z}/{x}/{y}.png'); */ |
| | | |
| | | select * from lf.sys_serve_log; |
| | | ----------------------------------------------------------------------------------------------------- 34.坐标系表 |
| | | ----------------------------------------------------------------------------------------------------- 33.坐标系表 |
| | | -- drop table if exists lf.sys_coord; |
| | | create table if not exists lf.sys_coord( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_coord.remarks is '备注'; |
| | | |
| | | select * from lf.sys_coord; |
| | | ----------------------------------------------------------------------------------------------------- 35.元数据-下载表 |
| | | ----------------------------------------------------------------------------------------------------- 34.元数据-下载表 |
| | | -- drop table if exists lf.sys_meta_down; |
| | | create table lf.sys_meta_down( |
| | | id serial primary key, |
| | |
| | | insert into lf.sys_meta_down (metaid,downid) values (1417,243); */ |
| | | |
| | | select * from lf.sys_meta_down order by id desc; |
| | | select * from lf.sys_meta order by id desc; |
| | | select * from lf.sys_download order by id desc; |
| | | select * from lf.sys_downlog order by id desc; |
| | | select id,name,type,url,descr,dcount,(select count(*) from lf.sys_downlog b where b.downid=a.id) "count",download_user,download_time from lf.sys_download a where type=3 order by dcount desc; |
| | | ----------------------------------------------------------------------------------------------------- 36.模型表 |
| | | ----------------------------------------------------------------------------------------------------- 35.模型表 |
| | | -- drop table if exists lf.sys_model; |
| | | create table lf.sys_model( |
| | | id serial primary key, |
| | |
| | | comment on column lf.sys_model.bak is '备注'; |
| | | |
| | | select * from lf.sys_model order by id desc; |
| | | ----------------------------------------------------------------------------------------------------- 37.数据发布表 |
| | | ----------------------------------------------------------------------------------------------------- 36.数据发布表 |
| | | -- drop table if exists lf.sys_publish; |
| | | create table lf.sys_publish( |
| | | id serial primary key, |
| | |
| | | -- insert into lf.sys_publish (name,geom) values ('Test',ST_GeomFromText('POINT Z (101.9281 36.58675 2199.5)')); |
| | | |
| | | select st_astext(geom) "wkt",a.* from lf.sys_publish a; |
| | | ----------------------------------------------------------------------------------------------------- 38.元数据-数据发布表 |
| | | ----------------------------------------------------------------------------------------------------- 37.元数据-数据发布表 |
| | | -- drop table if exists lf.sys_meta_pub; |
| | | create table lf.sys_meta_pub( |
| | | id serial primary key, |