| | |
| | | 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; -- 236 |
| | | select * from lf.sys_meta order by id desc limit 10; -- 1686 > 1696 |
| | | 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 |
| | | where count > 0 and update_time is null and |
| | | position(tcdm in 'bd.b_pac_hydrogeology,bd.b_pac_frozensoil,bd.b_pac_geologic_hazard,bd.b_pac_marine_meteorological,bd.b_pac_meteorological,bs.m_equipment_nameplate,bs.m_hydraulic_protection,bs.m_marker,bs.s_explorationpoint,bs.u_sectionline') > 0 |
| | | --and create_time > now()::timestamp + '-1 min' |
| | | where count > 0 and update_time is null and create_time > now()::timestamp + '-1 min' |
| | | |
| | | |
| | | |
| | |
| | | public Integer updateFmeLog(Integer id); |
| | | |
| | | /** |
| | | * 根据名称查询元数据 |
| | | * 根据元数据名称插入附件 |
| | | * |
| | | * @param name |
| | | * @param metaName |
| | | * @param tab |
| | | * @param tabGuid |
| | | * @return |
| | | */ |
| | | public MetaEntity selectMetaByName(String name); |
| | | public MetaEntity insertAttachByMeta(String metaName, String tab, String tabGuid); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MetaEntity selectMetaByName(String name) { |
| | | return attachMapper.selectMetaByName(name); |
| | | public MetaEntity insertAttachByMeta(String metaName, String tab, String tabGuid) { |
| | | return attachMapper.insertAttachByMeta(metaName, tab, tabGuid); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | BaseEntity be = (BaseEntity) obj; |
| | | for (String name : names) { |
| | | // |
| | | insertAttachByMeta(name, tab, be.getEventid()); |
| | | } |
| | | } |
| | | } |
| | |
| | | update lf.sys_fme_log set update_time = now() where id = #{id}; |
| | | </update> |
| | | |
| | | <select id="selectMetaByName" resultType="com.lf.server.entity.data.MetaEntity"> |
| | | select * from lf.sys_meta |
| | | where name = #{name} and create_time > now()::timestamp + '-10 min' |
| | | order by id desc |
| | | limit 1; |
| | | </select> |
| | | <insert id="insertAttachByMeta"> |
| | | 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' |
| | | order by id desc |
| | | limit 1; |
| | | </insert> |
| | | </mapper> |