package com.goldenwater.slaj.hazard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.goldenwater.slaj.hazard.mapper.BisHazMajRegWritRegTimeMapper;
import com.goldenwater.slaj.hazard.domain.BisHazMajRegWritRegTime;
import com.goldenwater.slaj.hazard.service.IBisHazMajRegWritRegTimeService;

/**
 * 备案核销时间关联 服务层实现
 */
@Service
public class BisHazMajRegWritRegTimeServiceImpl implements IBisHazMajRegWritRegTimeService {

    @Autowired
    private BisHazMajRegWritRegTimeMapper bisHazMajRegWritRegTimeMapper;

    /**
     * 查询备案核销时间关联信息
     * @param guid 查询条件
     * @return 备案核销时间关联信息
     */
    @Override
    public BisHazMajRegWritRegTime selectBisHazMajRegWritRegTimeByGuid(String guid) {
        return bisHazMajRegWritRegTimeMapper.selectBisHazMajRegWritRegTimeByGuid(guid);
    }

    /**
     * 查询备案核销时间关联列表
     * @param bisHazMajRegWritRegTime 备案核销时间关联查询条件
     * @return 备案核销时间关联集合
     */
    @Override
    public List<BisHazMajRegWritRegTime> selectBisHazMajRegWritRegTimeList(BisHazMajRegWritRegTime bisHazMajRegWritRegTime) {
        return bisHazMajRegWritRegTimeMapper.selectBisHazMajRegWritRegTimeList(bisHazMajRegWritRegTime);
    }

    /**
     * 新增备案核销时间关联
     * @param bisHazMajRegWritRegTime 备案核销时间关联信息
     * @return 影响行数
     */
    @Override
    public int insertBisHazMajRegWritRegTime(BisHazMajRegWritRegTime bisHazMajRegWritRegTime) {
        return bisHazMajRegWritRegTimeMapper.insertBisHazMajRegWritRegTime(bisHazMajRegWritRegTime);
    }

    /**
     * 修改备案核销时间关联
     * @param bisHazMajRegWritRegTime 备案核销时间关联信息
     * @return 影响行数
     */
    @Override
    public int updateBisHazMajRegWritRegTime(BisHazMajRegWritRegTime bisHazMajRegWritRegTime) {
        return bisHazMajRegWritRegTimeMapper.updateBisHazMajRegWritRegTime(bisHazMajRegWritRegTime);
    }

    /**
     * 删除备案核销时间关联
     * @param guid 备案核销时间关联主键
     * @return 影响行数
     */
    @Override
    public int deleteBisHazMajRegWritRegTimeByGuid(String guid) {
        return bisHazMajRegWritRegTimeMapper.deleteBisHazMajRegWritRegTimeByGuid(guid);
    }

    /**
     * 批量删除备案核销时间关联
     * @param guids 备案核销时间关联主键数组
     * @return 影响行数
     */
    @Override
    public int deleteBisHazMajRegWritRegTimeByGuids(String[] guids) {
        return bisHazMajRegWritRegTimeMapper.deleteBisHazMajRegWritRegTimeByGuids(guids);
    }
}
