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.
SRuml/UserMapper.java

40 lines
638 B

3 months ago
package com.example.mapper;
import com.example.entity.User;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* user
*/
public interface UserMapper {
/**
*
*/
int insert(User user);
/**
*
*/
int deleteById(Integer id);
/**
*
*/
int updateById(User user);
/**
* ID
*/
User selectById(Integer id);
/**
*
*/
List<User> selectAll(User user);
@Select("select * from user where username = #{username}")
User selectByUsername(String username);
}