package com.skr.mdm.dao;

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

import java.util.List;

/**
 * 应用策略防卸载(AppStrategyNotUninstall)表数据库访问层
 *
 * @author nfq
 * @since 2022-10-24 17:38:21
 */
@Repository
public interface AppStrategyNotUninstallDao extends BaseMapper<AppStrategyNotUninstallDO> {


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

    /**
     * 获取应用策略防卸载VO
     * @param strategyId
     * @return
     */
    List<AppConfigVO> listAppConfigVO(Integer strategyId);

    /**
     * 获取应用策略防卸载SO
     * @param strategyId
     * @return
     */
    List<AppConfigSO> listAppConfigSO(Integer strategyId);

}

