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.

23 lines
1.2 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.Storey; // 导入Storey实体类用于操作宿舍层信息
public interface StoreyMapper { // 定义StoreyMapper接口提供对Storey实体进行数据库操作的方法
public int create(Storey storey); // 创建一个新的Storey记录返回影响的行数
public int delete(Integer id); // 根据id删除一个Storey记录返回影响的行数
public int update(Storey storey); // 更新一个Storey记录返回影响的行数
public int updateSelective(Storey storey); // 选择性地更新一个Storey记录返回影响的行数
public List<Storey> query(Storey storey); // 根据条件查询Storey记录返回符合条件的Storey列表
public Storey detail(Integer id); // 根据id查询一个Storey记录的详细信息返回Storey对象
public int count(Storey storey); // 根据条件统计Storey记录的数量返回记录数量
}