package com.ruoyi.mall.mapper;

import java.util.List;
import com.ruoyi.mall.domain.MallAppSalesmanAchievement;

/**
 * app-业务员业绩Mapper接口
 *
 * @author ruoyi
 * @date 2024-07-04
 */
public interface MallAppSalesmanAchievementMapper
{
    /**
     * 查询app-业务员业绩
     *
     * @param achievementId app-业务员业绩主键
     * @return app-业务员业绩
     */
    public MallAppSalesmanAchievement selectMallAppSalesmanAchievementByAchievementId(Long achievementId);

    /**
     * 查询app-业务员业绩列表
     *
     * @param mallAppSalesmanAchievement app-业务员业绩
     * @return app-业务员业绩集合
     */
    public List<MallAppSalesmanAchievement> selectMallAppSalesmanAchievementList(MallAppSalesmanAchievement mallAppSalesmanAchievement);

    /**
     * 新增app-业务员业绩
     *
     * @param mallAppSalesmanAchievement app-业务员业绩
     * @return 结果
     */
    public int insertMallAppSalesmanAchievement(MallAppSalesmanAchievement mallAppSalesmanAchievement);

    /**
     * 修改app-业务员业绩
     *
     * @param mallAppSalesmanAchievement app-业务员业绩
     * @return 结果
     */
    public int updateMallAppSalesmanAchievement(MallAppSalesmanAchievement mallAppSalesmanAchievement);

    /**
     * 删除app-业务员业绩
     *
     * @param achievementId app-业务员业绩主键
     * @return 结果
     */
    public int deleteMallAppSalesmanAchievementByAchievementId(Long achievementId);

    /**
     * 批量删除app-业务员业绩
     *
     * @param achievementIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMallAppSalesmanAchievementByAchievementIds(Long[] achievementIds);

    /**
     * 查询app-业务员业绩
     *
     * @param orderId app-订单主键ID
     * @return app-业务员业绩
     */
    public MallAppSalesmanAchievement selectMallAppSalesmanAchievementByOrderId(Long orderId);
}
