4e91709732f768fbb94140a7f99fc63aea2fab33.svn-base 1.63 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.SRegBusGd;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSlsq;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusGdDao;

/**
 * s_reg_bus_gdService
 * @author xuyg
 * @version 2017-03-08
 */
@Service
@Transactional(readOnly = true)
public class SRegBusGdService extends CrudService<SRegBusGdDao, SRegBusGd> {

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

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