123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- package com.tour.module.service;
- import com.tour.common.core.domain.entity.SysUser;
- import com.tour.module.domain.Agent;
- import com.baomidou.mybatisplus.extension.service.IService;
- import java.math.BigDecimal;
- import java.util.List;
- /**
- * 代理商信息Service接口
- *
- * @author zoe
- * @date 2023-05-23
- */
- public interface IAgentService extends IService<Agent> {
- /**
- * 查询列表
- * @param agent 实体
- * @return 列表
- */
- List<Agent> queryList(Agent agent, SysUser user);
- List<Agent> selectAgentList(Agent agent, SysUser user);
- /**
- * 查询所有的代理商
- * @return
- */
- List<Agent> getAgentAll(SysUser user);
- Agent getInfoById(Long id);
- Agent getInfo(Long id, SysUser user);
- Boolean createAgent(Agent agent, SysUser user) throws Exception;
- BigDecimal getMaxRete(SysUser user);
- List<Agent> selectAgentListByStatus(Integer status);
- List<Agent> selectByPid(Integer id);
- Integer getSAgentNum(List<Long> agentIds, String todayStartDate);
- void updateAgentListAmount(List<Agent> list);
- List<Integer> getAgentIdsByPid(Integer id);
- List<Long> listAgent(Long id);
- /**
- * 查询自己和下级以及下下级的id
- *
- * @param id
- * @return
- */
- List<Integer> getIds(Integer id);
- /**
- * 根据渠道商查找代理商的id
- *
- * @param dspId
- * @return
- */
- List<Integer> getAgentIdsByDspId(Integer dspId);
- Boolean updateAgent(Agent agent);
- /**
- * 按区域查询代理商(一级代理商)
- *
- * @param cityName 市
- * @param districtName 区
- * @return
- */
- Agent findByArea(String cityName, String districtName);
- /**
- * 根据pid查找一级代理商
- *
- * @param pid
- * @return
- */
- Agent getByPid(Long pid);
- /**
- * 查询代理商的下级代理商
- * @param pid
- * @return
- */
- List<Long> selectByPid(Long pid);
- void updateAgentStatus(Integer id);
- BigDecimal getMinBindFee(String cityId);
- /**
- * 获取一级代理商
- * @return 代理商列表
- */
- List<Agent> queryFirstLevelList();
- // Long getAgentDeliveryPackageId(Long agentId);
- Agent getInfo(SysUser user);
- }
|