package com.yida.data.school.epidemic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yida.data.common.core.entity.epidemic.EpidemicBaseData;
import com.yida.data.school.epidemic.mapper.EpidemicBaseDataMapper;
import com.yida.data.school.epidemic.service.EpidemicBaseDataService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ccl
 */
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor
public class EpidemicBaseDataServiceImpl extends ServiceImpl<EpidemicBaseDataMapper, EpidemicBaseData>
        implements EpidemicBaseDataService {
    @Override
    public EpidemicBaseData lastEpidemic(Long deptId) {

        return baseMapper.lastEpidemic(deptId);
    }
}
