package com.xie.mapper; import com.xie.pojo.StudentInfo; import com.xie.vo.EntryVo; import com.xie.vo.PermitVo; import com.xie.vo.ScoreVo; import org.apache.ibatis.annotations.Param; import java.util.List; public interface StudentInfoMapper { StudentInfo selectByTelAndPwd(@Param("tel") String tel, @Param("pwd") String pwd); int insertStudent(@Param("student") StudentInfo studentInfo); int updStudent(@Param("updid") int studentId, @Param("updname") String studentName, @Param("updtel") String studentTel, @Param("updpwd") String studentPwd, @Param("updcard") String studentPard, @Param("updemail") String studentEmail); int selectCountByTel(@Param("Tel") String Tel); int selectCountByCard(@Param("Card") String Card); List<EntryVo> selectEntryList(@Param("studentid") int studentId, @Param("nowpage") int page,@Param("pagesize") int pagesize); int selectEntryCount(@Param("countid") int studentId); List<PermitVo> selectPermitList(@Param("studentid") int studentId, @Param("nowpage") int page,@Param("pagesize") int pagesize); int selectPermitCount(@Param("countid") int studentId); List<ScoreVo> selectScoreList(@Param("studentid") int studentId, @Param("nowpage") int page, @Param("pagesize") int pagesize); int selectScoreCount(@Param("countid") int studentId); }
时间: 2024-04-29 13:19:42 浏览: 11
这是一个 Java 接口文件,定义了一个名为 `StudentInfoMapper` 的接口。该接口定义了多个方法,包括根据手机号和密码查询学生信息、插入学生信息、更新学生信息、根据手机号和身份证号查询学生数量、查询学生报名信息、查询学生许可信息、查询学生成绩信息等。这些方法都接受不同的参数,包括学生 ID、手机号、密码、身份证号、邮箱等。该接口主要用于与数据库进行交互,实现对学生信息的增删改查等操作。
相关问题
import com.baomidou.mybatisplus.mapper.BaseMapper;
这是一个 Java 类的导入语句,它导入了 MyBatis-Plus 框架中的 BaseMapper 类。BaseMapper 是一个接口,它提供了一些常用的数据库操作方法,例如增删改查等。通过继承 BaseMapper 接口,我们可以快速地完成对数据库表的操作。这样可以大大简化我们的代码,并提高开发效率。
com.ruoyi.**.*Mapper
在 Java 开发中,com.ruoyi.**.*Mapper 可能是一个 MyBatis 的 Mapper 接口,其作用是将数据库中的数据映射到 Java 对象中,或者将 Java 对象的数据保存到数据库中。Mapper 接口通常包含各种 CRUD(创建、读取、更新、删除)操作,以及其他自定义查询操作。在使用 MyBatis 框架时,通常需要为每个数据表创建一个对应的 Mapper 接口,以便轻松地执行数据库操作。com.ruoyi.** 表示 Mapper 接口所在的包名,* 表示通配符,表示该包下的所有类。因此,com.ruoyi.**.*Mapper 可能是一个通用的 Mapper 接口,用于操作该包下的所有数据表。