SyUserMapper.java 1.05 KB
package com.objecteye.mapper;

import com.objecteye.entity.SyUser;
import com.objecteye.entity.SyUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SyUserMapper {
    int countByExample(SyUserExample example);

    int deleteByExample(SyUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SyUser record);

    int insertSelective(SyUser record);

    List<SyUser> selectByExample(SyUserExample example);

    SyUser selectByPrimaryKey(Integer id);

    List<SyUser> selectUserPage(@Param("currentPage") int currentPage, @Param("pageVolum") int pageVolum);

    int updateByExampleSelective(@Param("record") SyUser record, @Param("example") SyUserExample example);

    int updateByExample(@Param("record") SyUser record, @Param("example") SyUserExample example);

    int updateByPrimaryKeySelective(SyUser record);

    int updateByPrimaryKey(SyUser record);

    /* 通过账户和密码进行搜索*/
    SyUser selectByUP(@Param("username") String username, @Param("password") String password);
}