package com.ruoyi.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.test.domain.TeacherManageClass;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeacherManageClassMapper extends BaseMapper<TeacherManageClass> {

    @Delete("delete from teacher_manage_class where grade = #{grade} and Class1 = #{Class1}")
    int deleteClass(@Param("grade") String grade,@Param("Class1") String Class1);

    int addclass1(@Param("teacherid") Long teacherid,@Param("grade") String grade,@Param("Class1") String Class1);

}
