管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-04-11 d32e5d152584e8a3b3750f3f059ed7cca5f5c86e
src/main/resources/mapper/sys/AttachMapper.xml
@@ -113,11 +113,17 @@
        update lf.sys_fme_log set update_time = now() where id = #{id};
    </update>
    <!-- and create_time > now()::timestamp + '-15 min' -->
    <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'
      <where>
            name = #{metaName}
            <if test="dirid != null">
                and dirid like #{dirid}
            </if>
        </where>
      order by id desc
      limit 1;
    </insert>