管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-28 9b574e0e759e10bfc4dfb58d8dba594876e012cb
src/main/java/com/lf/server/mapper/all/BasicMapper.java
@@ -1,6 +1,8 @@
package com.lf.server.mapper.all;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lf.server.entity.sys.AttachEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@@ -40,4 +42,14 @@
     * @return
     */
    public int updateBatch(@Param("list") List<T> list);
    /**
     * 查询附件
     *
     * @param tab     表名
     * @param wrapper 查询包装器
     * @return
     */
    @Select("select * from lf.sys_attach where tab = #{tab} and tab_guid in (select eventid from ${tab} where ${ew.customSqlSegment})")
    public List<AttachEntity> selectAnnex(@Param("tab") String tab, @Param("ew") QueryWrapper wrapper);
}