管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2024-12-06 042b07f18720af7559f30f5c0b50b770df4a85f6
src/main/resources/mapper/sys/AttachMapper.xml
@@ -104,9 +104,10 @@
        </foreach>
    </update>
    <!-- where count > 0 and update_time is null and create_time > now()::timestamp + '-5 min' and position(tcdm in '${tabs}') > 0; -->
    <select id="selectFmeLogs" resultType="com.lf.server.entity.data.FmeLogEntity">
        select * from lf.sys_fme_log
        where count > 0 and update_time is null and create_time > now()::timestamp + '-1 min' and position(tcdm in '${tabs}') > 0;
        where count > 0 and update_time is null and position(tcdm in '${tabs}') > 0;
    </select>
    <update id="updateFmeLog">
@@ -118,7 +119,12 @@
        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}
      <where>
            name = #{metaName}
            <if test="dirid != null">
                and dircode like #{dirid}
            </if>
        </where>
      order by id desc
      limit 1;
    </insert>