DealerRelationMapper.java 810 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.iamberry.wechat.service.mapper;
  2. import com.iamberry.wechat.core.entity.relationship.DealerRelation;
  3. /**
  4. * 商户层关系 mapper
  5. * 2016年7月4日
  6. * @author Administrator
  7. *
  8. */
  9. public interface DealerRelationMapper {
  10. /**
  11. * 根据用id 查询商户层关系
  12. * 2016年7月4日
  13. * @author 穆再兴
  14. * @param id
  15. * @return
  16. */
  17. public DealerRelation getDealerRelationById(Integer id);
  18. /**
  19. * 添加一个商户层关系
  20. * 2016年7月4日
  21. * @author 穆再兴
  22. * @param dealerRelation
  23. * @return
  24. */
  25. public Integer insertDealerRelation(DealerRelation dealerRelation);
  26. /**
  27. * 更新分销商用户的父级,级联更新所有的层次关系
  28. * @author 欧阳明
  29. * @param dealerRelation
  30. * @return
  31. */
  32. public Integer updateRelation(DealerRelation dealerRelation);
  33. }