heheng
2025-01-06 56287f4037defafbd3a3bbebd1827fd20a8b91d4
assess-system/src/main/java/com/gkhy/assess/system/mapper/SysAttachMapper.java
@@ -3,6 +3,9 @@
import com.gkhy.assess.system.domain.SysAttach;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * <p>
@@ -15,4 +18,27 @@
@Mapper
public interface SysAttachMapper extends BaseMapper<SysAttach> {
    /**
     * 根据用户id获取附件
     * @param userId
     * @param type
     * @return
     */
    List<SysAttach> getAttachsByUserId(@Param("userId") Long userId, @Param("type") Integer type);
    /**
     * 根据用户id删除数据
     * @param userId
     * @param type
     * @return
     */
    int deleteAttachsByUserId(Long userId, Integer type);
    /**
     * 根据ids批量删除附件
     * @param ids
     * @return
     */
    int deleteAttachsByIds(List<Long> ids);
}