| | |
| | | select concat(gb, '_', name) from bd.dlg_agnp limit 10; |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_publish a |
| | | |
| | | select * from lf.sys_fme_log order by id desc limit 10; -- 242 > |
| | | select * from lf.sys_meta order by id desc limit 10; -- 1686 > |
| | | select * from lf.sys_fme_log order by id desc limit 10; -- 255 > |
| | | select * from lf.sys_meta order by id desc limit 10; -- 1723 > |
| | | |
| | | select * from lf.sys_fme_log |
| | | where count > 0 and update_time is null and create_time > now()::timestamp + '-1 min' |
| | | select * from bs.s_explorationpoint where parentid='df3ee967-3eb8-4685-b49c-d0ae06918069' |
| | | select * from lf.sys_dir where pid=0 order by id |
| | | |
| | | select * from bs.s_explorationpoint |
| | | select * from lf.sys_attach order by id desc limit 100; -- 358042 |
| | | |
| | | insert into lf.sys_attach (name, guid, path, sizes, create_user, tab, tab_guid) |
| | | select name, guid, path, sizes, create_user, 'bs.s_explorationpoint', '8de99768-1da3-4784-9423-bb026411fa48' |
| | | from lf.sys_meta |
| | | where name = 'PH02T01-CR004-C04#EGE-DW-0105.pdf' and create_time > now()::timestamp + '-10 min' |
| | | order by id desc |
| | | limit 1; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | for (FmeLogEntity entity : list) { |
| | | attachService.syncAttaches(entity); |
| | | attachService.updateFmeLog(entity.getId()); |
| | | attachService.syncAttaches(entity); |
| | | } |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | |
| | | * @param tabGuid |
| | | * @return |
| | | */ |
| | | public MetaEntity insertAttachByMeta(String metaName, String tab, String tabGuid); |
| | | public Integer insertAttachByMeta(String metaName, String tab, String tabGuid); |
| | | } |
| | |
| | | zipFolder.mkdirs(); |
| | | } |
| | | |
| | | String subPath = zipFolder + File.separator + meta.getName().toLowerCase().replace(".zip", ""); |
| | | // String subPath = zipFolder + File.separator + meta.getName().toLowerCase().replace(".zip", "") .replace("(","").replace(")","").replace(" ","") |
| | | String subPath = zipFolder.getPath(); |
| | | ZipHelper.unzip(zipFile, subPath); |
| | | |
| | | List<File> files = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MetaEntity insertAttachByMeta(String metaName, String tab, String tabGuid) { |
| | | public Integer insertAttachByMeta(String metaName, String tab, String tabGuid) { |
| | | return attachMapper.insertAttachByMeta(metaName, tab, tabGuid); |
| | | } |
| | | |
| | |
| | | insert into lf.sys_attach (name, guid, path, sizes, create_user, tab, tab_guid) |
| | | select name, guid, path, sizes, create_user, #{tab}, #{tabGuid} |
| | | from lf.sys_meta |
| | | where name = #{metaName} and create_time > now()::timestamp + '-10 min' |
| | | where name = #{metaName} and create_time > now()::timestamp + '-15 min' |
| | | order by id desc |
| | | limit 1; |
| | | </insert> |