首页>代码>ssm框架实现的简单增删改查功能>/MyMvc/src/main/java/edu/gyc/dao/UserDao.java
package edu.gyc.dao;

import edu.gyc.model.User;
import edu.gyc.model.UserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);



    User findByUsername(String username);

    void registerByUsernameAndPassword(@Param("username")String username,
                                       @Param("password")String password);
}

最近下载更多
agony2024  LV1 4月21日
xalnb04  LV1 4月20日
xtclhl  LV1 4月19日
quanksxy  LV1 4月18日
wlslei  LV1 4月12日
旺旺小小舒  LV16 3月20日
血羽如风  LV4 1月25日
沈从文  LV2 1月1日
houhanlin33  LV3 2023年12月28日
最近浏览更多
jerry9832 4月22日
暂无贡献等级
agony2024  LV1 4月21日
暂无贡献等级
文112233 4月21日
暂无贡献等级
xalnb04  LV1 4月20日
xtclhl  LV1 4月19日
quanksxy  LV1 4月18日
wlslei  LV1 4月12日
2131234536546  LV7 3月31日
旺旺小小舒  LV16 3月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友