AdminstoreMapper.java 716 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.example.mapper;
  2. import com.example.entity.Adminstore;
  3. import org.apache.ibatis.annotations.Select;
  4. import java.util.List;
  5. /**
  6. * 操作adminstore相关数据接口
  7. */
  8. public interface AdminstoreMapper {
  9. /**
  10. * 新增
  11. */
  12. int insert(Adminstore adminstore);
  13. /**
  14. * 删除
  15. */
  16. int deleteById(Integer id);
  17. /**
  18. * 修改
  19. */
  20. int updateById(Adminstore adminstore);
  21. /**
  22. * 根据ID查询
  23. */
  24. Adminstore selectById(Integer id);
  25. /**
  26. * 查询所有
  27. */
  28. List<Adminstore> selectAll(Adminstore adminstore);
  29. @Select("select * from adminstore where username = #{username}")
  30. Adminstore selectByUsername (String username);
  31. }