| | |
| | | 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)) |
| | | group by depid; |
| | | |
| | | SELECT depid FROM bd.dlg_agnp WHERE depid > 0 AND depid != ALL(fn_rec_array(38, 'dep')) |
| | | AND ST_Intersects(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), geom)) |
| | | |
| | | 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; |
| | | |
| | | update lf.sys_flow set status = -1 where status = 0 and id = 2; |
| | | update lf.sys_apply set status = -1 where status between 0 and 9 and id = 1; |
| | | |
| | | update lf.sys_flow set status = 0 where status = -1 and applyid = 1; |
| | | |
| | | 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; |