package com.zd.laboratory.service.impl;

import java.util.List;

import com.zd.common.core.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zd.laboratory.mapper.LabSubjectSecurityconfigureMapper;
import com.zd.laboratory.domain.LabSubjectSecurityconfigure;
import com.zd.laboratory.service.ILabSubjectSecurityconfigureService;

/**
 * 实验室和安全准入配置中间关联Service业务层处理
 *
 * @author zd
 * @date 2021-09-10
 */
@Service
public class LabSubjectSecurityconfigureServiceImpl implements ILabSubjectSecurityconfigureService {
    @Autowired
    private LabSubjectSecurityconfigureMapper labSubjectSecurityconfigureMapper;

    /**
     * 查询实验室和安全准入配置中间关联
     *
     * @param id 实验室和安全准入配置中间关联主键
     * @return 实验室和安全准入配置中间关联
     */
    @Override
    public LabSubjectSecurityconfigure selectLabSubjectSecurityconfigureById(Long id) {
        return labSubjectSecurityconfigureMapper.selectLabSubjectSecurityconfigureById(id);
    }

    /**
     * 查询实验室和安全准入配置中间关联列表
     *
     * @param labSubjectSecurityconfigure 实验室和安全准入配置中间关联
     * @return 实验室和安全准入配置中间关联
     */
    @Override
    public List<LabSubjectSecurityconfigure> selectLabSubjectSecurityconfigureList(LabSubjectSecurityconfigure labSubjectSecurityconfigure) {
        return labSubjectSecurityconfigureMapper.selectLabSubjectSecurityconfigureList(labSubjectSecurityconfigure);
    }

    /**
     * 新增实验室和安全准入配置中间关联
     *
     * @param labSubjectSecurityconfigure 实验室和安全准入配置中间关联
     * @return 结果
     */
    @Override
    public int insertLabSubjectSecurityconfigure(LabSubjectSecurityconfigure labSubjectSecurityconfigure) {
        return labSubjectSecurityconfigureMapper.insertLabSubjectSecurityconfigure(labSubjectSecurityconfigure);
    }

    /**
     * 修改实验室和安全准入配置中间关联
     *
     * @param labSubjectSecurityconfigure 实验室和安全准入配置中间关联
     * @return 结果
     */
    @Override
    public int updateLabSubjectSecurityconfigure(LabSubjectSecurityconfigure labSubjectSecurityconfigure) {
        return labSubjectSecurityconfigureMapper.updateLabSubjectSecurityconfigure(labSubjectSecurityconfigure);
    }

    /**
     * 批量删除实验室和安全准入配置中间关联
     *
     * @param ids 需要删除的实验室和安全准入配置中间关联主键
     * @return 结果
     */
    @Override
    public int deleteLabSubjectSecurityconfigureByIds(Long[] ids) {
        return labSubjectSecurityconfigureMapper.deleteLabSubjectSecurityconfigureByIds(ids);
    }

    /**
     * 删除实验室和安全准入配置中间关联信息
     *
     * @param id 实验室和安全准入配置中间关联主键
     * @return 结果
     */
    @Override
    public int deleteLabSubjectSecurityconfigureById(Long id) {
        return labSubjectSecurityconfigureMapper.deleteLabSubjectSecurityconfigureById(id);
    }
}
