1
0

CouponService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. package com.kmall.admin.service;
  3. import com.kmall.admin.entity.CouponEntity;
  4. import com.kmall.common.utils.R;
  5. import java.util.List;
  6. import java.util.Map;
  7. */
  8. /**
  9. * Service接口
  10. *
  11. * @author Scott
  12. * @email
  13. * @date 2017-08-19 12:53:26
  14. *//*
  15. public interface CouponService {
  16. */
  17. /**
  18. * 根据主键查询实体
  19. *
  20. * @param id 主键
  21. * @return 实体
  22. *//*
  23. CouponEntity queryObject(Integer id);
  24. */
  25. /**
  26. * 分页查询
  27. *
  28. * @param map 参数
  29. * @return list
  30. *//*
  31. List<CouponEntity> queryList(Map<String, Object> map);
  32. */
  33. /**
  34. * 分页统计总数
  35. *
  36. * @param map 参数
  37. * @return 总数
  38. *//*
  39. int queryTotal(Map<String, Object> map);
  40. */
  41. /**
  42. * 保存实体
  43. *
  44. * @param coupon 实体
  45. * @return 保存条数
  46. *//*
  47. int save(CouponEntity coupon);
  48. */
  49. /**
  50. * 根据主键更新实体
  51. *
  52. * @param coupon 实体
  53. * @return 更新条数
  54. *//*
  55. int update(CouponEntity coupon);
  56. */
  57. /**
  58. * 根据主键删除
  59. *
  60. * @param id
  61. * @return 删除条数
  62. *//*
  63. int delete(Integer id);
  64. */
  65. /**
  66. * 根据主键批量删除
  67. *
  68. * @param ids
  69. * @return 删除条数
  70. *//*
  71. int deleteBatch(Integer[] ids);
  72. */
  73. /**
  74. * 按用户、商品下发优惠券
  75. *
  76. * @param params
  77. * @return
  78. *//*
  79. R publish(Map<String, Object> params);
  80. }
  81. */