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.
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 com.yanzhen.entity.Dormitory ; // 导入Dormitory宿舍实体类, 用于操作宿舍信息
import org.apache.ibatis.annotations.Param ; // 导入MyBatis的Param注解, 用于传递参数到SQL语句中
public interface DormitoryMapper { // 定义DormitoryMapper接口, 提供对Dormitory宿舍进行数据库操作的方法
public int create ( Dormitory dormitory ) ; // 创建一个新的Dormitory宿舍记录, 返回影响的行数
public int delete ( Integer id ) ; // 根据id删除一个Dormitory宿舍记录, 返回影响的行数
public int update ( Dormitory dormitory ) ; // 更新一个Dormitory宿舍记录, 返回影响的行数
public int updateSelective ( Dormitory dormitory ) ; // 选择性地更新一个Dormitory宿舍记录, 返回影响的行数
public List < Dormitory > query ( Dormitory dormitory ) ; // 根据条件查询Dormitory宿舍记录, 返回符合条件的Dormitory宿舍列表
public Dormitory detail ( Integer id ) ; // 根据id查询一个Dormitory宿舍记录的详细信息, 返回Dormitory宿舍对象
public int count ( Dormitory dormitory ) ; // 根据条件统计Dormitory宿舍记录的数量, 返回记录数量
public int deleteByBuildingIdAndStoryId ( @Param ( "buildingId" ) Integer buildingId , @Param ( "storeyId" ) Integer storeyId ) ; // 根据建筑ID和楼层ID删除Dormitory宿舍记录, 返回影响的行数
}