package com.pos.web.login.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pos.web.login.Dao.LoginDao;
import com.pos.web.login.VO.LoginVO;

@Service
@Transactional
public class LoginServiceImpl implements LoginService {
	@Autowired
	LoginDao loginDao;
	
	@Override
	public boolean getLoginCheck(String company, String pwd) throws Exception{
		int result = 0;
		result = loginDao.getLoginCheck(company, pwd);
		
		if(result >0) {
			return true;
		} else {
			return false;
		}
	}
}
