package com.goafanti.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.goafanti.business.service.JtBusinessService;
import com.goafanti.common.dao.JtBusinessCategoryMapper;
import com.goafanti.common.dao.JtBusinessProjectMapper;
import com.goafanti.common.model.JtBusinessCategory;
import com.goafanti.common.model.JtBusinessProject;

@Service
public class JtBusinessServiceImpl implements JtBusinessService{
	@Autowired
	JtBusinessCategoryMapper jtBusinessCategoryMapper;
	@Autowired
	JtBusinessProjectMapper jtBusinessProjectMapper;
	@Override
	public JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name) {
		// TODO Auto-generated method stub
		return jtBusinessCategoryMapper.getBusinessCategoryByLayerAndName(layer, name);
	}

	@Override
	public List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size) {
		// TODO Auto-generated method stub
		return jtBusinessCategoryMapper.getBusinessCategoryBySuperId(id,size);
	}

	@Override
	public List<JtBusinessProject> getBusinessProjectByCategoryId(String id,Integer size) {
		// TODO Auto-generated method stub
		return jtBusinessProjectMapper.getBusinessProjectByCategoryId(id,size);
	}

}
