package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.entity.MdmStrategyDeptDO;
import com.skr.mdm.bean.qo.StrategyDeptQO;
import com.skr.mdm.bean.vo.app.AppStoreDeptVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 策略部门全局表(MdmStrategyDept)表数据库访问层
 *
 * @author nfq
 * @since 2022-11-22 10:47:23
 */
@Repository
public interface MdmStrategyDeptDao extends BaseMapper<MdmStrategyDeptDO> {


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

    List<AppStoreDeptVO> listDept(StrategyDeptQO strategyDeptQO);
}

