package cn.hmsoft.ltc.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Component;

import cn.hmsoft.ltc.dao.DetailTableDao;
import cn.hmsoft.ltc.model.DetailTable;
import cn.hmsoft.ltc.service.iface.DetailTableService;

/**
 * 细目表service实现类
 * @author Administrator
 *
 */
@Component
public class DetailTableServiceImpl implements DetailTableService {

	DetailTableDao detailTableDao = new DetailTableDao();
	
	
	@Override
	public void insertDetailTable(DetailTable detailTable) {
		detailTableDao.insertDetailTable(detailTable);
	}

	@Override
	public void updateDetailTable(DetailTable detailTable) {
		detailTableDao.updateDetailTable(detailTable);
	}
	
	@Override
	public List<DetailTable> selectDetailTable(String paperNo) throws SQLException {
		 List<DetailTable> lstDetailTable = this.detailTableDao.selectDetailTable(paperNo);
		return lstDetailTable;
	}

	@Override
	public int checkDetailTable(Integer courseId) throws SQLException {
		// TODO Auto-generated method stub
		return this.detailTableDao.checkDetailTable(courseId);
	}
}
