package com.xhkjedu.sstudy.mapper.paper;

import com.xhkjedu.base.TkMapper;
import com.xhkjedu.sstudy.model.paper.TPaperFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName PaperFileMapper
 * Description 作业附件表
 * Author WN
 * Date 2020/6/8 16:15
 **/
@Repository
public interface PaperFileMapper extends TkMapper<TPaperFile> {

    /**
     *功能描述 删除附件--根据作业id
     * @author WN
     * @date 2020/6/11
     * @param  * @param paperid
     * @return void
     */
    void deleteByPaperid(@Param("paperid") Integer paperid);

    /**
     *功能描述  根据作业id获取作业附件
     * @author WN
     * @date 2020/6/11
     * @param  * @param paperid
     * @return java.util.List<com.xhkjedu.model.paper.TPaperFile>
     */
    List<TPaperFile> listObjsByPaperid(@Param("paperid") Integer paperid);

}
