c88002f1c78a37e39e124e1fe48b281158b9cbaf.svn-base 1.75 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sumdata.service.datatable;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusJsydsyq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusNydsyq;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusNydsyqDao;

/**
 * 农用地使用权Service
 * @author xyg
 * @version 2018-01-17
 */
@Service
@Transactional(readOnly = true)
public class SRegBusNydsyqService extends CrudService<SRegBusNydsyqDao, SRegBusNydsyq> {

	public SRegBusNydsyq get(String id) {
		return super.get(id);
	}
	
	public SRegBusNydsyq getqxid(String id) {
		return dao.getqxid(id);
	}
	
	public List<SRegBusNydsyq> findList(SRegBusNydsyq sRegBusNydsyq) {
		return super.findList(sRegBusNydsyq);
	}
	
	public Page<SRegBusNydsyq> findPage(Page<SRegBusNydsyq> page, SRegBusNydsyq sRegBusNydsyq) {
		return super.findPage(page, sRegBusNydsyq);
	}
	
	@Transactional(readOnly = false)
	public void save(SRegBusNydsyq sRegBusNydsyq) {
		super.save(sRegBusNydsyq);
	}
	
	@Transactional(readOnly = false)
	public void delete(SRegBusNydsyq sRegBusNydsyq) {
		super.delete(sRegBusNydsyq);
	}

	@Transactional(readOnly = false)
	public void insert(SRegBusNydsyq sRegBusNydsyq) {
		sRegBusNydsyq.preInsert();
		dao.insert(sRegBusNydsyq);
	}
	
	@Transactional(readOnly = false)
	public void update(SRegBusNydsyq sRegBusNydsyq) {
		sRegBusNydsyq.preUpdate();
		dao.update(sRegBusNydsyq);
	}
}