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 { /** * 查询列表 * @param agent 实体 * @return 列表 */ List queryList(Agent agent, SysUser user); List selectAgentList(Agent agent, SysUser user); /** * 查询所有的代理商 * @return */ List 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 selectAgentListByStatus(Integer status); List selectByPid(Integer id); Integer getSAgentNum(List agentIds, String todayStartDate); void updateAgentListAmount(List list); List getAgentIdsByPid(Integer id); List listAgent(Long id); /** * 查询自己和下级以及下下级的id * * @param id * @return */ List getIds(Integer id); /** * 根据渠道商查找代理商的id * * @param dspId * @return */ List 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 selectByPid(Long pid); void updateAgentStatus(Integer id); BigDecimal getMinBindFee(String cityId); /** * 获取一级代理商 * @return 代理商列表 */ List queryFirstLevelList(); // Long getAgentDeliveryPackageId(Long agentId); Agent getInfo(SysUser user); }