package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.so.app.AppStrategyInfoSO;
import com.skr.mdm.bean.vo.app.AppStrategyConfigInfoVO;
import com.skr.mdm.entity.AppStrategyInstallSourceDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 应用安装来源(AppStrategyInstallSource)表数据库访问层
 *
 * @author nfq
 * @since 2022-10-24 17:38:21
 */
@Repository
public interface AppStrategyInstallSourceDao extends BaseMapper<AppStrategyInstallSourceDO> {


    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities List<AppStrategyInstallSource> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<AppStrategyInstallSourceDO> entities);

    /**
     * 获取应用安装来源VO
     * @param strategyId
     * @return
     */
    AppStrategyConfigInfoVO getAppStrategyConfigInfoVO(Integer strategyId);

    /**
     * 获取应用安装来源SO
     * @param strategyId
     * @return
     */
    AppStrategyInfoSO getAppStrategyInfoSO(Integer strategyId);


}

