| | |
| | | insert into lf.sys_meta (name,dirid) values ('地面线.xlsx',64); |
| | | insert into lf.sys_meta (name,dirid) values ('控制点.xlsx',64); |
| | | insert into lf.sys_meta (name,dirid) values ('离散点.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('平面图索引文件.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('中线成果表.xlsx',64); |
| | | insert into lf.sys_meta (name,dirid) values ('平面图索引文件.xlsx',64); |
| | | insert into lf.sys_meta (name,dirid) values ('中线成果表.xlsx',64); |
| | | |
| | | update lf.sys_meta set depid=1,type='file',path='2\'||name,sizes=1; |
| | | |
| | |
| | | with rs as (select id from lf.sys_dir where name='西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)') |
| | | select fn_rec_query(a.dirid,'dir'),a.* from lf.sys_meta_new a where dirid = ANY(fn_rec_array((select id from rs), 'dir')); |
| | | |
| | | select * from lf.sys_meta_new where substr(path,1,2) = '2\'; |
| | | select * from lf.sys_meta where substr(path,1,2) = '2\'; |
| | | ------------------------------------------------------ 根据用户ID查询权限 |
| | | select * from lf.sys_menu order by id; |
| | | select * from lf.sys_coord where epsgcode = 'EPSG:4490'; |
| | |
| | | select * 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 c.uid = 'ptzh'; |
| | | --------------------------------------------------------- |
| | | |
| | | select * from lf.sys_dir order by id |
| | | |
| | | |
| | | |
| | |
| | | |
| | | list.add(meta); |
| | | } |
| | | setMetaType(list); |
| | | |
| | | return list; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | int dirid = getDirByPath(f.getPath(), dir, dirs); |
| | | int dirid = getDirByPath(f.getPath(), fileName, dir, dirs); |
| | | boolean isShp = StaticData.SHP.equals(extName); |
| | | if (isGdb) { |
| | | List<MetaFileEntity> rs = getGdbMappers(f, meta, dirid, start); |
| | |
| | | /** |
| | | * 根据文件路径获取目录ID |
| | | */ |
| | | private int getDirByPath(String filePath, DirEntity dir, List<DirEntity> dirs) { |
| | | private int getDirByPath(String filePath,String fileName, DirEntity dir, List<DirEntity> dirs) { |
| | | if (0 != dir.getPid() || null == dirs || dirs.isEmpty()) { |
| | | return dir.getId(); |
| | | } |
| | |
| | | } |
| | | |
| | | for (DirEntity entity : dirs) { |
| | | if (filePath.contains(entity.getFullName())) { |
| | | if (filePath.contains(entity.getFullName() + "\\" + fileName)) { |
| | | return entity.getId(); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 设置元数据文件的类型 |
| | | */ |
| | | private void setMetaType(List<MetaFileEntity> list) { |
| | | for (MetaFileEntity mf : list) { |
| | | if (null != mf.getExtName()) { |
| | | mf.setType(mf.getExtName().replace(".", "")); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取参数 * |
| | | * Enumeration<String> headers = req.getHeaderNames(); |
| | | * Enumeration<String> attributes = req.getAttributeNames(); |