| | |
| | | insert into lf.sys_role_user (id, roleid, userid, create_user) values (3, 13, 3, 1); |
| | | insert into lf.sys_role_user (id, roleid, userid, create_user) values (4, 14, 5, 1); |
| | | insert into lf.sys_role_user (id, roleid, userid, create_user) values (5, 15, 4, 1); |
| | | |
| | | alter sequence lf.sys_apply_id_seq restart with 3; |
| | | alter sequence lf.sys_flow_id_seq restart with 7; |
| | | ----------------------------------------------------------------------- |
| | | select depid from bd.dlg_25w_boul where depid > 0 and depid != ALL(fn_rec_array(38, 'dep')) |
| | | 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))', 4490)) |
| | |
| | | select c.* from lf.sys_role a inner join lf.sys_role_user b on a.id = b.roleid inner join lf.sys_user c on b.userid = c.id |
| | | where a.is_admin = 2 and a.depid = 55 order by c.id limit 1 |
| | | |
| | | select * from lf.sys_apply; |
| | | select * from lf.sys_flow; |
| | | select * from lf.sys_apply order by id; |
| | | select * from lf.sys_flow order by id; |
| | | |
| | | update lf.sys_flow set status = 1 where id = 3; |
| | | update lf.sys_apply a set status = (select count(*) from lf.sys_flow b where b.status = 1 and b.applyid = a.id) where id = 1; |
| | | update lf.sys_apply set status = 10 where status = count and id = 1; |
| | | |
| | | select * from lf.sys_user |
| | | select * from lf.sys_role_user |
| | | select * from lf.sys_role |
| | | |
| | | select c.*, fn_rec_query(c.depid, 'dep') depName,fn_uname(c.create_user) createName,fn_uname(c.update_user) updateName |
| | | from lf.sys_user a inner join lf.sys_role_user b on a.id = b.userid inner join lf.sys_role c on b.roleid = c.id |
| | | where a.id = 1; |
| | | |
| | | select a.*, fn_rec_query(a.depid, 'dep') depName,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName |
| | | from lf.sys_user a inner join lf.sys_role_user b on a.id = b.userid inner join lf.sys_role c on b.roleid = c.id |
| | | where c.id = 15 |
| | | |
| | | select *, st_astext(geom) as wkt from bs.m_pipesegment; |
| | | select * from bs.m_pipesegment; |
| | | select gid, pipename, segname from bs.m_pipesegment order by pipename, segname; |
| | | |
| | | select * from bd.dlg_25w_hydl; |
| | | select * from bd.dlg_25w_lrdl; |
| | | select * from bd.dlg_25w_lrrl; |
| | | select * from bd.dlg_25w_hyda; |
| | | |
| | | SELECT a.name as acrossName, |
| | | b.segname as segName, |
| | | b.remarks, |
| | | b.pipename as pipeName, |
| | | st_length( st_geographyfromtext( st_astext( st_intersection( ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) ) ) AS acrossLength, |
| | | st_astext(b.geom) as wkt |
| | | FROM bd.dlg_25w_hyda AS a, |
| | | (SELECT * |
| | | FROM bs.m_pipesegment |
| | | WHERE segname = 'DD' ) AS b |
| | | WHERE ST_Intersects(a.geom, b.geom) |
| | | |
| | | select a.name as acrossName, b.segname as segName, b.remarks, b.pipename as pipeName, |
| | | cast( st_length( st_geographyfromtext( st_astext( st_intersection(ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) ) ) as decimal(12, 3) ) AS acrossLength, |
| | | st_astext( st_intersection( ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) as wkt |
| | | from bd.dlg_25w_hyda as a, (select segname, remarks, pipename, geom from bs.m_pipesegment where gid = 24) as b |
| | | where ST_Intersects(a.geom, b.geom) |
| | | |
| | | |
| | | |