package com.ruoyi.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.test.domain.DO.SingleChoiceDO;
import com.ruoyi.test.domain.ExamCreate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface ExamCreateMapper extends BaseMapper<ExamCreate> {

    int addPaperCreate(@Param("id") Long id,@Param("pid") Long pid);

    @Delete("delete from exam_create where id = #{id} and pid = #{pid}")
    int deletePaperCreate(@Param("id") Long id,@Param("pid") Long pid);
}
