package com.sckw.system.dao;

import com.sckw.system.model.KwsMenuMapping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 菜单
 * @author zk
 * @date 2023-05-31
 */
@Mapper
public interface KwsMenuMappingDao {

    /**
     * @param list 实体类
     * @desc: 批量保存
     * @author: czh
     * @date: 2023/9/5
     */
    void saveBatch(List<KwsMenuMapping> list);

    /**
     * @param id menuId
     * @return KwsMenuMapping
     * @desc: 根据菜单id查映射关系
     * @author: czh
     * @date: 2023/9/5
     */
    List<KwsMenuMapping> selectByMenuId(Long id);

    /**
     * @param idList menuId
     * @return KwsMenuMapping
     * @desc: 根据菜单id查映射关系
     * @author: czh
     * @date: 2023/9/5
     */
    List<KwsMenuMapping> selectByMenuIds(@Param(value = "idList") List<Long> idList);

    /**
     * @param kwsMenuMapping 实体
     * @desc: 修改
     * @author: czh
     * @date: 2023/9/5
     */
    int updateById(KwsMenuMapping kwsMenuMapping);

}
