IAgentService.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.tour.module.service;
  2. import com.tour.common.core.domain.entity.SysUser;
  3. import com.tour.module.domain.Agent;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import java.math.BigDecimal;
  6. import java.util.List;
  7. /**
  8. * 代理商信息Service接口
  9. *
  10. * @author zoe
  11. * @date 2023-05-23
  12. */
  13. public interface IAgentService extends IService<Agent> {
  14. /**
  15. * 查询列表
  16. * @param agent 实体
  17. * @return 列表
  18. */
  19. List<Agent> queryList(Agent agent, SysUser user);
  20. List<Agent> selectAgentList(Agent agent, SysUser user);
  21. /**
  22. * 查询所有的代理商
  23. * @return
  24. */
  25. List<Agent> getAgentAll(SysUser user);
  26. Agent getInfoById(Long id);
  27. Agent getInfo(Long id, SysUser user);
  28. Boolean createAgent(Agent agent, SysUser user) throws Exception;
  29. BigDecimal getMaxRete(SysUser user);
  30. List<Agent> selectAgentListByStatus(Integer status);
  31. List<Agent> selectByPid(Integer id);
  32. Integer getSAgentNum(List<Long> agentIds, String todayStartDate);
  33. void updateAgentListAmount(List<Agent> list);
  34. List<Integer> getAgentIdsByPid(Integer id);
  35. List<Long> listAgent(Long id);
  36. /**
  37. * 查询自己和下级以及下下级的id
  38. *
  39. * @param id
  40. * @return
  41. */
  42. List<Integer> getIds(Integer id);
  43. /**
  44. * 根据渠道商查找代理商的id
  45. *
  46. * @param dspId
  47. * @return
  48. */
  49. List<Integer> getAgentIdsByDspId(Integer dspId);
  50. Boolean updateAgent(Agent agent);
  51. /**
  52. * 按区域查询代理商(一级代理商)
  53. *
  54. * @param cityName 市
  55. * @param districtName 区
  56. * @return
  57. */
  58. Agent findByArea(String cityName, String districtName);
  59. /**
  60. * 根据pid查找一级代理商
  61. *
  62. * @param pid
  63. * @return
  64. */
  65. Agent getByPid(Long pid);
  66. /**
  67. * 查询代理商的下级代理商
  68. * @param pid
  69. * @return
  70. */
  71. List<Long> selectByPid(Long pid);
  72. void updateAgentStatus(Integer id);
  73. BigDecimal getMinBindFee(String cityId);
  74. /**
  75. * 获取一级代理商
  76. * @return 代理商列表
  77. */
  78. List<Agent> queryFirstLevelList();
  79. // Long getAgentDeliveryPackageId(Long agentId);
  80. Agent getInfo(SysUser user);
  81. }