0dd9eecf03abf3376cc9c6113bf6a1b1fd431592.svn-base 1.59 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.SRegBusYwr;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusYwrDao;

/**
 * s_reg_bus_ywrService
 * @author xuyg
 * @version 2017-03-08
 */
@Service
@Transactional(readOnly = true)
public class SRegBusYwrService extends CrudService<SRegBusYwrDao, SRegBusYwr> {

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