AddressInfoService.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.entity.AddressInfoEntity;
  3. import com.kmall.admin.entity.ShopAndAddrVo;
  4. import com.kmall.admin.entity.StoreExprActiveDto;
  5. import com.kmall.admin.entity.shop.StoreAddrVo;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 门店和快递关联表Service接口
  10. *
  11. * @author emato
  12. * @email admin@qhdswl.com
  13. * @date 2021-04-06 10:14:18
  14. */
  15. public interface AddressInfoService {
  16. /**
  17. * 根据主键查询实体
  18. *
  19. * @param id 主键
  20. * @return 实体
  21. */
  22. AddressInfoEntity queryObject(Integer id);
  23. /**
  24. * 根据门店id和快递id查询
  25. * @param shopAndAddrVo
  26. * @return
  27. */
  28. AddressInfoEntity queryIds(ShopAndAddrVo shopAndAddrVo);
  29. List<AddressInfoEntity> queryCourieId(Integer courieId);
  30. StoreExprActiveDto queryByStoreId(Long storeId);
  31. /**
  32. * 分页查询
  33. *
  34. * @param map 参数
  35. * @return list
  36. */
  37. List<AddressInfoEntity> queryList(Map<String, Object> map);
  38. /**
  39. * 分页统计总数
  40. *
  41. * @param map 参数
  42. * @return 总数
  43. */
  44. int queryTotal(Map<String, Object> map);
  45. /**
  46. * 保存实体
  47. *
  48. * @param addressInfo 实体
  49. * @return 保存条数
  50. */
  51. int save(AddressInfoEntity addressInfo);
  52. /**
  53. * 添加门店关联快递公司
  54. * @param shopAndAddrVo
  55. * @return
  56. */
  57. int save(ShopAndAddrVo shopAndAddrVo);
  58. /**
  59. * 根据主键更新实体
  60. *
  61. * @param addressInfo 实体
  62. * @return 更新条数
  63. */
  64. int update(AddressInfoEntity addressInfo);
  65. /**
  66. * 修改状态
  67. * @param storeAddrVo
  68. * @return
  69. */
  70. int updateStatus(StoreAddrVo storeAddrVo);
  71. /**
  72. * 根据主键删除
  73. *
  74. * @param id
  75. * @return 删除条数
  76. */
  77. int delete(Integer id);
  78. /**
  79. * 根据主键批量删除
  80. *
  81. * @param ids
  82. * @return 删除条数
  83. */
  84. int deleteBatch(Integer[]ids);
  85. }