5c0bddaeb231c622797ec3af6dd95f96104259b9.svn-base 1.72 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.SRegBaseC;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusTdsyq;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusTdsyqDao;

/**
 * s_reg_bus_tdsyqService
 * @author xuyg
 * @version 2017-03-08
 */
@Service
@Transactional(readOnly = true)
public class SRegBusTdsyqService extends CrudService<SRegBusTdsyqDao, SRegBusTdsyq> {

	public SRegBusTdsyq get(String id) {
		return super.get(id);
	}
	
	public SRegBusTdsyq getqxid(String id) {
		return dao.getqxid(id);
	}
	
	public List<SRegBusTdsyq> findList(SRegBusTdsyq sRegBusTdsyq) {
		return super.findList(sRegBusTdsyq);
	}
	
	public Page<SRegBusTdsyq> findPage(Page<SRegBusTdsyq> page, SRegBusTdsyq sRegBusTdsyq) {
		return super.findPage(page, sRegBusTdsyq);
	}
	
	@Transactional(readOnly = false)
	public void save(SRegBusTdsyq sRegBusTdsyq) {
		super.save(sRegBusTdsyq);
	}
	
	@Transactional(readOnly = false)
	public void delete(SRegBusTdsyq sRegBusTdsyq) {
		super.delete(sRegBusTdsyq);
	}
	
	@Transactional(readOnly = false)
	public void insert(SRegBusTdsyq sRegBusTdsyq) {
		sRegBusTdsyq.preInsert();
		dao.insert(sRegBusTdsyq);
	}
	
	@Transactional(readOnly = false)
	public void update(SRegBusTdsyq sRegBusTdsyq) {
		sRegBusTdsyq.preUpdate();
		dao.update(sRegBusTdsyq);
	}
}