11ec55fa22253e9c28a380728ebfc1a7cdfb6c8f.svn-base 1.69 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.SRegBusDyaq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSjhjtable;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusDyaqDao;

/**
 * s_reg_bus_dyaqService
 * @author xuyg
 * @version 2017-03-07
 */
@Service
@Transactional(readOnly = true)
public class SRegBusDyaqService extends CrudService<SRegBusDyaqDao, SRegBusDyaq> {

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

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