package com.iailab.module.infra.dal.mysql.file; import com.iailab.module.infra.dal.dataobject.file.FileContentDO; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import java.util.List; @Mapper public interface FileContentMapper extends BaseMapper { default void deleteByConfigIdAndPath(Long configId, String path) { this.delete(new LambdaQueryWrapper() .eq(FileContentDO::getConfigId, configId) .eq(FileContentDO::getPath, path)); } default List selectListByConfigIdAndPath(Long configId, String path) { return selectList(new LambdaQueryWrapper() .eq(FileContentDO::getConfigId, configId) .eq(FileContentDO::getPath, path)); } }