文章列表
//Mapper接口
// # 标准的替代 $等量替代 ${sort} ${order}
@Select("select * from t_user where (username like #{name} or password like #{name}) order by ${sort} ${order} limit #{pageOffset},#{pageSize} ")
public List<User> findAll(Map<String, Object> map);
@Select("select c ...
public interface UserMapper {
@Insert(value = "insert into t_user (username,nickname,password,type) values (#{username},#{nickname},#{password},#{type})")
public void add(User user);
@Update(value = "update t_user set username=#{username},nickname=#{nickname},password=#{passw ...