package com.zd.laboratory.service.impl;

import com.zd.laboratory.domain.LabSubAccessCheckInLog;
import com.zd.laboratory.mapper.LabSubAccessCheckLogMapper;
import com.zd.laboratory.service.ILabSubAccessCheckLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zhoupan
 * @Date: 2021/11/13/17:16
 * @Description:
 */
@Service
public class LabSubAccessCheckLogServiceImpl implements ILabSubAccessCheckLogService {
    @Autowired
    private LabSubAccessCheckLogMapper subAccessCheckLogMapper;


    /**
     * 查询指定签到记录的成功检查项
     *
     * @param signId
     * @return
     */
    @Override
    public List<String> selectSuccessTypeBySignId(Long signId) {

        return subAccessCheckLogMapper.selectSuccessTypeBySignId(signId);
    }

    /**
     * 新增记录
     *
     * @param subAccessCheckInLog
     * @return
     */
    @Override
    public int insertLog(LabSubAccessCheckInLog subAccessCheckInLog) {
        return subAccessCheckLogMapper.insertLog(subAccessCheckInLog);
    }
}
