StoreService.java 1.5 KB

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