ChannelPriceServiceImpl.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package com.iamberry.wechat.service.channel;
  2. import com.iamberry.wechat.core.entity.channel.ChannelPrice;
  3. import com.iamberry.wechat.face.channel.ChannelPriceService;
  4. import com.iamberry.wechat.service.mapper.ChannelPriceMapper;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import java.util.List;
  8. /**
  9. * 渠道对应产品返利价格表接口
  10. * @author xm
  11. * @Date 2018-07-23
  12. */
  13. @Service
  14. public class ChannelPriceServiceImpl implements ChannelPriceService {
  15. @Autowired
  16. private ChannelPriceMapper channelPriceMapper;
  17. /**
  18. * 获取集合
  19. * @param channelPrice
  20. * @return List
  21. */
  22. @Override
  23. public List<ChannelPrice> getChannelPriceList(ChannelPrice channelPrice){
  24. return channelPriceMapper.getChannelPriceList(channelPrice);
  25. }
  26. /**
  27. * 查询单条数据
  28. * @param id
  29. * @return channelPrice
  30. */
  31. @Override
  32. public ChannelPrice getChannelPriceById(Integer id){
  33. return channelPriceMapper.getChannelPriceById(id);
  34. }
  35. /**
  36. * 增加数据
  37. * @param channelPrice
  38. * @return Integer
  39. */
  40. @Override
  41. public Integer save(ChannelPrice channelPrice){
  42. return channelPriceMapper.save(channelPrice);
  43. }
  44. /**
  45. * 修改数据
  46. * @param channelPrice
  47. * @return Integer
  48. */
  49. @Override
  50. public Integer update(ChannelPrice channelPrice){
  51. return channelPriceMapper.update(channelPrice);
  52. }
  53. /**
  54. * 删除数据
  55. * @param id
  56. * @return Integer
  57. */
  58. @Override
  59. public Integer delete(Integer id){
  60. return channelPriceMapper.delete(id);
  61. }
  62. /**
  63. * 增加数据 <集合>
  64. * @param channelPriceList
  65. * @return Integer
  66. */
  67. @Override
  68. public Integer saveList(List<ChannelPrice> channelPriceList){
  69. return channelPriceMapper.saveList(channelPriceList);
  70. }
  71. /**
  72. * 删除数据 <集合>
  73. * @param ids
  74. * @return Integer
  75. */
  76. @Override
  77. public Integer deleteList(Integer[] ids){
  78. return channelPriceMapper.deleteList(ids);
  79. }
  80. }