package com.liquidnet.service.smile.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.smile.entity.SmileAgent;
import com.liquidnet.service.smile.entity.dao.SmileAgentDao;
import com.liquidnet.service.smile.entity.dto.ShowBaseVoDto;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liquidnet
 * @since 2022-03-16
 */
public interface SmileAgentMapper extends BaseMapper<SmileAgent> {

    void updateAgentById(@Param("id")Long id,@Param("totalCarry") BigDecimal totalCarry,@Param("ordCarry") BigDecimal ordCarry);

    List<Map<String,Object>> getUserOrgByPerIdAndUidAndAgentMaster(@Param("performancesId") String performancesId);

    List<SmileAgentDao> selectAgentList(@Param("performancesId") String performancesId);

    List<SmileAgent> selectAgentCarryGtZeroByPerId(@Param("performancesId")String performancesId);

    List<ShowBaseVoDto> selectMapByPerId(@Param("performancesId") String performancesId);
}
