StoreService.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. * @return
  36. */
  37. MtStore getDefaultStore(String merchantNo) throws BusinessCheckException;
  38. /**
  39. * 根据店铺ID获取店铺信息
  40. *
  41. * @param id 店铺ID
  42. * @throws BusinessCheckException
  43. * @return
  44. */
  45. MtStore queryStoreById(Integer id) throws BusinessCheckException;
  46. /**
  47. * 根据店铺名称获取店铺信息
  48. *
  49. * @param storeName 店铺名称
  50. * @throws BusinessCheckException
  51. */
  52. StoreDto queryStoreByName(String storeName) throws BusinessCheckException;
  53. /**
  54. * 根据店铺ID查询店铺信息
  55. *
  56. * @param id 店铺ID
  57. * @return
  58. * @throws BusinessCheckException
  59. */
  60. StoreDto queryStoreDtoById(Integer id) throws BusinessCheckException;
  61. /**
  62. * 更新店铺状态
  63. *
  64. * @param id 店铺ID
  65. * @param operator 操作人
  66. * @param status 状态
  67. * @throws BusinessCheckException
  68. */
  69. void updateStatus(Integer id, String operator, String status) throws BusinessCheckException;
  70. /**
  71. * 根据条件查询店铺列表
  72. *
  73. * @param params 查询参数
  74. * @return
  75. * */
  76. List<MtStore> queryStoresByParams(Map<String, Object> params) throws BusinessCheckException;
  77. /**
  78. * 根据距离远近查找店铺
  79. *
  80. * @param merchantNo 商户号
  81. * @param keyword 关键字
  82. * @param latitude 维度
  83. * @param longitude 经度
  84. * @return
  85. * */
  86. List<MtStore> queryByDistance(String merchantNo, String keyword, String latitude, String longitude) throws BusinessCheckException;
  87. /**
  88. * 获取店铺名称
  89. *
  90. * @param storeIds 店铺ID
  91. * @return
  92. * */
  93. String getStoreNames(String storeIds);
  94. }