package com.testor.module.hazard.service.impl;

import com.testor.module.hazard.dao.THazardLicenseSignatureRecordDao;
import com.testor.module.hazard.model.domain.THazardLicenseSignatureRecord;
import com.testor.module.hazard.service.THazardLicenseSignatureRecordService;
import org.springframework.stereotype.Service;
import com.tongtech.tfw.backend.common.models.supers.SuperServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collections;
import java.util.List;

/**
 * 危险作业许可证-签字记录Service业务层处理
 * 
 * @author testor-framework
 * @date 2024-12-26 10:53:14
 */
@Service
public class THazardLicenseSignatureRecordServiceImpl extends SuperServiceImpl<THazardLicenseSignatureRecordDao, THazardLicenseSignatureRecord> implements THazardLicenseSignatureRecordService
{
    @Autowired(required = false)
    private THazardLicenseSignatureRecordDao tHazardLicenseSignatureRecordDao;

    @Override
    public List<THazardLicenseSignatureRecord> getLatestByPlanIdAndType(THazardLicenseSignatureRecord tHazardLicenseSignatureRecord) {
        return tHazardLicenseSignatureRecordDao.selectLatestByPlanIdAndType(tHazardLicenseSignatureRecord);
    }
}
