管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-31 be1c643d8e723dc717be2e4c1d8c329da648524b
data/db_fn.sql
@@ -241,6 +241,27 @@
select * from lf.sys_blacklist where type = 1;
select * from lf.sys_operate where modular1 is null or modular2 is null;
select count(*) from bd.dlg_agnp;
select count(*) from bd.dlg_25w_aanp;
-- 114ms,180/3248
select count(1) from bd.dlg_agnp a where ST_Intersects(geom,
ST_PolygonFromText('POLYGON ((115.94927385452 32.3754479115071 0,121.989371092554 32.2766788010181 0,121.850621222894 29.6874200067864 0,115.9727267226 29.7835368627922 0,115.94927385452 32.3754479115071 0))', 4326))
-- 1101:gid >= 50 and name like '县' and objectid < 5000.0 and pac = '360430'
select count(*) from bd.dlg_agnp where gid >= 50 and name like '%县%' and objectid < 5000 --and pac = '360430'
and ST_Intersects(geom,
ST_PolygonFromText('POLYGON ((115.94927385452 32.3754479115071 0,121.989371092554 32.2766788010181 0,121.850621222894 29.6874200067864 0,115.9727267226 29.7835368627922 0,115.94927385452 32.3754479115071 0))', 4326))
select id,uname "name" from lf.sys_user where uname like '%室%' order by uname limit 10;
select id,name from lf.sys_dep where name like '%司%' order by order_num limit 10;