package com.ssj.service.sys.salary;

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.sys.salary.Salary;
import com.ssj.dao.sys.salary.SalaryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Mount Liu
 * @date 2019/8/15
 */
@Service(version = "1.0")
@Transactional
public class SalaryServiceImpl extends BaseServiceImpl<Salary, String> implements SalaryService {

    @Autowired
    private SalaryDao dao;

    @Override
    public PagingAndSortingRepository<Salary, String> getDao() {
        return dao;
    }

    @Override
    public List<Salary> findByMonth(String month) {
        return dao.findByMonth(month);
    }
}
