StoreMapper.java 636 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.example.mapper;
  2. import com.example.entity.ProductType;
  3. import com.example.entity.Store;
  4. import java.util.List;
  5. /**
  6. * 操作store相关数据接口
  7. */
  8. public interface StoreMapper {
  9. /**
  10. * 新增
  11. */
  12. int insert(Store store);
  13. /**
  14. * 删除
  15. */
  16. int deleteById(Integer id);
  17. /**
  18. * 修改
  19. */
  20. int updateById(Store store);
  21. /**
  22. * 根据ID查询
  23. */
  24. Store selectById(Integer id);
  25. /**
  26. * 查询所有
  27. */
  28. List<Store> selectAll(Store store);
  29. /**
  30. * shopId获取店铺商品类型
  31. */
  32. Store selectProductsTypes(Integer shopId);
  33. }