1
0

AddressInfoService.java 1.9 KB

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