kongzy
2023-11-27 59ae9759fd50568059fa44f43832f5a414edb3e9
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,19 @@
@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);
}