StoreService.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.fuint.common.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.fuint.common.dto.StoreDto;
  4. import com.fuint.framework.exception.BusinessCheckException;
  5. import com.fuint.framework.pagination.PaginationRequest;
  6. import com.fuint.framework.pagination.PaginationResponse;
  7. import com.fuint.repository.model.MtStore;
  8. import java.util.List;
  9. import java.util.Map;
  10. /**
  11. * 店铺业务接口
  12. *
  13. * Created by FSQ
  14. * CopyRight https://www.fuint.cn
  15. */
  16. public interface StoreService extends IService<MtStore> {
  17. /**
  18. * 分页查询店铺列表
  19. *
  20. * @param paginationRequest
  21. * @return
  22. */
  23. PaginationResponse<StoreDto> queryStoreListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
  24. /**
  25. * 保存店铺信息
  26. *
  27. * @param reqStoreDto
  28. * @throws BusinessCheckException
  29. */
  30. MtStore saveStore(StoreDto reqStoreDto) throws BusinessCheckException;
  31. /**
  32. * 获取系统默认店铺
  33. *
  34. * @throws BusinessCheckException
  35. */
  36. MtStore getDefaultStore(String merchantNo) throws BusinessCheckException;
  37. /**
  38. * 根据店铺ID获取店铺信息
  39. *
  40. * @param id 店铺ID
  41. * @throws BusinessCheckException
  42. */
  43. MtStore queryStoreById(Integer id) throws BusinessCheckException;
  44. /**
  45. * 根据店铺id列表获取店铺信息
  46. *
  47. * @param ids 店铺ID列表
  48. * @throws BusinessCheckException
  49. */
  50. List<MtStore> queryStoresByIds(List<Integer> ids) throws BusinessCheckException;
  51. /**
  52. * 根据店铺名称获取店铺信息
  53. *
  54. * @param storeName 店铺名称
  55. * @throws BusinessCheckException
  56. */
  57. StoreDto queryStoreByName(String storeName) throws BusinessCheckException;
  58. /**
  59. * 根据店铺ID查询店铺信息
  60. *
  61. * @param id 店铺ID
  62. * @return
  63. * @throws BusinessCheckException
  64. */
  65. StoreDto queryStoreDtoById(Integer id) throws BusinessCheckException;
  66. /**
  67. * 更新店铺状态
  68. *
  69. * @param id 店铺ID
  70. * @param operator 操作人
  71. * @param status 状态
  72. * @throws BusinessCheckException
  73. */
  74. void updateStatus(Integer id, String operator, String status) throws BusinessCheckException;
  75. /**
  76. * 根据条件查询店铺
  77. * */
  78. List<MtStore> queryStoresByParams(Map<String, Object> params) throws BusinessCheckException;
  79. /**
  80. * 根据距离远近查找店铺
  81. *
  82. * @param merchantNo
  83. * @param keyword
  84. * @param latitude
  85. * @param longitude
  86. * @return
  87. * */
  88. List<MtStore> queryByDistance(String merchantNo, String keyword, String latitude, String longitude) throws BusinessCheckException;
  89. }