1
0

StoreService.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.dto.StoreDto;
  3. import com.kmall.admin.dto.StoreIdDto;
  4. import com.kmall.admin.entity.StoreEntity;
  5. import com.kmall.admin.entity.SysMacroEntity;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * Service接口
  10. *
  11. * @author Scott
  12. * @email
  13. * @date 2017-12-02 00:53:32
  14. */
  15. public interface StoreService {
  16. /**
  17. * 根据主键查询实体
  18. *
  19. * @param id 主键
  20. * @return 实体
  21. */
  22. StoreEntity queryObject(Integer id);
  23. /**
  24. * 分页查询
  25. *
  26. * @param map 参数
  27. * @return list
  28. */
  29. List<StoreEntity> queryList(Map<String, Object> map);
  30. /**
  31. * 分页统计总数
  32. *
  33. * @param map 参数
  34. * @return 总数
  35. */
  36. int queryTotal(Map<String, Object> map);
  37. /**
  38. * 保存实体
  39. *
  40. * @param store 实体
  41. * @return 保存条数
  42. */
  43. int save(StoreEntity store);
  44. /**
  45. * 根据主键更新实体
  46. *
  47. * @param store 实体
  48. * @return 更新条数
  49. */
  50. int update(StoreEntity store);
  51. /**
  52. * 根据主键删除
  53. *
  54. * @param id
  55. * @return 删除条数
  56. */
  57. int delete(Integer id);
  58. /**
  59. * 根据主键批量删除
  60. *
  61. * @param ids
  62. * @return 删除条数
  63. */
  64. int deleteBatch(Integer[] ids);
  65. /**
  66. * 批量导入
  67. *
  68. * @param storeDtoList
  69. * @return
  70. */
  71. int uploadExcel(List<StoreDto> storeDtoList);
  72. List<StoreEntity> queryExportList(Map<String, Object> map);
  73. String checkStoreIdUpload(List<StoreIdDto> storeIdDtoList);
  74. /**
  75. * 查询所有的门店
  76. * @return
  77. */
  78. List<StoreEntity> queryStoreByAll();
  79. List<SysMacroEntity> queryListDictionary();
  80. }