package com.zjty.inspect.service.impl;

import com.zjty.inspect.dao.MasterCategoryDao;
import com.zjty.inspect.entity.MasterCategory;
import com.zjty.inspect.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private MasterCategoryDao categoryDao;
    @Override
    public List<MasterCategory> findAll() {
        return categoryDao.findAll();
    }
}
