管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 b6b0cb226fcf184525ee7b36af3a09471e9c0057
src/main/java/com/lf/server/mapper/sys/AttachMapper.java
@@ -1,5 +1,6 @@
package com.lf.server.mapper.sys;
import com.lf.server.entity.data.FmeLogEntity;
import com.lf.server.entity.sys.AttachEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -25,7 +26,7 @@
     * 分页查询
     *
     * @param name   文件名
     * @param limit  记录表
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
@@ -53,6 +54,33 @@
     * @return
     */
    public AttachEntity selectByGuid(String guid);
    /**
     * 根据Guid数组查询
     *
     * @param guids
     * @return
     */
    public List<AttachEntity> selectByGuids(List<String> guids);
    /**
     * 根据表名和GUID查询
     *
     * @param tab
     * @param tabGuid
     * @param guid
     * @return
     */
    public AttachEntity selectByTabAndGuid(String tab, String tabGuid, String guid);
    /**
     * 根据表名和GUID数组查询
     *
     * @param tab
     * @param guids
     * @return
     */
    public List<AttachEntity> selectByTabGuids(String tab, List<String> guids);
    /**
     * 根据表和GUID查询
@@ -110,4 +138,31 @@
     * @return
     */
    public Integer updates(List<AttachEntity> list);
    /**
     * 查询FME日志
     *
     * @param tabs
     * @return
     */
    public List<FmeLogEntity> selectFmeLogs(String tabs);
    /**
     * 更新FME日志
     *
     * @param id ID
     * @return
     */
    public Integer updateFmeLog(Integer id);
    /**
     * 根据元数据名称插入附件
     *
     * @param tab
     * @param tabGuid
     * @param metaName
     * @param dirid
     * @return
     */
    public Integer insertAttachByMeta(String tab, String tabGuid, String metaName, String dirid);
}