AdService.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.dto.CopyAdDto;
  3. import com.kmall.admin.entity.AdEntity;
  4. import java.util.List;
  5. import java.util.Map;
  6. /**
  7. * Service接口
  8. *
  9. * @author Scott
  10. * @email
  11. * @date 2017-08-19 09:37:35
  12. */
  13. public interface AdService {
  14. /**
  15. * 根据主键查询实体
  16. *
  17. * @param id 主键
  18. * @return 实体
  19. */
  20. AdEntity queryObject(Integer id);
  21. /**
  22. * 分页查询
  23. *
  24. * @param map 参数
  25. * @return list
  26. */
  27. List<AdEntity> queryList(Map<String, Object> map);
  28. /**
  29. * 分页统计总数
  30. *
  31. * @param map 参数
  32. * @return 总数
  33. */
  34. int queryTotal(Map<String, Object> map);
  35. /**
  36. * 保存实体
  37. *
  38. * @param ad 实体
  39. * @return 保存条数
  40. */
  41. int save(AdEntity ad);
  42. /**
  43. * 根据主键更新实体
  44. *
  45. * @param ad 实体
  46. * @return 更新条数
  47. */
  48. int update(AdEntity ad);
  49. /**
  50. * 根据主键删除
  51. *
  52. * @param id
  53. * @return 删除条数
  54. */
  55. int delete(Integer id);
  56. /**
  57. * 根据主键批量删除
  58. *
  59. * @param ids
  60. * @return 删除条数
  61. */
  62. int deleteBatch(Integer[] ids);
  63. int saveCopyAd(CopyAdDto copyAdDto);
  64. }