package com.zd.laboratory.service.impl;

import java.util.List;
import com.zd.common.core.utils.DateUtils;
import com.zd.common.security.utils.SaveUtil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zd.laboratory.mapper.LabCheckRecordDetailslogMapper;
import com.zd.laboratory.domain.LabCheckRecordDetailslog;
import com.zd.laboratory.service.ILabCheckRecordDetailslogService;

/**
 * 隐患检查审核日志Service业务层处理
 *
 * @author zd
 * @date 2022-03-31
 */
@Service
public class LabCheckRecordDetailslogServiceImpl implements ILabCheckRecordDetailslogService
{

    @Autowired
    private LabCheckRecordDetailslogMapper labCheckRecordDetailslogMapper;


    /**
     * 查询隐患检查审核日志
     *
     * @param id 隐患检查审核日志主键
     * @return 隐患检查审核日志
     */
    @Override
    public LabCheckRecordDetailslog selectLabCheckRecordDetailslogById(Long id)
    {
        return labCheckRecordDetailslogMapper.selectLabCheckRecordDetailslogById(id);
    }

    /**
     * 查询隐患检查审核日志列表
     *
     * @param labCheckRecordDetailslog 隐患检查审核日志
     * @return 隐患检查审核日志
     */
    @Override
    public List<LabCheckRecordDetailslog> selectLabCheckRecordDetailslogList(LabCheckRecordDetailslog labCheckRecordDetailslog)
    {
        return labCheckRecordDetailslogMapper.selectLabCheckRecordDetailslogList(labCheckRecordDetailslog);
    }

    /**
     * 新增隐患检查审核日志
     *
     * @param labCheckRecordDetailslog 隐患检查审核日志
     * @return 结果
     */
    @Override
    public int insertLabCheckRecordDetailslog(LabCheckRecordDetailslog labCheckRecordDetailslog)
    {
        //设置其他公共字段
        SaveUtil.setCommonAttr(labCheckRecordDetailslog);
        return labCheckRecordDetailslogMapper.insertLabCheckRecordDetailslog(labCheckRecordDetailslog);
    }

    /**
     * 修改隐患检查审核日志
     *
     * @param labCheckRecordDetailslog 隐患检查审核日志
     * @return 结果
     */
    @Override
    public int updateLabCheckRecordDetailslog(LabCheckRecordDetailslog labCheckRecordDetailslog)
    {
        return labCheckRecordDetailslogMapper.updateLabCheckRecordDetailslog(labCheckRecordDetailslog);
    }

    /**
     * 批量删除隐患检查审核日志
     *
     * @param ids 需要删除的隐患检查审核日志主键
     * @return 结果
     */
    @Override
    public int deleteLabCheckRecordDetailslogByIds(Long[] ids)
    {
        return labCheckRecordDetailslogMapper.deleteLabCheckRecordDetailslogByIds(ids);
    }

    /**
     * 删除隐患检查审核日志信息
     *
     * @param id 隐患检查审核日志主键
     * @return 结果
     */
    @Override
    public int deleteLabCheckRecordDetailslogById(Long id)
    {
        return labCheckRecordDetailslogMapper.deleteLabCheckRecordDetailslogById(id);
    }
}