package cn.superdesk.uniorder.service.organisation.impl;

import cn.superdesk.uniorder.dao.entity.organisation.SysEnterprise;
import cn.superdesk.uniorder.dao.mapper.organisation.SysEnterpriseMapper;
import cn.superdesk.uniorder.dao.mapper.organisation.SysEnterpriseMapperEx;
import cn.superdesk.uniorder.service.organisation.EnterpriseService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EnterpriseServiceImpl implements EnterpriseService {

	@Autowired
	SysEnterpriseMapper   sysEnterpriseMapper;
	@Autowired
	SysEnterpriseMapperEx sysEnterpriseMapperEx;

	@Override
	public PageInfo<SysEnterprise> findByPaging(Map<String, Object> params,
												Integer pageNo, Integer pageSize) {

		return null;
	}

	@Override
	public void deleteObj(Long id) {


	}

	@Override
	public void updateObj(SysEnterprise t) {
		sysEnterpriseMapper.updateByPrimaryKeySelective(t);

	}

	@Override
	public SysEnterprise findById(Long id) {
		return sysEnterpriseMapper.selectByPrimaryKey(id);
	}

	@Override
	public void addObj(SysEnterprise t) {
		sysEnterpriseMapper.insertSelective(t);

	}

	@Override
	public List<SysEnterprise> findAll(Map<String, Object> queryMap) {

		return null;
	}

	@Override
	public SysEnterprise findByVirtId(Long virId) {
		return sysEnterpriseMapperEx.findByVirtId(virId);
	}

}
