public interface YonghuMapper int deleteByPrimaryKeyInteger id; int insertYonghu record; int insertSelectiveYonghu record; Yonghu selectByPrimaryKeyInteger id; int updateByPrimaryKeySe
这段代码定义了一个接口YonghuMapper,其中包含了一些方法的声明,这些方法可以用来对数据库中的Yonghu表进行增删改查操作。
具体方法包括:
- deleteByPrimaryKey:根据主键id删除一条记录
- insert:插入一条记录
- insertSelective:选择性地插入一条记录
- selectByPrimaryKey:根据主键id查询一条记录
- updateByPrimaryKeySelective:选择性地更新一条记录
- updateByPrimaryKey:更新一条记录
- query:根据分页信息和搜索关键字查询多条记录
- login:根据用户名、密码和角色类型进行登录验证
- queryAll:查询所有记录
这些方法的具体实现需要在实现类中完成。
原文地址: https://www.cveoy.top/t/topic/dqFo 著作权归作者所有。请勿转载和采集!