You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ssgl/zsq/DormitoryStudentMapper.java

30 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.mapper; // 定义包名表示该接口属于com.yanzhen.mapper包
import java.util.List; // 导入Java的List类用于处理列表数据结构
import java.util.Map; // 导入Java的Map类用于处理键值对数据结构
import com.yanzhen.entity.DormitoryStudent; // 导入DormitoryStudent实体类用于操作学生宿舍信息
import org.apache.ibatis.annotations.Param; // 导入MyBatis的Param注解用于传递参数到SQL语句中
public interface DormitoryStudentMapper { // 定义DormitoryStudentMapper接口提供对DormitoryStudent实体进行数据库操作的方法
public int create(DormitoryStudent dormitoryStudent); // 创建一个新的DormitoryStudent记录返回影响的行数
public int delete(Integer id); // 根据id删除一个DormitoryStudent记录返回影响的行数
public int deleteByCond(@Param("studentId") Integer studentId, @Param("dormitoryId")Integer dormitoryId); // 根据条件删除DormitoryStudent记录返回影响的行数
public int update(DormitoryStudent dormitoryStudent); // 更新一个DormitoryStudent记录返回影响的行数
public int updateSelective(DormitoryStudent dormitoryStudent); // 选择性地更新一个DormitoryStudent记录返回影响的行数
public List<DormitoryStudent> query(DormitoryStudent dormitoryStudent); // 根据条件查询DormitoryStudent记录返回符合条件的DormitoryStudent列表
public DormitoryStudent detail(Integer id); // 根据id查询一个DormitoryStudent记录的详细信息返回DormitoryStudent对象
public int count(DormitoryStudent dormitoryStudent); // 根据条件统计DormitoryStudent记录的数量返回记录数量
public int countByBuildingId(Integer buildingId); // 根据buildingId统计DormitoryStudent记录的数量返回记录数量
public Map<String,Object> queryStudentByBedId(Integer bedId); // 根据bedId查询学生信息返回包含学生信息的Map对象
}