f3e5ecf58ff9bfb679830a83435b7de8049eb341.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.SRegBusRights;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSlsq;
import com.thinkgem.jeesite.modules.sumdata.dao.datatable.SRegBusRightsDao;

/**
 * s_reg_bus_rightsService
 * @author xuyg
 * @version 2017-03-08
 */
@Service
@Transactional(readOnly = true)
public class SRegBusRightsService extends CrudService<SRegBusRightsDao, SRegBusRights> {

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

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