| | |
| | | select * from bs.s_surveyworksite where createtime < '2023-05-26 10:00:00'; |
| | | --delete from bs.s_surveyworksite where createtime < '2023-05-26 10:00:00'; |
| | | |
| | | select * from lf.sys_dict where tab='u_sectionline'; |
| | | select * from bs.u_sectionline where parentid='5bf5fe98-31a0-4dd9-9fa6-5e6d1570ae00'; |
| | | select * from lf.sys_attach; |
| | | select * from lf.sys_dir where pid=0 order by id; |
| | | |
| | | |
| | | |
| | | select * from lf.sys_fme_log where tcdm='u_sectionline' order by id desc; |
| | | select * from lf.sys_meta where name='勘探点表.xlsx'; |
| | | select * from lf.sys_meta where name='工程地质剖面图控制点.xlsx'; |
| | | select * from lf.sys_fme_log where parentid= '70ca841d-2103-485b-ab10-278cb9df85bd' |
| | | |
| | | |
| | | |
| | |
| | | /** |
| | | * 根据GUID查询 |
| | | * |
| | | * @param guid 文件GUID |
| | | * @param tab 表名 |
| | | * @param guid 文件GUID |
| | | * @param dircode 目录编码 |
| | | * @param tab 表名 |
| | | * @return |
| | | */ |
| | | public MetaEntity selectByGuid(String guid, String tab); |
| | | public MetaEntity selectByGuid(String guid, String dircode, String tab); |
| | | |
| | | /** |
| | | * 根据多个ID查询元数据(数据表) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MetaEntity selectByGuid(String guid, String tab) { |
| | | return metaMapper.selectByGuid(guid, tab); |
| | | public MetaEntity selectByGuid(String guid, String dircode, String tab) { |
| | | return metaMapper.selectByGuid(guid, dircode, tab); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return; |
| | | } |
| | | |
| | | MetaEntity me = selectByGuid(guid, null); |
| | | MetaEntity me = selectByGuid(guid, null, null); |
| | | if (me == null) { |
| | | WebHelper.writeStr2Page(res, StaticData.NO_FILE); |
| | | return; |
| | |
| | | mf.setMsg("文件丢失"); |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), getDirCode(mf), null); |
| | | if (null != old) { |
| | | mf.setMsg("已存在"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取目录编码 |
| | | */ |
| | | private String getDirCode(MetaFileEntity mf) { |
| | | if (StringHelper.isEmpty(mf.getDircode())) { |
| | | return null; |
| | | } |
| | | |
| | | return StringHelper.getRightLike(mf.getDircode().substring(0, 2)); |
| | | } |
| | | |
| | | /** |
| | |
| | | return; |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), tabName); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), getDirCode(mf), tabName); |
| | | if (null != old) { |
| | | mf.setMsg("已存在"); |
| | | return; |
| | |
| | | return -1; |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null, null); |
| | | if (null != old) { |
| | | mf.setMsg("已存在"); |
| | | file.delete(); |
| | |
| | | return; |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null, null); |
| | | if (null != old) { |
| | | mf.setMsg("已存在"); |
| | | FileHelper.deleteFiles(file); |
| | |
| | | BaseEntity be = (BaseEntity) obj; |
| | | String dirid = getDirid(be); |
| | | for (String name : names) { |
| | | insertAttachByMeta(tab, be.getEventid(), name, dirid); |
| | | if (StringHelper.isEmpty(name)) { |
| | | continue; |
| | | } |
| | | insertAttachByMeta(tab, be.getEventid(), name.trim(), dirid); |
| | | } |
| | | } |
| | | } |
| | |
| | | datasource: |
| | | name: prod |
| | | # JDBC 基本配置 ¤tSchema=public |
| | | url: jdbc:postgresql://103.85.165.99:5433/langfang?useAffectedRows=true |
| | | #url: jdbc:postgresql://103.85.165.99:5433/langfang?useAffectedRows=true |
| | | #url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true |
| | | #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true |
| | | url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true |
| | | username : postgres |
| | | password: Postgres!_14_Lf |
| | | #password: postgres |
| | | #password: Postgres!_14_Lf |
| | | password: postgres |
| | | driver-class-name: org.postgresql.Driver |
| | | platform: POSTGRESQL |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | |
| | | select a.*,fn_uname(a.create_user) uname,fn_get_fullname(a.depcode, 1) depName,fn_ver(a.verid) verName,fn_get_fullname(a.dircode, 2) dirName |
| | | from lf.sys_meta a |
| | | where guid = #{guid} |
| | | <if test="dircode != null"> |
| | | and dircode like #{dircode} |
| | | </if> |
| | | <if test="tab != null"> |
| | | and tab = #{tab} |
| | | </if> |