MothPopularityServiceImpl.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.iamberry.wechat.service.mothMovable;
  2. import com.iamberry.wechat.core.entity.mothMovable.MothPopularity;
  3. import com.iamberry.wechat.face.mothMovable.MothPopularityService;
  4. //import com.iamberry.wechat.service.mapper.MothMovableMapper;
  5. import com.iamberry.wechat.service.mapper.MothPopularityMapper;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.stereotype.Service;
  8. import java.util.List;
  9. /**
  10. * 活动生成二维码,关注人数统计接口
  11. * @author xm
  12. * @Date 2019-04-25
  13. */
  14. @Service
  15. public class MothPopularityServiceImpl implements MothPopularityService {
  16. @Autowired
  17. private MothPopularityMapper mothPopularityMapper;
  18. // @Autowired
  19. // private MothMovableMapper mothMovableMapper;
  20. /**
  21. * 获取集合
  22. * @param mothPopularity
  23. * @return List
  24. */
  25. @Override
  26. public List<MothPopularity> getMothPopularityList(MothPopularity mothPopularity){
  27. return mothPopularityMapper.getMothPopularityList(mothPopularity);
  28. }
  29. /**
  30. * 查询单条数据
  31. * @param id
  32. * @return mothPopularity
  33. */
  34. @Override
  35. public MothPopularity getMothPopularityById(Integer id){
  36. return mothPopularityMapper.getMothPopularityById(id);
  37. }
  38. /**
  39. * 增加数据
  40. * @param mothPopularity
  41. * @return Integer
  42. */
  43. @Override
  44. public Integer save(MothPopularity mothPopularity){
  45. return mothPopularityMapper.save(mothPopularity);
  46. }
  47. /**
  48. * 修改数据
  49. * @param mothPopularity
  50. * @return Integer
  51. */
  52. @Override
  53. public Integer update(MothPopularity mothPopularity){
  54. return mothPopularityMapper.update(mothPopularity);
  55. }
  56. /**
  57. * 删除数据
  58. * @param id
  59. * @return Integer
  60. */
  61. @Override
  62. public Integer delete(Integer id){
  63. return mothPopularityMapper.delete(id);
  64. }
  65. }