package com.keyware.shandan.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.keyware.shandan.common.service.BaseServiceImpl;
import com.keyware.shandan.system.entity.SysRoleMenu;
import com.keyware.shandan.system.mapper.SysRoleMenuMapper;
import com.keyware.shandan.system.service.SysRoleMenuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统角色菜单关系表 服务实现类
 * </p>
 *
 * @author GuoXin
 * @since 2021-05-19
 */
@Service
public class SysRoleMenuServiceImpl extends BaseServiceImpl<SysRoleMenuMapper, SysRoleMenu, String> implements SysRoleMenuService {

    @Override
    public void deleteByMenuIds(List<String> idList) {
        QueryWrapper<SysRoleMenu> wrapper = new QueryWrapper<>();
        wrapper.in("ROLE_ID", idList);
        remove(wrapper);
    }
}
