package com.fdkankan.ucenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fdkankan.ucenter.entity.SceneResourceCooperation;
import com.fdkankan.ucenter.mapper.ISceneResourceCooperationMapper;
import com.fdkankan.ucenter.service.ISceneResourceCooperationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 场景资源和协作用户关联表 服务实现类
 * </p>
 *
 * @author 
 * @since 2022-07-05
 */
@Service
public class SceneResourceCooperationServiceImpl extends ServiceImpl<ISceneResourceCooperationMapper, SceneResourceCooperation> implements ISceneResourceCooperationService {


    @Override
    public void deleteBatchByCooperationIds(List<Long> cooperationIds) {
        LambdaQueryWrapper<SceneResourceCooperation> wrapper = new LambdaQueryWrapper<>();
        wrapper.in(SceneResourceCooperation::getSceneCooperationId,cooperationIds);
        this.remove(wrapper);
    }
}
